<!-- 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 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=add" method="post" class="form-horizontal vform"
                              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="form-group form-md-line-input">
                                    <label class="col-md-1 control-label txtl" for="name">Name</label>
                                    <div class="col-md-11">
                                        <input type="text" class="form-control" name="name" id="name" 
                                               placeholder="اسم الغرفه  " required="required"   >
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input col-md-6">
                                    <label class="col-md-2 control-label txtl" for="operation_start_time">From</label>
                                    <div class="col-md-10">
                                        <input type="text" class="form-control timepicker timepicker-24 notPop" name="start_time" 
                                               id="operation_start_time"   required="required" readonly="readonly">
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input col-md-6">
                                    <label class="col-md-2 control-label txtl" for="operation_end_time">To</label>
                                    <div class="col-md-10">
                                        <input type="text" class="form-control timepicker timepicker-24 notPop" name="end_time" 
                                               id="operation_end_time"   required="required" readonly="readonly">
                                        <div class="form-control-focus">
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input col-md-6">
                                    <label class="col-md-2 control-label txtl">Floor no. </label>
                                    <div class="col-md-10">
                                        <select class="form-control  " data-placeholder="اختر دور"
                                                name="floor_no" id="floor_no" required="">
                                            <option value="">choose</option>
                                            {foreach $floors as $floor }
                                            <option value="{$floor->id}"  >  {$floor->name}</option>
                                            {/foreach}
                                            <option value="-2" class="deleteoptincompo">حذف</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input col-md-6">
                                    <label class="col-md-2 control-label txtl">Branches</label>
                                    <div class="col-md-10">
                                        <select class="form-control select2me" data-placeholder="Choose one" name="branch_id">
                                            <option value=""></option>
                                            {foreach $branches as $single}
                                            <option value="{$single->id}">{$single->name}</option>
                                            {/foreach}
                                        </select>
                                    </div>
                                </div>

                            </div>

                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
                                        <button type="submit" class="btn green">Save</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 -->