
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="#">الأصول</a></li>
            <li class="active">تعديل نوع الأصل</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title">تعديل نوع الأصل</h3>
            </div>
            <div class="panel-body"> {literal}
                <form id="saveform"  class="nameToBeChecked form-horizontal" action="assetTypeController.php?do=update" method="post">
                    <!--validate the form before checking name-->
                    {/literal}
                    <div class="form-group">
                        <label class="col-lg-2 control-label">اسم نوع الاصل</label>
                        <div class="col-lg-4">
                            <input type="text" name="name" id="name" class="form-control"  value="{$data->cattitel}" />

                            <input type="hidden" name="assetscatid" id="assetscatid" value="{$data->assetscatid}"/>
                            <!----------- start nameError alert -------------->
                            <div id="nameError" class="alert alert-block alert-danger fade in" style="display:none">

                            </div>
                            <!----------- end nameError alert ------------->


                        </div>
                    </div>

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


                    <div class="form-group">
                        <label class="col-lg-2 control-label">تفاصيل أخرى</label>
                        <div class="col-lg-4">
                            <textarea name="descripe"  id="descripe" class=" form-control" cols="45" rows="5">{$data->descripe}</textarea>
                        </div>
                    </div>

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


                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <input name="type" type="hidden" value="{$type}" />
                            <button type="reset" class="btn btn-danger pull-left">إلغاء</button>

                            <button type="button"  id="savebtn"  class="btn btn-primary pull-left">إضافة</button>

                        </div>
                    </div>
                    <div class="clearfix"></div>
                </form>
            </div><!--panel-body-->
        </div><!--panel-->
    </div><!--container-->
</div><!--row-->
{literal}
<script type="text/javascript">
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
</script>
{/literal}
