From: David ‘Bombe’ Roden Date: Fri, 27 Jul 2012 14:25:30 +0000 (+0200) Subject: Refactor add-artist form into an include file. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=062fac7b7e2bc85428ebce8ccb61f826baca70fb;p=demoscenemusic.git Refactor add-artist form into an include file. --- 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: + + +
+ +