75 lines
4.6 KiB
PHP
75 lines
4.6 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 $editable ? "Edit" : "Create"; ?> <?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="" enctype="multipart/form-data" name="tbl_branches">
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="branch_name">Company Name</label>
|
|
<input type="text" class="form-control" id="branch_name" value="<?php echo $editable ? $branchData->branch_name : ''; ?>" name="branch_name">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="branch_address">Company Address</label>
|
|
<input type="text" class="form-control" id="branch_address" value="<?php echo $editable ? $branchData->branch_address : ''; ?>" name="branch_address">
|
|
</div>
|
|
</div>
|
|
</div><div class="row">
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="pan">PAN No</label>
|
|
<input type="text" class="form-control" id="pan" value="<?php echo $editable ? $branchData->pan : ''; ?>" name="pan">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="vat">VAT Applicable</label>
|
|
<select class="form-control" id="vat" name="vat">
|
|
<?php if ($editable) : ?>
|
|
<option value="1" <?php echo $branchData->vat === '1' ? 'selected' : ''; ?>>Yes</option>
|
|
<option value="0" <?php echo $branchData->vat === '0' ? 'selected' : ''; ?>>No</option>
|
|
<?php else : ?>
|
|
<option value="1">Yes</option>
|
|
<option value="0">No</option>
|
|
<?php endif; ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<div class="form-group">
|
|
<label for="remarks">Remarks</label>
|
|
<textarea class="form-control" id="remarks" name="remarks"><?php echo $editable ? $branchData->remarks : ''; ?></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php if ($editable) : ?>
|
|
<button type="reset" class="btn btn-default">Reset</button>
|
|
<button class="btn btn-primary" type="submit" name="submit">Save</button>
|
|
<?php else : ?>
|
|
|
|
<button type="submit" class="btn btn-primary" name="submit" >Save</button>
|
|
<?php endif; ?>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|