
<script src="{$path}/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="{$path}/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">

<!-- DropDownList for Workstation -->
<div id="workStationDiv" style="display:none;">
    {foreach $allWorkStation as $ws}
    <option value="{$ws->workstationid}">{$ws->workname}</option>
    {/foreach}
</div>

<!-- DropDownList for Assetes-->
<div id="assetesDiv"  style="display:none;">
    {foreach $allAsetes as $assetes}
    <option value="{$assetes->assetId}">{$assetes->assetsName}</option>
    {/foreach}
</div>


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


            <div class="panel-body">

                <form class="form-horizontal nameToBeChecked"  action="settingOperationController.php?do=update" method="post">
                    <input type="hidden" id="settingOperationID" name="settingOperationID" value="{$operationRow->settingOperationID}" />


                    <!-- operation name-->
                    <div class="form-group">
                        <label class="col-lg-2 control-label">اسم العمليه </label>
                        <div class="col-lg-4">

                            <input type="text" class="form-control" value="{$operationRow->settingOperationName}" name="settingOperationName" id"settingOperationName" required>
                        </div>
                    </div>

                    <!--مراكز الانتاج-->
                    <div class="form-group mg-bt5">
                        <label class="col-lg-2 control-label">مراكز الانتاج</label>
                        <div class="col-lg-4">

                            <select class="select2 wdt300" name="workStationID" id="workStationID" >

                                {foreach $allWorkStation as $ws}
                                <option value="{$ws->workstationid}" {if {$ws->workstationid} eq {$operationRow->workStationID}}selected="selected" {/if}> {$ws->workname}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>



                    <!-- عدد العمال-->

                    <div class="form-group" >
                        <label class="col-lg-2 control-label">عدد العمال</label>
                        <div class="col-lg-4">
                            <input type="text"  required class="form-control numberinput" value="{$operationRow->workersNo}" name="workersNo" id="workersNo"   onkeypress="return isNumberKey(event)">
                        </div>
                    </div>


                    <!-- الاصول-->
                    <div class="form-group mg-bt5">
                        <label class="col-lg-2 control-label"> الاصول</label>
                        <div class="col-lg-4">
                            <select class="select2 wdt300" name="assetesID" id="assetesID">

                                {foreach $allAsetes as $assetes}
                                <option  value="{$assetes->assetId}"  {if {$assetes->assetId} eq {$operationRow->assetesID}}selected="selected" {/if}> {$assetes->assetsName}</option>
                                {/foreach}
                            </select>
                        </div>

                    </div>



                    <!-- الوقت-->
                    <div class="form-group">
                        <label class="col-lg-2 control-label">  الوقت المحدد بالساعات</label>
                        <div class="col-lg-4">
                            <input type="text"  required  class="form-control numberinput" value="{$operationRow->realTime}" name="realTime" id="realTime" onkeypress="return isNumberKey(event)">
                        </div>
                    </div>

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

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

    </div> <!-- end of container-->

</div>  <!-- end of row-->
