summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-01-11 22:43:24 -0500
committerFrederic Guillot <fred@kanboard.net>2017-01-11 22:43:24 -0500
commit0807f2798157124e4ee2226d2749432e0748bc78 (patch)
treedd2c879a4fe95ba8e9dc42d5a08bc9013fd8ece3 /app
parent85fb4dd1ca54be22fbe393c27175b6fc78b7758b (diff)
Fix wrong arguments for submitButtons() helper
Diffstat (limited to 'app')
-rw-r--r--app/Template/action_creation/create.php4
-rw-r--r--app/Template/action_creation/event.php4
-rw-r--r--app/Template/board_popover/close_all_tasks_column.php5
-rw-r--r--app/Template/user_import/show.php2
4 files changed, 11 insertions, 4 deletions
diff --git a/app/Template/action_creation/create.php b/app/Template/action_creation/create.php
index 04aa761c..862ee474 100644
--- a/app/Template/action_creation/create.php
+++ b/app/Template/action_creation/create.php
@@ -8,5 +8,7 @@
<?= $this->form->label(t('Action'), 'action_name') ?>
<?= $this->form->select('action_name', $available_actions, $values) ?>
- <?= $this->modal->submitButtons(t('Next step')) ?>
+ <?= $this->modal->submitButtons(array(
+ 'submitLabel' => t('Next step')
+ )) ?>
</form>
diff --git a/app/Template/action_creation/event.php b/app/Template/action_creation/event.php
index 58996ad8..e4166548 100644
--- a/app/Template/action_creation/event.php
+++ b/app/Template/action_creation/event.php
@@ -18,5 +18,7 @@
<?= t('When the selected event occurs execute the corresponding action.') ?>
</div>
- <?= $this->modal->submitButtons(t('Next step')) ?>
+ <?= $this->modal->submitButtons(array(
+ 'submitLabel' => t('Next step')
+ )) ?>
</form>
diff --git a/app/Template/board_popover/close_all_tasks_column.php b/app/Template/board_popover/close_all_tasks_column.php
index 54ea3220..ab7c2d47 100644
--- a/app/Template/board_popover/close_all_tasks_column.php
+++ b/app/Template/board_popover/close_all_tasks_column.php
@@ -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>
- <?= $this->modal->submitButtons(t('Yes'), 'red') ?>
+ <?= $this->modal->submitButtons(array(
+ 'submitLabel' => t('Yes'),
+ 'color' => 'red',
+ )) ?>
</form>
diff --git a/app/Template/user_import/show.php b/app/Template/user_import/show.php
index 9a8572c5..3b0e599c 100644
--- a/app/Template/user_import/show.php
+++ b/app/Template/user_import/show.php
@@ -32,5 +32,5 @@
<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>