{if $tableName  == "vital_sign" }   
{if $itr == 1  }   
<tr>
    <th class="wds19"> Date   </th>  
    <th class="wds19"> BP   </th>  
    <th class="wds19"> Pulse </th>
    <th class="wds19"> RR  </th>  
    <th class="wds19"> Temp  </th>  
    <th>   </th> 
</tr>
{/if}

<tr>
    <td>
        <input type="text"   class="form-control updateElement datepicker"  
               data-colName="sdate"   data-id="{$sign->id}" 
               data-tableName="vital_sign"   value="{$sign->sdate}"/>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement bp_mask inline wds70" 
               data-colName="bp" data-id="{$sign->id}" 
               data-tableName="vital_sign" value="{$sign->bp}"/> 
        <span class="bold">mmHg</span>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement inline wds70" 
               data-colName="pulse" data-id="{$sign->id}" 
               data-tableName="vital_sign" value="{$sign->pulse}"/> 
        <span class="bold">bpm</span>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement inline wds70" 
               data-colName="rr" data-id="{$sign->id}" 
               data-tableName="vital_sign" value="{$sign->rr}"/> 
        <span class="bold"> /min</span>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement inline wds70" 
               data-colName="temp" data-id="{$sign->id}" 
               data-tableName="vital_sign" value="{$sign->temp}"/> 
        <span class="bold">C</span>
    </td>
    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$sign->id}" 
           data-link="{$controllname}"  data-fn="del" data-tableName="vital_sign" 
           data-colName="deleted">
            <i class="fa fa-times"></i> </a>
    </td>
</tr>

{elseif $tableName  == "previous_pregnancies" }   
<tr>
    <td class="wds35">
        <div class="col-md-12">
            <div class="col-md-6">
                <div class="md-radio-list">
                    <div class="md-radio">
                        <input type="radio" id="prev_preg1_{$sign->id}" name="prev_preg{$sign->id}"  
                               class="md-radiobtn sradio updateElement" value="1"  data-id="{$sign->id}"
                               data-colName="prev_preg" data-tableName="previous_pregnancies"
                               {if  $sign->prev_preg == 1 } checked {/if}>
                        <label for="prev_preg1_{$sign->id}">
                            <span></span>
                            <span class="check"></span>
                            <span class="box"></span>
                            Not complicated</label>
                    </div>
                </div>
            </div>

            <div class="col-md-6">
                <div class="md-radio-list">
                    <div class="md-radio">
                        <input type="radio" id="prev_preg2_{$sign->id}" name="prev_preg{$sign->id}" 
                               class="md-radiobtn sradio updateElement" value="2"  data-id="{$sign->id}"
                               data-colName="prev_preg" data-tableName="previous_pregnancies"
                               {if  $sign->prev_preg  == 2 } checked {/if}>
                        <label for="prev_preg2_{$sign->id}">
                            <span></span>
                            <span class="check"></span>
                            <span class="box"></span>
                            Complicated  </label>
                    </div>
                </div>
            </div>
        </div>
    </td>
    <th class="wds11"> Notes   :   </th>  
    <td>
        <input type="text" class="form-control  updateElement txtc" 
               data-tableName="previous_pregnancies" data-colName="prev_preg_note" data-id="{$sign->id}" 
               value="{$sign->prev_preg_note}"/>
    </td>
</tr>
{elseif $tableName  == "previous_puerperium" }   
<tr>
    <td class="wds35">
        <div class="col-md-12">
            <div class="col-md-6">
                <div class="md-radio-list">
                    <div class="md-radio">
                        <input type="radio" id="prev_puer1_{$sign->id}" name="prev_puer{$sign->id}"  
                               class="md-radiobtn sradio updateElement" value="1"  data-id="{$sign->id}"
                               data-colName="prev_puer" data-tableName="previous_puerperium"
                               {if  $sign->prev_puer == 1 } checked {/if}>
                        <label for="prev_puer1_{$sign->id}">
                            <span></span>
                            <span class="check"></span>
                            <span class="box"></span>
                            Not complicated</label>
                    </div>
                </div>
            </div>

            <div class="col-md-6">
                <div class="md-radio-list">
                    <div class="md-radio">
                        <input type="radio" id="prev_puer2_{$sign->id}" name="prev_puer{$sign->id}" 
                               class="md-radiobtn sradio updateElement" value="2"  data-id="{$sign->id}"
                               data-colName="prev_puer" data-tableName="previous_puerperium"
                               {if  $sign->prev_puer  == 2 } checked {/if}>
                        <label for="prev_puer2_{$sign->id}">
                            <span></span>
                            <span class="check"></span>
                            <span class="box"></span>
                            Complicated  </label>
                    </div>
                </div>
            </div>
        </div>
    </td>
    <th class="wds11"> Notes   :   </th>  
    <td>
        <input type="text" class="form-control  updateElement txtc" 
               data-tableName="previous_puerperium" data-colName="prev_puer_note" data-id="{$sign->id}" 
               value="{$sign->prev_puer_note}"/>
    </td>
</tr>
{/if}




{literal}
<script>
    $(".datepicker").datepicker();
    $(".bp_mask").inputmask("999/999", {autoUnmask: true});
</script>
{/literal}