projects
/
demoscenemusic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor add-artist form into an include file.
[demoscenemusic.git]
/
src
/
main
/
resources
/
templates
/
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
(file)
--- a/
src/main/resources/templates/admin.add-artist
+++ b/
src/main/resources/templates/admin.add-artist
@@
-2,11
+2,10
@@
<h1>Add Artist</h1>
<h1>Add Artist</h1>
-<form method="post">
+<%if error|matches value=="no-name-given">
+ <p>You have to specify a name.</p>
+<%/if>
- <label>Name: <input type="text" name="name" value=""/></label>
- <button type="submit">Add Artist</button>
-
-</form>
+<%include include/admin.add-artist>
<%include include/footer>
\ No newline at end of file
<%include include/footer>
\ No newline at end of file