first commit
This commit is contained in:
47
administrator/tmpl/firmetipi/default.php
Normal file
47
administrator/tmpl/firmetipi/default.php
Normal file
@ -0,0 +1,47 @@
|
||||
|
||||
<?php
|
||||
\defined('_JEXEC') or die;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Factory;
|
||||
|
||||
|
||||
|
||||
$user = Factory::getApplication()->getIdentity();
|
||||
$listOrder = $this->state->get('list.ordering');
|
||||
$listDirn = $this->state->get('list.direction');
|
||||
?>
|
||||
|
||||
<form action="<?php echo Route::_('index.php?option=com_circolari&view=firmetipi'); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%">#</th>
|
||||
<th><?php echo Text::_('Nome'); ?></th>
|
||||
<th><?php echo Text::_('Descrizione'); ?></th>
|
||||
<th width="1%"><?php echo Text::_('ID'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<tr>
|
||||
<td><?php echo $i + 1; ?></td>
|
||||
<td>
|
||||
<a href="<?php echo Route::_('index.php?option=com_circolari&task=firmatipo.edit&id=' . (int) $item->id); ?>">
|
||||
<?php echo htmlspecialchars($item->nome, ENT_QUOTES, 'UTF-8'); ?>
|
||||
</a>
|
||||
</td>
|
||||
<td><?php echo htmlspecialchars($item->descrizione, ENT_QUOTES, 'UTF-8'); ?></td>
|
||||
<td><?php echo (int) $item->id; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="task" value="" />
|
||||
</form>
|
||||
30
administrator/tmpl/firmetipi/edit.php
Normal file
30
administrator/tmpl/firmetipi/edit.php
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
<?php
|
||||
\defined('_JEXEC') or die;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
HTMLHelper::_('behavior.formvalidator');
|
||||
HTMLHelper::_('formbehavior.chosen', 'select');
|
||||
HTMLHelper::_('formbehavior.tooltip');
|
||||
?>
|
||||
|
||||
<form action="<?php echo Route::_('index.php?option=com_circolari&layout=edit&id=' . (int) $this->item->id); ?>"
|
||||
method="post" name="adminForm" id="adminForm" class="form-validate">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
|
||||
<?php $fields = $this->form->getFieldset($fieldset->name); ?>
|
||||
<?php foreach ($fields as $field) : ?>
|
||||
<div class="mb-3">
|
||||
<?php echo $field->label; ?>
|
||||
<?php echo $field->input; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="task" value="firmetipi.save">
|
||||
<?php echo HTMLHelper::_('form.token'); ?>
|
||||
</form>
|
||||
Reference in New Issue
Block a user