mirror of https://github.com/joomla/joomla-cms.git
[4.0] com_config buttons front end (#29320)
Removes the toolbar markup as it is not needed - they are just buttons. Bonus this also ensures the buttons are spaced correctly.
This commit is contained in:
parent
19c9832a24
commit
82eac13730
|
@ -20,20 +20,14 @@ HTMLHelper::_('script', 'com_config/config-default.js', ['version' => 'auto', 'r
|
|||
|
||||
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" id="application-form" method="post" name="adminForm" class="form-validate">
|
||||
|
||||
<div class="btn-toolbar" role="toolbar" aria-label="<?php echo Text::_('JTOOLBAR'); ?>">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary" data-submit-task="config.apply">
|
||||
<span class="fas fa-check" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JSAVE') ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-danger" data-submit-task="config.cancel">
|
||||
<span class="fas fa-times" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JCANCEL') ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary" data-submit-task="config.apply">
|
||||
<span class="fas fa-check" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JSAVE') ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger" data-submit-task="config.cancel">
|
||||
<span class="fas fa-times" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JCANCEL') ?>
|
||||
</button>
|
||||
|
||||
<hr>
|
||||
|
||||
|
|
|
@ -46,20 +46,18 @@ if (Multilanguage::isEnabled())
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div role="toolbar" aria-label="<?php echo Text::_('JTOOLBAR'); ?>">
|
||||
<button type="button" class="btn btn-primary" data-submit-task="modules.apply">
|
||||
<span class="fas fa-check" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JAPPLY'); ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-secondary" data-submit-task="modules.save">
|
||||
<span class="fas fa-check" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JSAVE'); ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger" data-submit-task="modules.cancel">
|
||||
<span class="fas fa-times" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JCANCEL'); ?>
|
||||
</button>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary" data-submit-task="modules.apply">
|
||||
<span class="fas fa-check" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JAPPLY'); ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-secondary" data-submit-task="modules.save">
|
||||
<span class="fas fa-check" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JSAVE'); ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger" data-submit-task="modules.cancel">
|
||||
<span class="fas fa-times" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JCANCEL'); ?>
|
||||
</button>
|
||||
|
||||
<hr>
|
||||
|
||||
|
|
|
@ -23,20 +23,14 @@ HTMLHelper::_('script', 'com_config/templates-default.js', ['version' => 'auto',
|
|||
|
||||
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" method="post" name="adminForm" id="templates-form" class="form-validate">
|
||||
|
||||
<div class="btn-toolbar" role="toolbar" aria-label="<?php echo Text::_('JTOOLBAR'); ?>">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-primary" data-submit-task="templates.apply">
|
||||
<span class="fas fa-check" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JSAVE') ?>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-danger" data-submit-task="templates.cancel">
|
||||
<span class="fas fa-times" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JCANCEL') ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-primary" data-submit-task="templates.apply">
|
||||
<span class="fas fa-check" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JSAVE') ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-danger" data-submit-task="templates.cancel">
|
||||
<span class="fas fa-times" aria-hidden="true"></span>
|
||||
<?php echo Text::_('JCANCEL') ?>
|
||||
</button>
|
||||
|
||||
<hr>
|
||||
|
||||
|
|
Loading…
Reference in New Issue