1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Template/tasklink/create.php

31 lines
1.3 KiB
PHP
Raw Normal View History

2015-02-25 17:29:06 +01:00
<div class="page-header">
<h2><?= t('Add a new link') ?></h2>
</div>
2015-04-21 17:56:16 +02:00
<form action="<?= $this->u('tasklink', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'ajax' => isset($ajax))) ?>" method="post" autocomplete="off">
2015-02-25 17:29:06 +01:00
<?= $this->formCsrf() ?>
<?= $this->formHidden('task_id', $values) ?>
<?= $this->formHidden('opposite_task_id', $values) ?>
<?= $this->formLabel(t('Label'), 'link_id') ?>
<?= $this->formSelect('link_id', $labels, $values, $errors) ?>
<?= $this->formLabel(t('Task'), 'title') ?>
<?= $this->formText(
'title',
$values,
$errors,
array('required', 'data-dst-field="opposite_task_id"', 'data-search-url="'.$this->u('app', 'autocomplete', array('exclude_task_id' => $task['id'])).'"'),
'task-autocomplete') ?>
<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
<?= t('or') ?>
2015-04-21 17:56:16 +02:00
<?php if (isset($ajax)): ?>
<?= $this->a(t('cancel'), 'board', 'show', array('project_id' => $task['project_id']), false, 'close-popover') ?>
<?php else: ?>
<?= $this->a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
<?php endif ?>
2015-02-25 17:29:06 +01:00
</div>
</form>