From 062fac7b7e2bc85428ebce8ccb61f826baca70fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 27 Jul 2012 16:25:30 +0200 Subject: [PATCH] Refactor add-artist form into an include file. --- src/main/resources/templates/admin.add-artist | 9 ++++----- src/main/resources/templates/admin.artists | 4 +++- src/main/resources/templates/include/admin.add-artist | 9 +++++++++ 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 src/main/resources/templates/include/admin.add-artist diff --git a/src/main/resources/templates/admin.add-artist b/src/main/resources/templates/admin.add-artist index a6e08ee..c3a2a42 100644 --- a/src/main/resources/templates/admin.add-artist +++ b/src/main/resources/templates/admin.add-artist @@ -2,11 +2,10 @@

Add Artist

-
+<%if error|matches value=="no-name-given"> +

You have to specify a name.

+<%/if> - - - -
+<%include include/admin.add-artist> <%include include/footer> \ No newline at end of file diff --git a/src/main/resources/templates/admin.artists b/src/main/resources/templates/admin.artists index 9b261c4..40aea01 100644 --- a/src/main/resources/templates/admin.artists +++ b/src/main/resources/templates/admin.artists @@ -8,6 +8,8 @@ <%last><%/last> <%/foreach> -add new artist +

Add a New Artist

+ +<%include include/admin.add-artist> <%include include/footer> \ No newline at end of file diff --git a/src/main/resources/templates/include/admin.add-artist b/src/main/resources/templates/include/admin.add-artist new file mode 100644 index 0000000..4e4005b --- /dev/null +++ b/src/main/resources/templates/include/admin.add-artist @@ -0,0 +1,9 @@ +
+ +
+ Name: + + +
+ +
-- 2.7.4