Files
conservatorio-tomadini/administrator/components/com_highlights/tmpl/highlight/edit.php

100 lines
4.0 KiB
PHP

<?php
/**
* @version CVS: 1.0.0
* @package Com_Highlights
* @author Eddy Prosperi <eddy.prosperi@protocollicreativi.it>
* @copyright 2024 Eddy Prosperi
* @license GNU General Public License versione 2 o successiva; vedi LICENSE.txt
*/
// No direct access
defined('_JEXEC') or die;
use \Joomla\CMS\HTML\HTMLHelper;
use \Joomla\CMS\Factory;
use \Joomla\CMS\Uri\Uri;
use \Joomla\CMS\Router\Route;
use \Joomla\CMS\Language\Text;
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate');
HTMLHelper::_('bootstrap.tooltip');
?>
<form
action="<?php echo Route::_('index.php?option=com_highlights&layout=edit&id=' . (int) $this->item->id); ?>"
method="post" enctype="multipart/form-data" name="adminForm" id="highlight-form" class="form-validate form-horizontal">
<?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' => 'highlight')); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'highlight', Text::_('COM_HIGHLIGHTS_TAB_HIGHLIGHT', true)); ?>
<div class="row-fluid">
<div class="col-md-12 form-horizontal">
<fieldset class="adminform">
<legend><?php echo Text::_('COM_HIGHLIGHTS_FIELDSET_HIGHLIGHT'); ?></legend>
<?php echo $this->form->renderField('etichetta'); ?>
<?php echo $this->form->renderField('titolo'); ?>
<?php echo $this->form->renderField('sottotitolo'); ?>
<?php echo $this->form->renderField('descrizione'); ?>
<?php echo $this->form->renderField('lingua'); ?>
<?php echo $this->form->renderField('link_pulsante'); ?>
<?php echo $this->form->renderField('link_pdf'); ?>
<?php echo $this->form->renderField('testo_pulsante'); ?>
<?php echo $this->form->renderField('data'); ?>
</fieldset>
</div>
</div>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'Immagini', Text::_('COM_HIGHLIGHTS_TAB_IMMAGINI', true)); ?>
<div class="row-fluid">
<div class="col-md-12 form-horizontal">
<fieldset class="adminform">
<legend><?php echo Text::_('COM_HIGHLIGHTS_FIELDSET_IMMAGINI'); ?></legend>
<?php echo $this->form->renderField('immagine_main'); ?>
<?php echo $this->form->renderField('immagine_secondaria'); ?>
</fieldset>
</div>
</div>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'Stile', Text::_('COM_HIGHLIGHTS_TAB_STILE', true)); ?>
<div class="row-fluid">
<div class="col-md-12 form-horizontal">
<fieldset class="adminform">
<legend><?php echo Text::_('COM_HIGHLIGHTS_FIELDSET_STILE'); ?></legend>
<?php echo $this->form->renderField('classe'); ?>
<?php echo $this->form->renderField('colore_testo'); ?>
<?php echo $this->form->renderField('colore_sfondo'); ?>
<?php echo $this->form->renderField('opacita'); ?>
<?php echo $this->form->renderField('colore_sfondo_bottone'); ?>
<?php echo $this->form->renderField('colore_testo_bottone'); ?>
</fieldset>
</div>
</div>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'Pubblicazione', Text::_('COM_HIGHLIGHTS_TAB_PUBBLICAZIONE', true)); ?>
<div class="row-fluid">
<div class="col-md-12 form-horizontal">
<fieldset class="adminform">
<legend><?php echo Text::_('COM_HIGHLIGHTS_FIELDSET_PUBBLICAZIONE'); ?></legend>
<?php echo $this->form->renderField('data_inizio_pubblicazione'); ?>
<?php echo $this->form->renderField('data_fine_pubblicazione'); ?>
</fieldset>
</div>
</div>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<input type="hidden" name="jform[id]" value="<?php echo isset($this->item->id) ? $this->item->id : ''; ?>" />
<input type="hidden" name="jform[state]" value="<?php echo isset($this->item->state) ? $this->item->state : ''; ?>" />
<?php echo $this->form->renderField('created_by'); ?>
<?php echo $this->form->renderField('modified_by'); ?>
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
<input type="hidden" name="task" value=""/>
<?php echo HTMLHelper::_('form.token'); ?>
</form>