Inital commit
This commit is contained in:
commit
a6af7dbfcb
114 files changed
+27520
No files matched your search
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<%- include('../partials/head'); -%>
|
||||
<%- include('../partials/admin-editor-css'); -%>
|
||||
<title>Admin - Artist editor</title>
|
||||
</head>
|
||||
<body>
|
||||
<%- include('../winter'); -%>
|
||||
|
||||
|
||||
<div class="editor-container">
|
||||
<a class="btn btn-back" href="<%= endpoint %>/dashboard">Back to dashboard</a>
|
||||
<section>
|
||||
<h2>Add Artist</h2>
|
||||
<form action="<%= endpoint %>/artists/add" method="post" class="editor-form editor-form--compact">
|
||||
|
||||
<input type="text" name="name" placeholder="Name" required>
|
||||
<input type="text" name="tag" placeholder="Tag" required>
|
||||
<textarea type="text" name="urls" placeholder="urls"></textarea>
|
||||
|
||||
|
||||
<button type="submit">Add</button>
|
||||
</form>
|
||||
</section>
|
||||
<% for (var i = 0; i < artists.length; i++) { %>
|
||||
<section>
|
||||
<form action="<%= endpoint %>/artists/edit" method="post" class="editor-form editor-form--compact">
|
||||
<input type="hidden" name="id" value="<%= artists[i].id %>">
|
||||
|
||||
<input type="text" name="name" value="<%= artists[i].name %>" placeholder="Name" required>
|
||||
<input type="text" name="tag" value="<%= artists[i].tag %>" placeholder="Tag" required>
|
||||
<textarea type="text" name="urls" placeholder="urls"><%= artists[i].urls.join(', ') %></textarea>
|
||||
|
||||
<button type="submit">Save</button>
|
||||
</form>
|
||||
<form action="<%= endpoint %>/artists/delete" method="post" class="editor-form editor-form--compact">
|
||||
<input type="hidden" name="id" value="<%= artists[i].id %>">
|
||||
|
||||
<button type="submit" style="color: var(--admin-danger); border-color: var(--admin-danger);">Delete</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<%- include('../partials/icon-select-script'); -%>
|
||||
</script>
|
||||
|
||||
<%- include('../footer'); -%>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user