Improve link labels pages navigation

This commit is contained in:
Frederic Guillot
2017-01-08 21:18:54 -05:00
parent 47f4bceb1a
commit 0960a4d0b0
7 changed files with 82 additions and 72 deletions

View File

@@ -1,18 +1,12 @@
<div class="page-header">
<h2><?= t('Add a new link') ?></h2>
<h2><?= t('Add link label') ?></h2>
</div>
<form action="<?= $this->url->href('LinkController', 'save') ?>" method="post" autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->label(t('Label'), 'label') ?>
<?= $this->form->text('label', $values, $errors, array('required')) ?>
<?= $this->form->text('label', $values, $errors, array('required', 'autofocus')) ?>
<?= $this->form->label(t('Opposite label'), 'opposite_label') ?>
<?= $this->form->text('opposite_label', $values, $errors) ?>
<div class="form-actions">
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
</div>
<?= $this->modal->submitButtons() ?>
</form>