<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                {$breadcrumbs}
            </ul>
        </div>
        <!-- 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-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">تعديل فى {$shcontrollname}</span>
                        </div>
                        <div class="actions">
                            <a class="btn default btn-xs blue tooltips" href="{$hosturl}/{$controllname}/show" data-container="body" data-placement="top" data-original-title="Show">
                                <i class="icon-list"></i>
                                عرض البيانات
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form action="{$hosturl}/{$controllname}/updateit" method="post" class="form-horizontal" id="menu_form">
                            <div class="form-body">
                                <div class="alert alert-danger display-hide">
                                    <button class="close" data-close="alert"></button>
                                    لديك خطا فى ادخال البيانات , حاول مره اخرى
                                </div>
                                <div class="alert alert-success display-hide">
                                    <button class="close" data-close="alert"></button>
                                    لقد ادخلت بيانات صحيح
                                </div>


                                <div class="form-group form-md-line-input has-info">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-users"></i>
                                        </span>
                                        <input type="text" class="form-control" placeholder="العنوان" name="label" value="{$menu->label}">
                                        <label for="form_control_1">العنوان</label>
                                    </div>
                                </div>
                                <div class="form-group form-md-line-input has-info">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-envelope"></i>
                                        </span>
                                        <input type="text" class="form-control" placeholder="الرابط" name="link" value="{$menu->link}">
                                        <label for="form_control_1">الرابط</label>
                                    </div>
                                    <div class="alert alert-warning display-hide" id="showerroremail">
                                        <button class="close" data-close="alert"></button>
                                        يجب ان يكون الرابط مشابه لهذا : 'page/show'
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input has-info">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-users"></i>
                                        </span>
                                        <select class="form-control input-xlarge select2me input-sm select2-offscreen noborder" data-placeholder="اختر واحد" name="parent">
                                            <option value=""></option>
                                            <option value="0" {if {$menu->parent} eq 0} selected {/if}>لا يوجد</option>
                                            {foreach $menus as $single}
                                            <option value="{$single->id}" {if {$menu->parent} eq {$single->id}} selected {/if}>{$single->label}</option>
                                            {/foreach}
                                        </select>
                                        <label for="form_control_1">والد العنصر</label>
                                    </div>
                                </div>

                                <div class="form-group form-md-line-input has-info">
                                    <div class="input-group">
                                        <span class="input-group-addon">
                                            <i class="fa fa-envelope"></i>
                                        </span>
                                        <input type="text" class="form-control" placeholder="الاسم النشط" name="activename" value="{$menu->active_name}">
                                        <label for="form_control_1">الاسم النشط</label>
                                    </div>
                                    <div class="alert alert-warning display-hide" id="showerroremail">
                                        <button class="close" data-close="alert"></button>
                                        يستخدم لاظهر التظليل عليه
                                    </div>
                                </div>


                                <div class="form-group form-md-line-input">
                                    <label class="col-md-12">الايقونه</label>
                                    <div class="col-md-12">

                                        <input type="hidden" id="menuiconvalue" value="{$menu->icon}" />
                                        <div class="radio-list magtolft" id="menuradioicon">
                                            <div class="radio-inline fsmglft">
                                                <input type="radio" name="menuicon" value="icon-home" checked/>
                                                <i class="icon-home"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-action-redo" />
                                                <i class="icon-action-redo"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-bulb"/>
                                                <i class="icon-bulb"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-graph" />
                                                <i class="icon-graph"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-basket"/>
                                                <i class="icon-basket"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-tag" />
                                                <i class="icon-tag"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-handbag"/>
                                                <i class="icon-handbag"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-pencil" />
                                                <i class="icon-pencil"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-rocket"/>
                                                <i class="icon-rocket"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-diamond" />
                                                <i class="icon-diamond"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-puzzle"/>
                                                <i class="icon-puzzle"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-paper-plane" />
                                                <i class="icon-paper-plane"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-settings" />
                                                <i class="icon-settings"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-briefcase"/>
                                                <i class="icon-briefcase"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-wallet" />
                                                <i class="icon-wallet"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-bar-chart"/>
                                                <i class="icon-bar-chart"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-docs" />
                                                <i class="icon-docs"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-check"/>
                                                <i class="icon-check"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-envelope" />
                                                <i class="icon-envelope"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-user-following"/>
                                                <i class="icon-user-following"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-user" />
                                                <i class="icon-user"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-users"/>
                                                <i class="icon-users"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-question" />
                                                <i class="icon-question"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-calendar"/>
                                                <i class="icon-calendar"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-clock" />
                                                <i class="icon-clock"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-flag"/>
                                                <i class="icon-flag"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-speech" />
                                                <i class="icon-speech"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-link"/>
                                                <i class="icon-link"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-eye" />
                                                <i class="icon-eye"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-bell" />
                                                <i class="icon-bell"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-present"/>
                                                <i class="icon-present"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-folder" />
                                                <i class="icon-folder"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-globe"/>
                                                <i class="icon-globe"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-camera" />
                                                <i class="icon-camera"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-pointer"/>
                                                <i class="icon-pointer"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-power" />
                                                <i class="icon-power"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-star" />
                                                <i class="icon-star"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-logout"/>
                                                <i class="icon-logout"></i> </div>

                                            <div class="radio-inline">
                                                <input type="radio" name="menuicon" value="icon-envelope-open" />
                                                <i class="icon-envelope-open"></i> </div>
                                        </div>
                                    </div>
                                </div>

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


                            </div>
                            <div class="form-actions">
                                <div class="row">
                                    <div class="col-md-offset-3 col-md-4">
                                        <button type="submit" class="btn green">تعديل</button>
                                        <button type="button" class="btn default rtnshow" data-controll="{$controllname}">الغاء</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <!-- END FORM-->
                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT -->