
<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">
                <form class="form-horizontal rentform" action="?do=update" method="post" id="rentform">


                    <div class="form-group">
                        <span style="   font-size: 17px; color: red;text-align: center;margin-right: 211px;">  {if !empty($msg)}{$msg}{/if}</span>
                    </div>


                    <div class="form-group">
                        <label class="col-lg-2 control-label">اسم منتج</label>
                        <div class="col-lg-4"> <span id="sprytextfield1">
                                <input name="name" type="text" id="name" class="form-control" required="" value="{$product->name}"/>
                                <input name="id" type="hidden" value="{$product->id}"/>
                                <span class="textfieldRequiredMsg">*</span></span>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label class="col-lg-2 control-label">وصف</label>
                        <div class="col-lg-4">
                            <textarea name="info" id="info"  class="form-control">{$product->info}</textarea>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label class="col-lg-2 control-label">عدد الوحدات</label>
                        <div class="col-lg-4">
                            <input name="amount" type="text" id="amount"  class="numberinput form-control" required="" digits="true" readonly="" value="{$product->quantity}"/>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label class="col-lg-2 control-label">سعر شراء للوحده</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text" name="buyprice" id="buyprice" class="numberinput form-control" required="" number="true" min="1" value="{$product->buyprice}"/>
                                <span class="input-group-addon">{$currency}</span> </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">الاجمالى</label>
                        <div class="col-lg-4">
                            <input name="totalprice" type="text" id="totalprice" class="numberinput form-control" readonly="" value="{$product->totalprice}"/>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">سعر الايجار للوحده</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text" name="rentprice" id="rentprice" class="numberinput form-control" required="" number="true" min="1" value="{$product->rentprice}"/>
                                <span class="input-group-addon">{$currency}</span> </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 value="1"  class="radioR" readonly="" name="paytype" type="radio" {if $product->paytype eq 1}checked="checked"{/if}/>

                                    اجل </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input value="0" readonly="" class="noradioR" {if $product->paytype eq 0}checked="checked"{/if} name="paytype"  type="radio" />
                                    كاش </label>
                            </div>

                        </div>
                    </div-->

                    <!--div class="form-group">
                        <label  class="col-lg-2 control-label">المورد</label>
                        <div class="col-lg-4">
                            <select class="select2 wdt100" name="supplierid" id="supplierid" disable="" placeholder="اختر مورد" required="">
                                <option value=""></option>
                                {foreach $suppliers as $supplier}
                                <option value="{$supplier->supplierid}" {if $product->supplierid eq $supplier->supplierid}selected=""{/if}>{$supplier->suppliername}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div-->

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

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button name="btnAddRent" type="submit" id="btnAddRent" class="btn btn-primary pull-left">حفظ</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
