<!-- BEGIN CONTENT -->
<script src="{$path}/_assets/global/plugins/jquery.min.js" type="text/javascript"></script>

<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-name">
            {$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-name">
                        <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-name="Show">
                                <i class="icon-list"></i>
                                عرض البيانات
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form action="{$hosturl}/{$controllname}/addit" method="post" id="theform" class="form-horizontal" enctype="multipart/form-data">
                            <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">
                                    <label class="col-sm-2 control-label" style="text-align: right">النوع </label>
                                    <div class="col-sm-2">

                                        <label>
                                            <input type="radio" name="type" value="0" id="actType" checked="checked">نشاط
                                        </label>

                                    </div>

                                    <div class="col-sm-2">

                                        <label>
                                            <input type="radio" name="type" id="teamType" value="1">فرق
                                        </label>

                                    </div>
                                </div>

                                <div class="form-group" id="activityDiv" style="display: none;">
                                    <label class="col-md-2 control-label" style="text-align: right">النشاط </label>
                                    <div class="col-md-4">
                                        <select name="activity" id="activity" class="form-control" required>
                                            {foreach $allActivity as $activity}
                                            <option value="{$activity->id}">{$activity->name} / {$activity->name_en} </option>
                                            {/foreach}
                                        </select>
                                    </div>

                                </div>
                                
                                <div class="form-group">
                                    <label class="col-md-2 control-label" style="text-align: right">الاسم بالعربي </label>
                                    <div class="col-md-4">
                                        <input type="text" class="form-control" placeholder="الاسم بالعربي" name="name" id="name" minlength="2" required>
                                    </div>
                                    <span class="help-block help-block-error" id="showerrorname" style="color: #F3565D"></span>
                                    <label class="col-md-2 control-label" style="text-align: right">الاسم الإنجليزي </label>
                                    <div class="col-md-4">
                                        <input type="text" class="form-control" placeholder="الاسم الإنجليزي" name="name_en" id="name_en" minlength="2" required>
                                    </div>
                                    <span class="help-block help-block-error" id="showerrorname" style="color: #F3565D"></span>

                                </div>


                            </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 -->
<script src="{$path}/_assets/custom/image_validation.js"></script>