Browse Source

update dashboard.html template (add archive links and upload forms).

stable
Craig Oates 2 years ago
parent
commit
23365343b1
  1. 34
      templates/user/dashboard.html

34
templates/user/dashboard.html

@ -3,9 +3,11 @@
{% block content %}
<h1>Dashboard</h1>
<div>
<a href="/create/page">Create Page</a>
<a href="/user/pages">Manage Pages</a>
<a href="/storage/manage">Manage Files</a>
<a href="/create/page">Create Page</a> |
<a href="/create/archive-entry">Create Archive Entry</a> |
<a href="/user/archive">Manage Archive</a> |
<a href="/user/pages">Manage Pages</a> |
<a href="/storage/manage">Manage Files</a> |
{% if roles.administrator %}
<a href="/users">Manage Users</a>
{% endif %}
@ -13,20 +15,30 @@
<div>
<h2>File Upload</h2>
<form action="/storage/upload" method="POST" enctype="multipart/form-data">
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}">
<form action="/storage/upload"
method="POST"
enctype="multipart/form-data">
<input required type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<label>Name</label>
<input required type="text" name="FILE-NAME">
<label>Single File Upload</label>
<input required type="file" name="STORAGE-FILE">
<input type="submit" value="Upload File"/>
</form>
<form action="/storage/multi-upload" method="POST" enctype="multipart/form-data">
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}">
<label>Multi-File Upload</label>
<p>Warning: This will overwrite any files stored on the server with the same name.</p>
<input required type="file" name="STORAGE-FILES" multiple>
<h2>Multi-File Upload</h2>
<form action="/storage/multi-upload" method="POST"
enctype="multipart/form-data">
<input required type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<p><em>
(Warning: This will overwrite any files stored on the
server with the same name.)
</em></p>
<input required type="file"
name="STORAGE-FILES" multiple>
<input type="submit" value="Upload Files"/>
</form>
</div>

Loading…
Cancel
Save