mirror of
https://github.com/brmlab/brmbiolab_sklad.git
synced 2025-06-08 13:14:01 +02:00
Index/Add views for StockUnitType and ItemType, View/Update for Item, Style to apply on all tables, DataTables used on details and indexes
This commit is contained in:
parent
be2b39c5eb
commit
5d4d209549
15 changed files with 322 additions and 313 deletions
|
@ -20,6 +20,49 @@
|
|||
echo $this->fetch('css');
|
||||
echo $this->fetch('script');
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery.fn.DataTable.ext.type.search.string = function (data) {
|
||||
return !data ?
|
||||
'' :
|
||||
typeof data === 'string' ?
|
||||
data
|
||||
.replace(/\n/g, ' ')
|
||||
.replace(/á/g, 'a')
|
||||
.replace(/é/g, 'e')
|
||||
.replace(/í/g, 'i')
|
||||
.replace(/ó/g, 'o')
|
||||
.replace(/ú/g, 'u')
|
||||
.replace(/ê/g, 'e')
|
||||
.replace(/î/g, 'i')
|
||||
.replace(/ô/g, 'o')
|
||||
.replace(/è/g, 'e')
|
||||
.replace(/ï/g, 'i')
|
||||
.replace(/ü/g, 'u')
|
||||
.replace(/ě/g, 'e')
|
||||
.replace(/š/g, 's')
|
||||
.replace(/č/g, 'c')
|
||||
.replace(/ř/g, 'r')
|
||||
.replace(/ž/g, 'z')
|
||||
.replace(/ý/g, 'y')
|
||||
.replace(/ö/g, 'o')
|
||||
.replace(/ä/g, 'a')
|
||||
.replace(/ň/g, 'n')
|
||||
.replace(/Ě/g, 'e')
|
||||
.replace(/Š/g, 's')
|
||||
.replace(/Č/g, 'c')
|
||||
.replace(/Ř/g, 'r')
|
||||
.replace(/Ž/g, 'z')
|
||||
.replace(/Ý/g, 'y')
|
||||
.replace(/Á/g, 'a')
|
||||
.replace(/Í/g, 'i')
|
||||
.replace(/É/g, 'e')
|
||||
.replace(/Ň/g, 'n')
|
||||
.replace(/Ť/g, 't')
|
||||
.replace(/Ď/g, 'd')
|
||||
.replace(/ç/g, 'c') :
|
||||
data;
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
|
@ -28,8 +71,8 @@
|
|||
<ul id="top-menu">
|
||||
<li><?php echo $this->Html->link(__('All Items'), array('controller' => 'items', 'action' => 'index')) ?></li>
|
||||
<li><?php echo $this->Html->link(__('Add Item'), array('controller' => 'items', 'action' => 'add')) ?></li>
|
||||
<li><?php echo $this->Html->link(__('Add Item Type'), array('controller' => 'item_types', 'action' => 'add')) ?></li>
|
||||
<li><?php echo $this->Html->link(__('Add Unit Type'), array('controller' => 'unit_types', 'action' => 'add')) ?></li>
|
||||
<li><?php echo $this->Html->link(__('Add Item Type'), array('controller' => 'item_types', 'action' => 'index')) ?></li>
|
||||
<li><?php echo $this->Html->link(__('Add Unit Type'), array('controller' => 'stock_unit_types', 'action' => 'index')) ?></li>
|
||||
</ul>
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue