Skip to content

Commit

Permalink
Add HTML Classes
Browse files Browse the repository at this point in the history
- #17
  • Loading branch information
aljawaid committed Jan 18, 2023
1 parent 6d4b363 commit 7de3dc3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
11 changes: 7 additions & 4 deletions Template/action_creation/event.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<div class="page-header">
<h2><?= t('Choose an event') ?></h2>
<div class="page-header step-2-form">
</div>

<?php if ($values['action_name'] == '\Kanboard\Plugin\KanboardEmailHistory\Action\EmailTaskHistory'): ?>
<form method="post" action="<?= $this->url->href('EmailHistoryController', 'parameters', array('project_id' => $project['id'], 'plugin' => 'KanboardEmailHistory')) ?>">
<form method="post" class="eth-form" action="<?= $this->url->href('EmailHistoryController', 'parameters', array('project_id' => $project['id'], 'plugin' => 'KanboardEmailHistory')) ?>">
<?= $this->form->csrf() ?>

<?= $this->form->hidden('action_name', $values) ?>

<i><?= $this->form->label(t('Selected Action'), 'action_name') ?></i>
<i><?= $this->form->label(t('Selected Action'), 'action_name', array('class="selected-labels"')) ?></i>
<?= $this->form->select('action_name', $available_actions, $values, array(), array('disabled')) ?>

<?= $this->form->label(t('Event'), 'event_name') ?>
<?= $this->form->label(t('Event'), 'event_name', array('class="selected-labels"')) ?>
<?= $this->form->select('event_name', $events, $values) ?>

<div class="form-help">
<?= t('When the selected event occurs execute the corresponding action.') ?>
</div>

<div class="help-text">
</div>

<?= $this->modal->submitButtons(array(
'submitLabel' => t('Next step')
)) ?>
Expand Down
10 changes: 7 additions & 3 deletions Template/action_creation/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
<h2><?= t('Define Automatic Action Parameters') ?></h2>
</div>

<form method="post" action="<?= $this->url->href('ActionCreationController', 'save', array('project_id' => $project['id'])) ?>" autocomplete="on">
<form method="post" class="eth-form" action="<?= $this->url->href('ActionCreationController', 'save', array('project_id' => $project['id'])) ?>" autocomplete="on">
<?= $this->form->csrf() ?>

<?= $this->form->hidden('event_name', $values) ?>
<?= $this->form->hidden('action_name', $values) ?>

<i><?= $this->form->label(t('Selected Action'), 'action_name') ?></i>
<i class="">
<?= $this->form->label(t('Selected Action'), 'action_name', array('class="selected-labels"')) ?>
</i>
<?= $this->form->select('action_name', $available_actions, $values, array(), array('disabled')) ?>

<i><?= $this->form->label(t('Selected Event'), 'event_name') ?></i>
<i class="">
<?= $this->form->label(t('Selected Event'), 'event_name', array('class="selected-labels"')) ?>
</i>
<?= $this->form->select('event_name', $events, $values, array(), array('disabled')) ?>

<?php if ($values['action_name'] == '\Kanboard\Plugin\KanboardEmailHistory\Action\EmailTaskHistory'): ?>
Expand Down

0 comments on commit 7de3dc3

Please sign in to comment.