Helpers refactoring
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
<h2><?= t('Add a new link') ?></h2>
|
||||
</div>
|
||||
|
||||
<form action="<?= $this->u('link', 'save') ?>" method="post" autocomplete="off">
|
||||
<form action="<?= $this->url->href('link', 'save') ?>" method="post" autocomplete="off">
|
||||
|
||||
<?= $this->formCsrf() ?>
|
||||
<?= $this->form->csrf() ?>
|
||||
|
||||
<?= $this->formLabel(t('Label'), 'label') ?>
|
||||
<?= $this->formText('label', $values, $errors, array('required')) ?>
|
||||
<?= $this->form->label(t('Label'), 'label') ?>
|
||||
<?= $this->form->text('label', $values, $errors, array('required')) ?>
|
||||
|
||||
<?= $this->formLabel(t('Opposite label'), 'opposite_label') ?>
|
||||
<?= $this->formText('opposite_label', $values, $errors) ?>
|
||||
<?= $this->form->label(t('Opposite label'), 'opposite_label') ?>
|
||||
<?= $this->form->text('opposite_label', $values, $errors) ?>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
||||
|
||||
Reference in New Issue
Block a user