Show a form based autosubmit warning when toggling instance features

refs #7935
This commit is contained in:
Johannes Meyer 2015-03-03 14:34:08 +01:00
parent 747e51553e
commit d9fdcf036b
4 changed files with 16 additions and 6 deletions

View File

@ -25,7 +25,10 @@ class ToggleInstanceFeaturesCommandForm extends CommandForm
*/
public function init()
{
$this->setUseFormAutosubmit();
$this->setTitle($this->translate('Feature Commands'));
$this->setAttrib('class', 'inline instance-features');
$this->loadDefaultDecorators()->getDecorator('description')->setTag('h2');
}
/**

View File

@ -16,10 +16,7 @@ $cp = $this->checkPerformance()->create($this->checkperformance);
<div class="boxview">
<div class="box left">
<h2 tabindex="-1" id="process-feature-command">
<?= $this->translate('Feature Commands') ?>
</h2>
<?= $this->toggleFeaturesForm ?>
<?= $this->toggleFeaturesForm; ?>
</div>
<div class="box left">

View File

@ -160,6 +160,16 @@ form.instance-features span.description, form.object-features span.description {
display: inline;
}
.boxview div.box form.instance-features div.header {
border-bottom: 1px solid #d9d9d9;
margin-bottom: 0.5em;
h2 {
border: 0;
padding-bottom: 0;
}
}
table.avp .customvar ul {
list-style-type: none;
margin: 0;
@ -202,4 +212,4 @@ hr.command-separator {
.sort-box {
float: right;
margin-right: 1em;
}
}

View File

@ -230,7 +230,7 @@ form ul.descriptions {
}
form > div.header {
h1 {
h1, h2, h3, h4, h5, h6 {
display: inline-block;
}
}