|
10 | 10 | defined('_JEXEC') or die; |
11 | 11 |
|
12 | 12 | use Joomla\CMS\HTML\HTMLHelper; |
| 13 | +use Joomla\CMS\Language\Text; |
13 | 14 | use Joomla\CMS\Router\Route; |
14 | 15 |
|
15 | 16 | /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ |
|
18 | 19 | ->useScript('form.validate'); |
19 | 20 | ?> |
20 | 21 |
|
21 | | -<form action="<?php echo Route::_('index.php?option=com_ccm&view=cms&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="cms-form" class="form-validate"> |
22 | | - <div> |
23 | | - <div class="row"> |
24 | | - <div class="col-md-9"> |
25 | | - <div class="row"> |
26 | | - <div class="col-md-6"> |
27 | | - <?php foreach ($this->form->getFieldset() as $field) :?> |
28 | | - <?php echo $field->renderField(); ?> |
29 | | - <?php endforeach;?> |
30 | | - </div> |
31 | | - </div> |
32 | | - </div> |
33 | | - </div> |
| 22 | +<form action="<?php echo Route::_('index.php?option=com_ccm&view=cms&layout=edit&id=' . (int) $this->item->id); ?>" |
| 23 | + method="post" name="adminForm" id="cms-form" aria-label="<?php echo Text::_('COM_CCM_CMS_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>" |
| 24 | + class="main-card form-validate"> |
| 25 | + <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => 'details', 'recall' => true, 'breakpoint' => 768]); ?> |
| 26 | + <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'details', Text::_('COM_CCM_CMS_DETAILS')); ?> |
| 27 | + <div class="form-grid"> |
| 28 | + <?php foreach ($this->form->getFieldset() as $field) :?> |
| 29 | + <?php echo $field->renderField(); ?> |
| 30 | + <?php endforeach;?> |
34 | 31 | </div> |
| 32 | + <?php echo HTMLHelper::_('uitab.endTab'); ?> |
| 33 | + <?php echo HTMLHelper::_('uitab.endTabSet'); ?> |
| 34 | + |
| 35 | + <?php echo $this->form->renderControlFields(); ?> |
35 | 36 | <input type="hidden" name="task" value=""> |
36 | 37 | <?php echo HTMLHelper::_('form.token'); ?> |
37 | 38 | </form> |
0 commit comments