<?php /* Smarty version Smarty-3.1.11, created on 2025-07-24 14:56:46
         compiled from "..\views\default\unitview\add.html" */ ?>
<?php /*%%SmartyHeaderCode:1493668821f7e75abb9-76480064%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e9254a42e449e3aa1a3f5d6b16c820ac4728ac59' => 
    array (
      0 => '..\\views\\default\\unitview\\add.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1493668821f7e75abb9-76480064',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_68821f7e793249_04705248',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_68821f7e793249_04705248')) {function content_68821f7e793249_04705248($_smarty_tpl) {?>

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

        <ol class="breadcrumb">
            <li><a href="#">المنتجات</a></li>
            <li><a href="unitController.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="myform" class="nameToBeChecked form-horizontal" role="form" action="unitController.php?do=add" method="post" >

                    




                    <div class="form-group">
                        <label for="unitName" class="col-lg-2 control-label">اسم الوحدة</label>
                        <div class="col-lg-4">
                            <input type="text" name="unitName" id="unitName"   placeholder="اسم الوحدة" class="form-control" />
                            <div id="nameError" style="display:none"></div>
                        </div>
                    </div>

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




                    <div class="form-group">
                        <label for="unitSymbol" class="col-lg-2 control-label">رمز الوحدة</label>
                        <div class="col-lg-4">

                            <input type="text" name="unitSymbol" id="unitSymbol"   class="form-control " placeholder="الرمز"/>

                        </div>
                    </div>


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



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

                            <textarea  class="form-control" rows="3" name="unitDescription"></textarea>

                        </div>
                    </div>

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

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button"  id="savebtn" class="btn btn-primary pull-left">حفظ الامر</button>
                        </div>
                    </div>


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




    </div>
</div>




<script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
</script>

<?php }} ?>