61 lines
3.8 KiB
PHP
61 lines
3.8 KiB
PHP
<div class="content-wrapper">
|
|
|
|
<div class="content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="card card-primary card-outline">
|
|
<div class="card-header">
|
|
<h5 class="m-0"><?php echo isset($stock) ? 'Edit' : 'Add'; ?> <?php echo $pageTitle; ?> <a href="<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list"); ?>" class="btn btn-sm btn-primary float-right">List <?php echo $pageTitle; ?></a></h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="POST" action="<?php echo isset($stock) ? site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/" . $stock->stock_id) : site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add"); ?>" enctype="multipart/form-data" name="tbl_stocks">
|
|
<input type="hidden" name="stocklocations_id" value="1" />
|
|
|
|
|
|
<div class="row">
|
|
<!--COL START-->
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<?php fillComboWithValue("items_id", "Item", "items_id", "tbl_items", "title", "item_id", isset($stock) ? $stock->items_id : ''); ?>
|
|
|
|
</div>
|
|
</div>
|
|
<!--COL END-->
|
|
|
|
<!--COL START-->
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="qty"><?php myLang('Qty'); ?></label><input type="text" class="form-control" id="qty" value="<?php echo isset($stock) ? $stock->qty : ''; ?>" name="qty">
|
|
</div>
|
|
</div>
|
|
<!--COL END-->
|
|
|
|
<!--COL START-->
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="price"><?php myLang('Price'); ?></label><input type="text" class="form-control" id="price" value="<?php echo isset($stock) ? $stock->price : ''; ?>" name="price">
|
|
</div>
|
|
</div>
|
|
<!--COL END-->
|
|
</div>
|
|
|
|
<div class="row">
|
|
<!--COL START-->
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="remarks"><?php myLang('Remarks'); ?></label>
|
|
<textarea class="form-control" id="remarks" name="remarks" rows=10><?php echo isset($stock) ? $stock->remarks : ''; ?></textarea>
|
|
</div>
|
|
</div>
|
|
<!--COL END-->
|
|
</div>
|
|
<button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit"><?php echo isset($stock) ? 'Update' : 'Save'; ?></button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|