From 0960a4d0b00c9491b554cd49557b052414168e86 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 8 Jan 2017 21:18:54 -0500 Subject: Improve link labels pages navigation --- app/Template/link/create.php | 12 +++--------- app/Template/link/index.php | 33 --------------------------------- app/Template/link/show.php | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 42 deletions(-) delete mode 100644 app/Template/link/index.php create mode 100644 app/Template/link/show.php (limited to 'app/Template/link') diff --git a/app/Template/link/create.php b/app/Template/link/create.php index 23990604..37610a3b 100644 --- a/app/Template/link/create.php +++ b/app/Template/link/create.php @@ -1,18 +1,12 @@
- form->csrf() ?> - form->label(t('Label'), 'label') ?> - form->text('label', $values, $errors, array('required')) ?> - + form->text('label', $values, $errors, array('required', 'autofocus')) ?> form->label(t('Opposite label'), 'opposite_label') ?> form->text('opposite_label', $values, $errors) ?> - -
- -
+ modal->submitButtons() ?>
diff --git a/app/Template/link/index.php b/app/Template/link/index.php deleted file mode 100644 index b0dcad1e..00000000 --- a/app/Template/link/index.php +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - -
- - - - | - - -
    - modal->medium('edit', t('Edit'), 'LinkController', 'edit', array('link_id' => $link['id'])) ?> - - modal->confirm('trash-o', t('Remove'), 'LinkController', 'confirm', array('link_id' => $link['id'])) ?> -
-
- - - - -render('link/create', array('values' => $values, 'errors' => $errors)) ?> diff --git a/app/Template/link/show.php b/app/Template/link/show.php new file mode 100644 index 00000000..6aadd66b --- /dev/null +++ b/app/Template/link/show.php @@ -0,0 +1,36 @@ + + + + + + + + + + + + + +
+ + + + | + + +
    + modal->medium('edit', t('Edit'), 'LinkController', 'edit', array('link_id' => $link['id'])) ?> + + modal->confirm('trash-o', t('Remove'), 'LinkController', 'confirm', array('link_id' => $link['id'])) ?> +
+
+ + + -- cgit v1.2.3