summaryrefslogtreecommitdiff
path: root/app/Template/comment
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-18 21:00:14 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-18 21:00:14 -0400
commit854457baf0043b51ce9c30f36a6fecaed97cb04d (patch)
tree0f73023f63654ee7313ac79e83d9d19e58658a1a /app/Template/comment
parent68fba8fb64afe00aedccdf72f25d79b26356f2ab (diff)
Improve task summary sections
Diffstat (limited to 'app/Template/comment')
-rw-r--r--app/Template/comment/create.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/Template/comment/create.php b/app/Template/comment/create.php
index 574eec9f..58b4abdf 100644
--- a/app/Template/comment/create.php
+++ b/app/Template/comment/create.php
@@ -1,7 +1,7 @@
<div class="page-header">
<h2><?= t('Add a comment') ?></h2>
</div>
-<form class="popover-form" method="post" action="<?= $this->url->href('comment', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off" class="form-comment">
+<form class="popover-form" method="post" action="<?= $this->url->href('comment', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->hidden('task_id', $values) ?>
<?= $this->form->hidden('user_id', $values) ?>
@@ -21,7 +21,7 @@
$values,
$errors,
array(
- ! isset($skip_cancel) ? 'autofocus' : '',
+ 'autofocus',
'required',
'placeholder="'.t('Leave a comment').'"',
'data-mention-search-url="'.$this->url->href('UserHelper', 'mention', array('project_id' => $task['project_id'])).'"',
@@ -38,9 +38,7 @@
<div class="form-actions">
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
- <?php if (! isset($skip_cancel)): ?>
- <?= t('or') ?>
- <?= $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
- <?php endif ?>
+ <?= t('or') ?>
+ <?= $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
</div>
</form>