



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

        <ol class="breadcrumb">
            <li><a href="#">المخازن</a></li>
            <li><a href="storeController.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 class="nameToBeChecked form-horizontal" role="form" action="storeController.php?do=update" method="post" id="spform">



                    <div class="form-group">
                        <label for="storeName" class="col-lg-2 control-label">اسم المخزن</label>
                        <div class="col-lg-4">

                            <input type="text" name="storeName" id="storeName"   placeholder="اسم المخزن" class="form-control" value="{$loadData->storeName}" />
                            <div id="nameError" style="display:none;"></div>

                        </div>
                    </div>

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



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

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

                        </div>
                    </div>

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

                    <input type="hidden" name="oldname" id="oldname" value="{$loadData->storeName}"/>
                    <input type="hidden" name="storeId" id="storeId" value="{$loadData->storeId}"/>
                    <input type="hidden" name="storeDate" value="{$loadData->storeDate}"/>
                    <input type="hidden" name="conditions" value="{$loadData->conditions}"/>


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


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




    </div>
</div>


