74 lines
4.9 KiB
PHP
74 lines
4.9 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($item) ? 'Edit' : 'Add'; ?> <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list", "List
|
|
" . $pageTitle); ?></h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="POST" action="<?php echo isset($item) ? site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/" . $item->item_id) : site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add"); ?>" enctype="multipart/form-data" name="tbl_items">
|
|
<div class="row">
|
|
<!--COL START-->
|
|
<div class="col-4">
|
|
<div class="form-group">
|
|
<?php fillComboWithValue("itemcategories_id", "Item Category", "itemcategories_id", "tbl_itemcategories", "title", "itemcategory_id", isset($item) ? $item->itemcategories_id : ''); ?>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<!--COL END-->
|
|
|
|
<!--COL START-->
|
|
<div class="col-4">
|
|
<div class="form-group">
|
|
<label for="item_code"><?php myLang('Item Code'); ?></label><input type="text" class="form-control" id="item_code" value="<?php echo isset($item) ? $item->item_code : ''; ?>" name="item_code">
|
|
</div>
|
|
</div>
|
|
<!--COL END-->
|
|
<div class="col-4">
|
|
<div class="form-group">
|
|
<label for="display_order"><?php myLang('Display Order'); ?></label><input type="text" class="form-control" id="display_order" value="<?php echo isset($item) ? $item->display_order : ''; ?>" name="display_order">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<!--COL START-->
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="title"><?php myLang('Title'); ?></label><input type="text" class="form-control" id="title" value="<?php echo isset($item) ? $item->title : ''; ?>" name="title">
|
|
</div>
|
|
</div>
|
|
<!--COL END-->
|
|
</div>
|
|
<div class="row">
|
|
<!--COL START-->
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="description"><?php myLang('Description'); ?></label>
|
|
<textarea class="form-control" id="description" name="description"><?php echo isset($item) ? $item->description : ''; ?></textarea>
|
|
</div>
|
|
</div>
|
|
<!--COL END-->
|
|
</div>
|
|
<div class="row">
|
|
<!--COL START-->
|
|
|
|
<!--COL END-->
|
|
</div>
|
|
<!-- <div class="row">
|
|
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="remarks"><?php //myLang('Remarks'); ?></label>
|
|
<textarea class="form-control" id="remarks" name="remarks"><?php //echo isset($item) ? $item->remarks : ''; ?></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
</div> -->
|
|
<button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit"><?php echo isset($item) ? 'Update' : 'Save'; ?></button>
|
|
</form>
|
|
</div>
|