Browse Source

update dashboard.html template (start expanding the Storage part).

This code is buggy but it is a start. This is an end-of-session commit
hence the buggy state being left as it is.
stable
Craig Oates 2 years ago
parent
commit
3b49fbf6e0
  1. 64
      templates/user/dashboard.html

64
templates/user/dashboard.html

@ -21,25 +21,55 @@
Storage Files Index
</a>
</div>
<div class="be-section-entry">
<form action="/storage/multi-upload"
method="POST"
enctype="multipart/form-data">
<input required type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<input required type="file"
name="STORAGE-FILES" multiple>
<button class="be-gui-button-no-text"
title="Click to upload files to storage"
type="submit">
<img alt="Upload to Storage"
src="/images/icons/up-arrow.png">
</button>
</form>
<div class="be-section-entries">
<div class="be-section-entry">
<form action="/storage/multi-upload"
method="POST"
enctype="multipart/form-data">
<input required type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<input required type="file"
name="STORAGE-FILES" multiple>
<button class="be-gui-button-no-text"
title="Click to upload files to storage"
type="submit">
<img alt="Upload to Storage"
src="/images/icons/up-arrow.png">
</button>
</form>
</div>
</div>
<div class="be-section-entries">
{% for item in storage-files %}
<div class="be-section-entry">
<p>{{item.name | safe}}</p>
<div class="be-entry-controls">
<a class="be-gui-link-no-text"
title="Click to view '{{item.name}}'"
href="/storage/view/media/{{item.slug}}">
<img alt="{{item.name}}"
src="/images/icons/view-entry.png">
</a>
{% if roles.administrator %}
<form action="/storage/delete/{{item.slug}}" method="post">
<input required type="hidden"
name="AUTHENTICITY-TOKEN"
value="{{token}}">
<button class="be-gui-button-no-text"
title="Click to delete '{{item.name}}'"
type="submit">
<img alt="Delete Page"
src="/images/icons/delete-entry.png">
</button>
</form>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
<div class="be-dashboard-section">
<h2>Archive</h2>
<div class="be-section-controls">

Loading…
Cancel
Save