mirror of
https://github.com/brmlab/brmbiolab_sklad.git
synced 2025-06-10 14:13:59 +02:00
Initial commit
This commit is contained in:
commit
3b93da31de
1004 changed files with 265840 additions and 0 deletions
7
app/View/Items/add.ctp
Normal file
7
app/View/Items/add.ctp
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
echo $this->Form->create('Item');
|
||||
echo $this->Form->inputs(array(), array('created', 'modified', 'is_deleted'));
|
||||
echo $this->Form->input('StockHistory.amount_in_stock');
|
||||
echo $this->Form->input('StockHistory.location');
|
||||
echo $this->Form->end(__('Save'));
|
5
app/View/Items/edit.ctp
Normal file
5
app/View/Items/edit.ctp
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
echo $this->Form->create('Item');
|
||||
echo $this->Form->inputs(array(), array('created', 'modified'));
|
||||
echo $this->Form->end(__('Save'));
|
63
app/View/Items/index.ctp
Normal file
63
app/View/Items/index.ctp
Normal file
|
@ -0,0 +1,63 @@
|
|||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#items-table").DataTable({
|
||||
paging: false,
|
||||
orderMulti: true,
|
||||
info: false,
|
||||
columns: [
|
||||
{searchable: true},
|
||||
{searchable: true},
|
||||
{searchable: true},
|
||||
{searchable: true},
|
||||
{searchable: true},
|
||||
{searchable: false}
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<table id="items-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>ID</td>
|
||||
<td>Name</td>
|
||||
<td>Type</td>
|
||||
<td>Stock Quantity</td>
|
||||
<td>Placement</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php
|
||||
|
||||
foreach ($items as $item) {
|
||||
printf(
|
||||
'<tr>
|
||||
<td>%d</td>
|
||||
<td>%s</td>
|
||||
<td>%s</td>
|
||||
<td>%s</td>
|
||||
<td>%s</td>
|
||||
<td class="actions">%s %s %s</td>
|
||||
</tr>',
|
||||
$item['Item']['id'],
|
||||
$item['Item']['name'],
|
||||
$item['ItemType']['name'],
|
||||
sprintf('%d %s', $item['StockHistory'][0]['amount_in_stock'], $item['StockUnitType']['name']),
|
||||
$item['StockHistory'][0]['location'],
|
||||
$this->Html->link(__('View'), array('controller' => 'items', 'action' => 'view', $item['Item']['id'])),
|
||||
$this->Html->link(__('Edit'), array('controller' => 'items', 'action' => 'edit', $item['Item']['id'])),
|
||||
$this->Form->postLink(__('Delete'), array('controller' => 'items', 'action' => 'delete', $item['Item']['id']), array(), __('Are you sure you want to delete # %s?', $item['Item']['id']))
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>ID</td>
|
||||
<td>Name</td>
|
||||
<td>Type</td>
|
||||
<td>Stock Quantity</td>
|
||||
<td>Placement</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue