<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-plus font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">Add New In  {$shcontrollname}</span>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form action="{$hosturl}/controllers/{$controllname}.php?ac=update" method="post" class="horizontal-form awval"
                              enctype="multipart/form-data">
                            <div class="form-body">
                                <div class="alert alert-danger display-hide">
                                    <button class="close" data-close="alert"></button>
                                    {$smarty.const.ad_lang_message_error}
                                </div>
                                <div class="alert alert-success display-hide">
                                    <button class="close" data-close="alert"></button>
                                    {$smarty.const.ad_lang_message_success}
                                </div>

                                <div class="row">
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Indication</label>
                                            <div class="col-md-12">
                                                <input type="text" class="form-control" name="indication"
                                                       placeholder="Indication" required="required" value="{$template_data->indication}">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Anesthesia</label>
                                            <div class="col-md-12">
                                                <textarea class="form-control" name="anesthesia" rows="3"
                                                          placeholder="Anesthesia" required="required">{$template_data->anesthesia}</textarea>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Procedure</label>
                                            <div class="col-md-12">
                                                <textarea class="form-control" name="procedure" rows="3"
                                                          placeholder="Procedure" required="required">{$template_data->procedure}</textarea>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">esophagus</label>
                                            <div class="col-md-12">
                                                <input type="text" class="form-control" name="esophagus"
                                                       placeholder="Esophagus" required="required" value="{$template_data->esophagus}">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Cardio Esophageal Junction</label>
                                            <div class="col-md-12">
                                                <input type="text" class="form-control" name="cardio_esophageal_junction"
                                                       placeholder="Cardio Esophageal Junction" required="required" value="{$template_data->cardio_esophageal_junction}">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Stomach</label>
                                            <div class="col-md-12">
                                                <textarea class="form-control" name="stomach" rows="3"
                                                          placeholder="Stomach" required="required">{$template_data->stomach}</textarea>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Pylorus</label>
                                            <div class="col-md-12">
                                                <textarea class="form-control" name="pylorus" rows="3"
                                                          placeholder="Pylorus" required="required">{$template_data->pylorus}</textarea>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Duodenum</label>
                                            <div class="col-md-12">
                                                <input type="text" class="form-control" name="duodenum"
                                                       placeholder="Duodenum" required="required" value="{$template_data->duodenum}">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Conclusion</label>
                                            <div class="col-md-12">
                                                <input type="text" class="form-control" name="conclusion"
                                                       placeholder="Conclusion"  value="{$template_data->conclusion}">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Header print</label>
                                            <div class="col-md-12">
                                                <input type="file" class="form-control" name="header_print"
                                                        {if $template_data->header_print == 'no image' || empty($template_data->header_print)} required="required" {/if}>
                                                {if $template_data->header_print != 'no image' || !empty($template_data->header_print)}
                                                    <input type="hidden" value="{$template_data->header_print}" name="header_print_save">
                                                    <img src="{$hosturl}/../upload/endoscopy_template/{$template_data->header_print}"
                                                         class="img-thumbnail" alt="">
                                                {/if}
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-12" style="margin-top: 10px;">
                                        <div class="form-group">
                                            <label class="col-md-12 control-label txtl">Footer print</label>
                                            <div class="col-md-12">
                                                <input type="file" class="form-control" name="footer_print"
                                                        {if $template_data->footer_print == 'no image' || empty($template_data->footer_print)} required="required" {/if}>
                                                {if $template_data->footer_print != 'no image' || !empty($template_data->footer_print)}
                                                    <input type="hidden" value="{$template_data->footer_print}" name="footer_print_save">
                                                    <img src="{$hosturl}/../upload/endoscopy_template/{$template_data->footer_print}"
                                                         class="img-thumbnail" alt="">
                                                {/if}
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <input type="hidden" id="id" name="id" value="1">

                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
                                        <button type="submit" class="btn green">Update</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <!-- END FORM-->
                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT -->