

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

        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="partnerController.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">

                <form id="submitnew"  class="form-horizontal nameToBeChecked" role="form" action="partnerController.php?do=update" method="post">

                    <div class="form-group">
                        <label for="partnername" class="col-lg-2 control-label">اسم الشريك</label>
                        <div class="col-lg-4">
                            <input type="text" name="partnername" id="partnername" class="form-control" placeholder="اسم الشريك" value="{$loadData->partnername}" />
                            <div id="partnerError" style="display:none;"></div>
                        </div>
                    </div>

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



                    <div class="form-group">
                        <label for="partnermoney" class="col-lg-2 control-label">قيمة الشراكة</label>
                        <div class="col-lg-4">


                            <div class="input-group">
                                <input type="text" class="form-control positivefloat" placeholder="القيمة الشراكة" name="partnermoney" id="partnermoney"  value="{$loadData->partnermoney}" onKeyUp="calculatePercentage();">
                                <span class="input-group-addon">{$currency}</span>
                            </div>
                            <div id="valueError" style="display:none;"></div>

                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="partnerpercentage" class="col-lg-2 control-label">نسبة الشراكة</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text" readonly="readonly" class="form-control positivefloat" placeholder="نسبة الشراكة" name="partnerpercentage" id="partnerpercentage" value="{$loadData->partnerpercentage}">
                                <span class="input-group-addon">%</span>
                            </div>
                            <div id="precntError" style="display:none;"></div>


                        </div>
                    </div>


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


                    <div class="form-group">
                        <label for="comment" class="col-lg-2 control-label">التعليق</label>
                        <div class="col-lg-4">

                            <textarea  class="form-control" rows="3" name="comment">{$loadData->comment}</textarea>

                        </div>
                    </div>

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

                    <input type="hidden" name="oldname" id="oldname" value="{$loadData->partnername}"/>
                    <input type="hidden" name="partnerid" id="partnerid" value="{$loadData->partnerid}"/>
                    <input type="hidden" name="conditions" value="{$loadData->conditions}"/>
                    <input type="hidden" name="partnerdate" value="{$loadData->partnerdate}"/>

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

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button"   class="btn btn-primary pull-left submitnew"> تعديل</button>
                        </div>
                    </div>




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




    </div>
</div>

