Adding views of stacks, manufacturers lists

This commit is contained in:
2023-10-23 21:55:15 +02:00
parent 577a9f680a
commit e4a1d2c078
25 changed files with 1234 additions and 23 deletions

View File

@ -13,7 +13,6 @@ use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
?>
<h2>Welcome to my Depot Component!</h2>
<form action="<?= Route::_('index.php?option=com_depot&view=parts'); ?>" method="post" name="adminForm" id="adminForm">
@ -37,6 +36,18 @@ use Joomla\CMS\Router\Route;
<th>
<?= Text::_('COM_DEPOT_TABLE_HEAD_NAME') ?>
</th>
<th>
<?= Text::_('COM_DEPOT_TABLE_HEAD_QUANTITY') ?>
</th>
<th>
<?= Text::_('COM_DEPOT_TABLE_HEAD_QUANTITY_EXP') ?>
</th>
<th>
<?= Text::_('COM_DEPOT_TABLE_HEAD_MANUFACTURER') ?>
</th>
<th>
<?= Text::_('COM_DEPOT_TABLE_HEAD_STOCK') ?>
</th>
</tr>
</thead>
<tbody>
@ -54,6 +65,24 @@ use Joomla\CMS\Router\Route;
<?= $this->escape($item->component_name); ?>
</a>
</td>
<td>
<?= $this->escape($item->quantity); ?>
</td>
<td>
<?= "10^" . $item->quantity_exp; ?>
</td>
<td>
<a href="<?= Route::_('index.php?option=com_depot&task=manufacturer.edit&id=' .
(int) $item->id) ?>" title="<?= Text::_('JACTION_EDIT') ?>">
<?= $this->escape($item->manufacturer); ?>
</a>
</td>
<td>
<a href="<?= Route::_('index.php?option=com_depot&task=stock.edit&id=' .
(int) $item->id) ?>" title="<?= Text::_('JACTION_EDIT') ?>">
<?= $this->escape($item->stock_name); ?>
</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>