{if $type == "embryo"}
<tr>
    <td>
        Straw#{$itr}
        <input type="hidden" name="safyinput2_{$itr}" id="safyinput2_{$itr}" value="{$itr}"/>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control stageselect stage allupdateselect" id="stage_{$itr}_1_1" data-itra="{$itr}_1_1" name="stage_{$itr}_1_1" select-tableName="stage" data-colName="stage">
                <option value="">choose</option>
                {foreach  $stages as $one}
                <option value="{$one.id}">{$one.stage}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control gradeselect grade allupdateselect" id="grade_{$itr}_1_2" name="grade_{$itr}_1_2" data-itra="{$itr}_1_2" select-tableName="grade" data-colName="grade">
                <option value="">choose</option>
                {foreach  $grades as $one}
                <option value="{$one.id}">{$one.grade}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control stage stageselect allupdateselect" id="stage_{$itr}_2_1" name="stage_{$itr}_2_1" data-itra="{$itr}_2_1" select-tableName="stage" data-colName="stage">
                <option value="">choose</option>
                {foreach  $stages as $one}
                <option value="{$one.id}">{$one.stage}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control grade stageselect allupdateselect" id="grade_{$itr}_2_2" name="grade_{$itr}_2_2" data-itra="{$itr}_2_2" select-tableName="grade" data-colName="grade">
                <option value="">choose</option>
                {foreach  $grades as $one}
                <option value="{$one.id}">{$one.grade}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control stage stageselect allupdateselect" id="stage_{$itr}_3_1" name="stage_{$itr}_3_1" data-itra="{$itr}_3_1" select-tableName="stage" data-colName="stage">
                <option value="">choose</option>
                {foreach  $grades as $one}
                <option value="{$one.id}">{$one.grade}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control grade gradeselect allupdateselect" id="grade_{$itr}_3_2" name="grade_{$itr}_3_2" data-itra="{$itr}_3_2" select-tableName="grade" data-colName="grade">
                <option value="">choose</option>
                {foreach  $grades as $one}
                <option value="{$one.id}" {if $pre.grade3 eq $one.id} selected {/if}>{$one.grade}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control stage stageselect allupdateselect" id="stage_{$itr}_4_1" name="stage_{$itr}_4_1" data-itra="{$itr}_4_1" select-tableName="stage" data-colName="stage">
                <option value="">choose</option>
                {foreach  $stages as $one}
                <option value="{$one.id}"{if $pre.stage4 eq $one.id} selected {/if}>{$one.stage}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control grade gradeselect allupdateselect" id="grade_{$itr}_4_2" name="grade_{$itr}_4_2" data-itra="{$itr}_4_2" select-tableName="grade" data-colName="grade">
                <option value="">choose</option>
                {foreach  $grades as $one}
                <option value="{$one.id}" {if $pre.grade4 eq $one.id} selected {/if}>{$one.grade}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control stage stageselect allupdateselect" id="stage_{$itr}_5_1" name="stage_{$itr}_5_1" data-itra="{$itr}_5_1" select-tableName="stage" data-colName="stage">
                <option value="">choose</option>
                {foreach  $stages as $one}
                <option value="{$one.id}" {if $pre.stage5 eq $one.id} selected {/if}>{$one.stage}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control grade gradeselect allupdateselect" id="grade_{$itr}_5_2" name="grade_{$itr}_5_2" data-itra="{$itr}_5_2" select-tableName="grade" data-colName="grade">
                <option value="">choose</option>
                {foreach  $grades as $one}
                <option value="{$one.id}"{if $pre.grade5 eq $one.id} selected {/if}>{$one.grade}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control stage stageselect allupdateselect" id="stage_{$itr}_6_1" name="stage_{$itr}_6_1" data-itra="{$itr}_6_1" select-tableName="stage" data-colName="stage">
                <option value="">choose</option>
                {foreach  $stages as $one}
                <option value="{$one.id}"{if $pre.stage6 eq $one.id} selected {/if}>{$one.stage}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <div class="col-md-12">
            <select class="form-control grade gradeselect allupdateselect" id="grade_{$itr}_6_2" name="grade_{$itr}_6_2" data-itra="{$itr}_6_2" select-tableName="grade" data-colName="grade">
                <option value="">choose</option>
                {foreach  $grades as $one}
                <option value="{$one.id}" {if $pre.grade6 eq $one.id} selected {/if}>{$one.grade}</option>
                {/foreach}

                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </td>
    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$pre.id}" style=" float: left;" href="#" data-link="embryofreezing" data-fn="delRowsommedel" data-tableName="embryo" >
            <i class="fa fa-close"></i>
        </a>
    </td>
</tr>
{/if}


