<!-- 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">Edit  In  {$shcontrollname}</span>
                        </div>
                        <div class="actions">
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=show" data-container="body" data-placement="top"
                               data-original-title="{$smarty.const.ad_lang_back_btn}" class="btn btn-sm blue tooltips">
                                <i class="fa fa-list"></i>Back </a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form action="{$hosturl}/controllers/{$controllname}.php?ac=update" method="post" class="form-horizontal vform"
                              enctype="multipart/form-data">
                            <div class="form-body">

                                <div class="form-group form-md-line-input">
                                    <label class="col-md-3 control-label txtl" for="name">Name</label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control" name="name" id="name" 
                                               placeholder="اسم العمليه  " required="required"  value="{$data->title}"   >
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input">
                                    <label class="col-md-3 control-label txtl" for="cost">Cost</label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control positivefloat" name="cost" id="cost" 
                                               placeholder="تكلفه العمليه  " required="required"  value="{$data->detectionval}"   >
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input">
                                    <label class="col-md-3 control-label txtl" for="cost">Cost details</label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control" name="cost_details" value="{$data->cost_details}"
                                               placeholder="تفاصيل التكلفة ">
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input">
                                    <label class="col-md-3 control-label txtl" for="cost">Instructions</label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control" name="instructions" value="{$data->instructions}"
                                               placeholder="تعليمات العملية ">
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input">
                                    <label class="col-md-3 control-label txtl" for="operation_time">Operation Time ( in minutes)</label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control positiveNo" name="operation_time" id="operation_time" 
                                               placeholder="وقت العمليه بالنصف ساعه   " required="required"  value="{$data->operation_time}"   >
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input">
                                    <label class="col-md-3 control-label txtl" for="cost">sort</label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control positivefloat" name="sort" id="sort"
                                               placeholder="الترتيب" required="required" value="{$data->sort}">
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input">
                                    <label class="col-md-3 control-label txtl" for="residence_time">Residence Time ( in hours)</label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control positiveNo" name="residence_time" id="residence_time" 
                                               placeholder="وقت الاقامه بالساعة     " required="required"  value="{$data->residence_time}"   >
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input">
                                    <label class="col-md-3 control-label txtl" for="operations_rooms">Operation Rooms</label>
                                    <div class="col-md-9">
                                        <select class="form-control select2me " data-placeholder="اختر غرف العمليات" 
                                                name="operations_rooms[]" multiple="multiple" required="">
                                            <option value=""></option>
                                            <option value="-1" {foreach $operations_room_ids as $room_id}{if -1 eq $room_id}selected{/if}{/foreach}> All</option>
                                            {foreach $operations_rooms as $room}
                                            <option value="{$room->id}" {foreach $operations_room_ids as $room_id}{if $room->id eq $room_id}selected{/if}{/foreach}>{$room->name}</option>
                                            {/foreach}
                                        </select>
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <input type="hidden" id="id" name="id" value="{$data->id}"/>

                            </div>

                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
                                        <button type="submit" class="btn green">Update</button>
                                        <button type="button" class="btn default rtnshow" data-controll="{$controllname}">Cancel</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <!-- END FORM-->
                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT -->