summaryrefslogtreecommitdiff
path: root/app/Template/project/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/project/edit.php')
-rw-r--r--app/Template/project/edit.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/app/Template/project/edit.php b/app/Template/project/edit.php
index 8b94e378..794267f4 100644
--- a/app/Template/project/edit.php
+++ b/app/Template/project/edit.php
@@ -1,28 +1,28 @@
<div class="page-header">
<h2><?= t('Edit project') ?></h2>
</div>
-<form method="post" action="<?= $this->u('project', 'update', array('project_id' => $project['id'])) ?>" autocomplete="off">
+<form method="post" action="<?= $this->url->href('project', 'update', array('project_id' => $project['id'])) ?>" autocomplete="off">
- <?= $this->formCsrf() ?>
- <?= $this->formHidden('id', $values) ?>
+ <?= $this->form->csrf() ?>
+ <?= $this->form->hidden('id', $values) ?>
- <?= $this->formLabel(t('Name'), 'name') ?>
- <?= $this->formText('name', $values, $errors, array('required', 'maxlength="50"')) ?>
+ <?= $this->form->label(t('Name'), 'name') ?>
+ <?= $this->form->text('name', $values, $errors, array('required', 'maxlength="50"')) ?>
- <?= $this->formLabel(t('Identifier'), 'identifier') ?>
- <?= $this->formText('identifier', $values, $errors, array('maxlength="50"')) ?>
+ <?= $this->form->label(t('Identifier'), 'identifier') ?>
+ <?= $this->form->text('identifier', $values, $errors, array('maxlength="50"')) ?>
<p class="form-help"><?= t('The project identifier is an optional alphanumeric code used to identify your project.') ?></p>
- <?php if ($this->userSession->isAdmin()): ?>
- <?= $this->formCheckbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?>
+ <?php if ($this->user->isAdmin()): ?>
+ <?= $this->form->checkbox('is_private', t('Private project'), 1, $project['is_private'] == 1) ?>
<?php endif ?>
- <?= $this->formLabel(t('Description'), 'description') ?>
+ <?= $this->form->label(t('Description'), 'description') ?>
<div class="form-tabs">
<div class="write-area">
- <?= $this->formTextarea('description', $values, $errors) ?>
+ <?= $this->form->textarea('description', $values, $errors) ?>
</div>
<div class="preview-area">
<div class="markdown"></div>