<div class="row">
  <div class="container">
    <ol class="breadcrumb">
      <li><a href="#">اعدادات المصنع </a></li>
      <li class="active">تعديل الاعداد</li>
    </ol>
    <div class="panel panel-default"> 
      <!-- Default panel contents -->
      <div class="panel-heading">
        <h3 class="panel-title">تعديل الاعداد</h3>
      </div>
      <div class="panel-body"> {literal}
        <form class="nameToBeChecked form-horizontal" action="manfacuresettingController.php?do=update" method="post" onsubmit="if (Spry.Widget.Form.validate(this)) {checkNameWithId(event, 'billname', 'name', 'billnameid'); return true;} else {return false;}">
          <!--validate the form before checking name--> 
          {/literal}
          <div class="form-group">
            <label class="col-lg-2 control-label">اسم الاعداد</label>
            <div class="col-lg-4"> <span id="sprytextfield1">
              <input type="text" name="manufacurename" id="manufacurename" class="form-control" value="{$loadmanfacure->ordername}" placeholder="اسم الاعداد" />
              <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 class="col-lg-2 control-label"></label>
            <div class="col-lg-4">
              <div class="radio-inline">
                  <label>
                    <input name="manufacuretype" type="radio"  {if {$loadmanfacure->excahangeorder} eq 0}  checked="checked" {/if} value="0" />نعم
                  </label>
                </div>
                <div class="radio-inline">
                  <label>
                   <input name="manufacuretype" type="radio" {if {$loadmanfacure->excahangeorder} eq 1}  checked="checked" {/if} value="1" />لا
                  </label>
                  <input type="hidden" name="settingid" id="settingid" value="{$loadmanfacure->manufacuresettingid}"/>
                </div>
            </div>
          </div>
          
           <!--==============================-->
           
            <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} 