diff options
Diffstat (limited to 'app/Template/file/new.php')
-rw-r--r-- | app/Template/file/new.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/Template/file/new.php b/app/Template/file/new.php new file mode 100644 index 00000000..a1a59eae --- /dev/null +++ b/app/Template/file/new.php @@ -0,0 +1,14 @@ +<div class="page-header"> + <h2><?= t('Attach a document') ?></h2> +</div> + +<form action="<?= $this->url->href('file', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" method="post" enctype="multipart/form-data"> + <?= $this->form->csrf() ?> + <input type="file" name="files[]" multiple /> + <div class="form-help"><?= t('Maximum size: ') ?><?= is_integer($max_size) ? $this->text->bytes($max_size) : $max_size ?></div> + <div class="form-actions"> + <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/> + <?= t('or') ?> + <?= $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + </div> +</form>
\ No newline at end of file |