Fix wrong arguments for submitButtons() helper

This commit is contained in:
Frederic Guillot 2017-01-11 22:43:24 -05:00
parent 85fb4dd1ca
commit 0807f27981
4 changed files with 11 additions and 4 deletions

View File

@ -8,5 +8,7 @@
<?= $this->form->label(t('Action'), 'action_name') ?> <?= $this->form->label(t('Action'), 'action_name') ?>
<?= $this->form->select('action_name', $available_actions, $values) ?> <?= $this->form->select('action_name', $available_actions, $values) ?>
<?= $this->modal->submitButtons(t('Next step')) ?> <?= $this->modal->submitButtons(array(
'submitLabel' => t('Next step')
)) ?>
</form> </form>

View File

@ -18,5 +18,7 @@
<?= t('When the selected event occurs execute the corresponding action.') ?> <?= t('When the selected event occurs execute the corresponding action.') ?>
</div> </div>
<?= $this->modal->submitButtons(t('Next step')) ?> <?= $this->modal->submitButtons(array(
'submitLabel' => t('Next step')
)) ?>
</form> </form>

View File

@ -8,5 +8,8 @@
<p class="alert"><?= t('%d task(s) in the column "%s" and the swimlane "%s" will be closed.', $nb_tasks, $column, $swimlane) ?></p> <p class="alert"><?= t('%d task(s) in the column "%s" and the swimlane "%s" will be closed.', $nb_tasks, $column, $swimlane) ?></p>
<?= $this->modal->submitButtons(t('Yes'), 'red') ?> <?= $this->modal->submitButtons(array(
'submitLabel' => t('Yes'),
'color' => 'red',
)) ?>
</form> </form>

View File

@ -32,5 +32,5 @@
<p class="form-help"><?= t('Maximum size: ') ?><?= is_integer($max_size) ? $this->text->bytes($max_size) : $max_size ?></p> <p class="form-help"><?= t('Maximum size: ') ?><?= is_integer($max_size) ? $this->text->bytes($max_size) : $max_size ?></p>
<?= $this->modal->submitButtons(array('labelSubmit' => t('Import'))) ?> <?= $this->modal->submitButtons(array('submitLabel' => t('Import'))) ?>
</form> </form>