From 547667fd17281b3f541c1bbb4e5ed14eea1b2d90 Mon Sep 17 00:00:00 2001 From: noahlearner Date: Mon, 9 Oct 2017 15:04:03 -0600 Subject: [PATCH 1/2] Update _edit.html Changed the edit template to enable the user to add new redirects directly from the edit page. --- redirectmanager/templates/_edit.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/redirectmanager/templates/_edit.html b/redirectmanager/templates/_edit.html index 0fb1cd0..376d9ac 100644 --- a/redirectmanager/templates/_edit.html +++ b/redirectmanager/templates/_edit.html @@ -44,7 +44,12 @@ instructions: "For External: Use 'http://'
For Capture Groups: Use $1, $2, etc (Example: shop/$1)" }) }}

+
+ +       + {{ "New Redirect"|t }}     {{ "Go To Dashboard"|t }} +

{{ forms.selectField({ label: 'Redirect Type'|t, @@ -62,9 +67,7 @@ }) }}

-
- -
+ {% endset %} From bda3a9f7e78ec2859b06070ac2ba3c8cca3225d8 Mon Sep 17 00:00:00 2001 From: noahlearner Date: Mon, 9 Oct 2017 15:05:46 -0600 Subject: [PATCH 2/2] Update index.html I edited the index file to add "add new redirect" button to top of page too to improve usability. --- redirectmanager/templates/index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/redirectmanager/templates/index.html b/redirectmanager/templates/index.html index fef14ae..f1bb859 100644 --- a/redirectmanager/templates/index.html +++ b/redirectmanager/templates/index.html @@ -9,7 +9,9 @@ - + {% if redirects|length %}
@@ -32,12 +34,13 @@
+
{% endif %} - + {% endset %}