Inital commit
This commit is contained in:
commit
a6af7dbfcb
114 files changed
+27520
No files matched your search
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<%- include('../partials/head'); -%>
|
||||
<%- include('../partials/admin-editor-css'); -%>
|
||||
<title>Admin - Icon editor</title>
|
||||
</head>
|
||||
<body>
|
||||
<%- include('../winter'); -%>
|
||||
|
||||
<div class="editor-container editor-container--wide">
|
||||
<a class="btn btn-back" href="<%= endpoint %>/dashboard">Back to dashboard</a>
|
||||
<section>
|
||||
<h2>Add icon</h2>
|
||||
<form action="<%= endpoint %>/add-icon" enctype="multipart/form-data" method="post" class="editor-form editor-form--stacked">
|
||||
<input type="file" name="icon">
|
||||
<input type="text" name="alt" placeholder="Alt">
|
||||
<button type="submit">Upload</button>
|
||||
</form>
|
||||
</section>
|
||||
<% for(var i = 0; i < icons.length; i++) {%>
|
||||
<section>
|
||||
<img class="editor-preview-img" src="/assets/images/<%= icons[i].path %>" alt="<%= icons[i].alt %>">
|
||||
<input type="text" readonly value="<%= icons[i].name %>">
|
||||
<form action="<%= endpoint %>/edit-alt-text-icon" method="post" class="editor-form editor-form--stacked">
|
||||
<input type="text" name="id" value="<%= icons[i].id %>" hidden>
|
||||
<input type="text" name="alt" value="<%= icons[i].alt %>">
|
||||
<button type="submit">Edit alt</button>
|
||||
</form>
|
||||
<form action="<%= endpoint %>/delete-icon" method="post" class="editor-form editor-form--stacked">
|
||||
<input type="text" name="id" value="<%= icons[i].id %>" hidden>
|
||||
<button type="submit" class="delete">Delete</button>
|
||||
</form>
|
||||
</section>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<%- include('../footer'); -%>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user