

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

        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>

            <li class="active">اعدادات المنتج</li>
        </ol>



        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title">اعدادات المنتج</h3>
                <a href="{$youtubes[217]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>

            </div>
            <div class="panel-body">
                <form class="form-horizontal" role="form" action="productsettingController.php?do=update" method="post" id="spform">

                    <div class="form-group">
                        <label class="col-lg-2 control-label">المخزن</label>
                        <div class="col-lg-4">
                            <span id="spryselect1">
                                <select class="select2 wdt100" name="storeid" id="storeid" >
                                    <option value="-1">اختر مخزن</option>


                                    {foreach $storeData as $data }



                                    <option value="{$data->storeId}">{$data->storeName}</option>



                                    {/foreach}



                                </select>
                                <span class="selectInvalidMsg">*</span></span></div>
                    </div>


                    <div class="form-group">
                        <label for="leastValueAtStore" class="col-lg-2 control-label">الحد الادنى لعدد المنتجات بالمخزن</label>

                        <div class="col-lg-4">

                            <span id="sprytextfield2">
                                <input type="text" class="form-control" placeholder="القيمة" name="leastValueAtStore" id="leastValueAtStore">

                                <span class="textfieldRequiredMsg">*</span><span class="textfieldInvalidFormatMsg">يجب إدخال رقم صحيح</span></span>




                        </div>

                    </div>

                    <input name="productsettingid" id="productsettingid" type="hidden"/>


                    <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>


{literal}
<script type="text/javascript">
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {isRequired: false, invalidValue: "-1"});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "integer");


    $('#spbutton').live('click', function (e) {
        var myForm = document.getElementById("spform");
        var SS = Spry.Widget.Form.validate(myForm);
        if (SS == true) {
            if (!$('#spbutton').hasClass("processing"))
            {
                $('#spbutton').addClass("processing");
                myForm.submit();
            }
        }

    });
</script>
{/literal}
