

<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">ادارة الفواتير</a></li>
            <li><a href="billpropertyController.php?do=show">خصائص الفواتير</a></li>
            <li class="active">تعديل خاصية</li>
        </ol>


        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title">تعديل خاصية</h3>
            </div>
            <div class="panel-body">


                {literal}
                <form class="form-horizontal nameToBeChecked" role="form" action="billpropertyController.php?do=update" method="post" onsubmit="if (Spry.Widget.Form.validate(this)) {
                        checkNameWithId(event, 'billproperty', 'billpropertyname', 'billpropertyid');
                        return true;
                    } else {
                        return false;
                    }">

                    {/literal}


                    <div class="form-group">
                        <label for="billpropertyname" class="col-lg-2 control-label">اسم الخاصية</label>
                        <div class="col-lg-4">

                            <span id="sprytextfield1">

                                <input type="text" name="billpropertyname" id="billpropertyname" class="form-control" placeholder="اسم الخاصية" value="{$data->billpropertyname}"/>
                                <span class="textfieldRequiredMsg">*</span></span>



                            <div id="nameError" class="alert alert-block alert-danger fade in" style="display:none">
                                <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>
                                <h4>رسالة خطا</h4>
                                <p>هذا الاسم مستخدم من قبل</p>

                                <div class="clearfix"></div>
                            </div>


                        </div>
                    </div>



                    <!-- =================================================   -->

                    <div class="form-group">
                        <label for="description" class="col-lg-2 control-label">وصف الخاصية</label>
                        <div class="col-lg-4">


                            <textarea  class="form-control" rows="3" name="description" id="description">{$data->description}</textarea>

                        </div>
                    </div>

                    <!-- =================================================   -->

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

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="submit"  class="btn btn-primary pull-left">حفظ الامر</button>
                        </div>
                    </div>




                </form>
            </div>
        </div>




    </div>
</div>



{literal}

<script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
</script>

{/literal}