
<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>
                <a href="{$youtubes[285]->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="nameToBeChecked form-horizontal" action="simpleManufactureSettingsController.php?do=update" method="post">

                    <div class="form-group">
                        <label class="col-lg-2 control-label">المخزن</label>
                        <div class="col-lg-4">
                            <span id="spryselect1">
                                <select class="select2 wdt300"  name="storeid" id="storeId" required>
                                    <option value="-1">اختر مخزن</option>
                                    {foreach $storeData as $store}
                                    <option value="{$store->storeId}" {if $simpleSettingData->storeid eq $store->storeId || (!$simpleSettingData->storeid && $store->storeId eq 1)}selected{/if}>{$store->storeName}</option>
                                    {/foreach}
                                </select>
                                <span class="selectInvalidMsg">اختر المخزن</span>

                            </span>
                        </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="reducestoreamount" type="radio" {if empty($simpleSettingData) || $simpleSettingData->reducestoreamount eq 1}  checked="checked" {/if} value="1" />نعم
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="reducestoreamount" type="radio" {if $simpleSettingData &&  $simpleSettingData->reducestoreamount eq 0}  checked="checked" {/if} value="0" />لا
                                </label>
                            </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="manufacturing" type="radio" {if $simpleSettingData->productsproductionequation eq 0}  checked="checked" {/if} value="0" />منتجات التصنيع فقط
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="manufacturing" type="radio" {if $simpleSettingData->productsproductionequation eq 1}  checked="checked" {/if} value="1" />جميع المنتجات
                                </label>
                            </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="orderclient" type="radio" {if $simpleSettingData->orderclient eq 0}  checked="checked" {/if} value="0" />نعم
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="orderclient" type="radio" {if $simpleSettingData->orderclient eq 1}  checked="checked" {/if} value="1" />لا
                                </label>
                            </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="lowOutPriceAlert" type="radio" {if $simpleSettingData->lowOutPriceAlert eq 0}  checked="checked" {/if} value="0" />نعم
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="lowOutPriceAlert" type="radio" {if $simpleSettingData->lowOutPriceAlert eq 1}  checked="checked" {/if} value="1" />لا
                                </label>
                            </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="taskOrderName" type="radio" {if $simpleSettingData->taskOrderName eq 0}  checked="checked" {/if} value="0" />امر الشغل
                                </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input name="taskOrderName" type="radio" {if $simpleSettingData->taskOrderName eq 1}  checked="checked" {/if} value="1" />طلبية
                                </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->

                    <div class="form-group">
                        <label class="col-lg-2 control-label" >حفظ الكمية فى قاعدة البيانات</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <span class="input-group-addon" style="border-right: 1px solid #ccc;"> عدد خانات الجزء الصحيح</span>
                                <input type="text" name="holePartNoOfDigits" class="form-control positiveNo" value="" placeholder="8">
                            </div>
                            <div class="input-group">
                                <span class="input-group-addon" style="border-right: 1px solid #ccc;">عدد خانات الكسر العشرى</span>
                                <input type="text" name="fractionPartNoOfDigits" class="form-control positiveNo" value="" placeholder="2">
                            </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>
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {invalidValue: "-1", isRequired: false});
</script>
{/literal}