Browse Source
This is a multi-file commit because the code is essentially the same. Each HTML template has either had a 'quicklist' section added or had links added to it. 'Quicklist' is just a section with a collection of links to other parts of the website based on the context of the page/user's current location.stable
Craig Oates
2 years ago
7 changed files with 306 additions and 179 deletions
@ -1,77 +1,100 @@ |
|||||||
{% extends "layouts/default.html" %} |
{% extends "layouts/default.html" %} |
||||||
{% block title %}Manage you archive.{% endblock %} |
{% block title %}Manage you archive.{% endblock %} |
||||||
{% block content %} |
{% block content %} |
||||||
|
<div class="be-main"> |
||||||
<div> |
|
||||||
<h1>Storage Index</h1> |
<h1>Storage Index</h1> |
||||||
<div class="be-storage-section-upload"> |
|
||||||
<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> |
|
||||||
<!-- <input type="submit" value="Upload Files"/> --> |
|
||||||
<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-storage-section"> |
<div class="be-quicklist"> |
||||||
{% for item in files %} |
<a class="be-gui-link" |
||||||
<div class="be-storage-entry"> |
title="Click to view your Dashboard" |
||||||
<img class="file-thumbnail" src="{{ item | build-thumbnail-path }}" alt="{{item.name}}"> |
href="/dashboard"> |
||||||
<a class="be-gui-link-no-text" |
<img alt="Dashboard" |
||||||
title="Click to view '{{item.name}}'" |
src="/images/icons/dashboard.png"> |
||||||
href="/storage/view/media/{{item.slug}}"> |
View Dashboard |
||||||
<img alt="{{entry.title}}" |
|
||||||
src="/images/icons/view-entry.png"> |
|
||||||
</a> |
</a> |
||||||
{% if roles.administrator %} |
<a class="be-gui-link" |
||||||
<form class="be-storage-rename" |
title="Click to view your Archive Index" |
||||||
action="/storage/rename/{{item.slug}}" |
href="/user/archive"> |
||||||
method="POST"> |
<img alt="Archive Index" |
||||||
|
src="/images/icons/index.png"> |
||||||
|
Archive Index |
||||||
|
</a> |
||||||
|
<a class="be-gui-link" |
||||||
|
title="Click to view your Pages Index" |
||||||
|
href="/user/pages"> |
||||||
|
<img alt="Pages Index" |
||||||
|
src="/images/icons/index.png"> |
||||||
|
Pages Index |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="be-storage-section-upload"> |
||||||
|
<form action="/storage/multi-upload" |
||||||
|
method="POST" |
||||||
|
enctype="multipart/form-data"> |
||||||
<input required |
<input required |
||||||
type="hidden" |
type="hidden" |
||||||
name="AUTHENTICITY-TOKEN" |
name="AUTHENTICITY-TOKEN" |
||||||
value="{{token}}"> |
value="{{token}}"> |
||||||
<input required |
<input required |
||||||
type="text" |
type="file" |
||||||
name="NEW-FILE-NAME" |
name="STORAGE-FILES" |
||||||
value="{{item.name}}"> |
multiple> |
||||||
<button class="be-gui-button-no-text" |
<button class="be-gui-button-no-text" |
||||||
title="Click to rename '{{item.name}}'" |
title="Click to upload files to storage" |
||||||
type="submit"> |
|
||||||
<img alt="Rename {{item.name}}" |
|
||||||
src="/images/icons/edit-entry.png"> |
|
||||||
</button> |
|
||||||
</form> |
|
||||||
<form class="be-storage-delete" |
|
||||||
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"> |
type="submit"> |
||||||
<img alt="Delete {{item.name}}" |
<img alt="Upload to Storage" |
||||||
src="/images/icons/delete-entry.png"> |
src="/images/icons/up-arrow.png"> |
||||||
</button> |
</button> |
||||||
</form> |
</form> |
||||||
{% endif %} |
|
||||||
</div> |
</div> |
||||||
{% endfor %} |
|
||||||
|
<div class="be-storage-section"> |
||||||
|
{% for item in files %} |
||||||
|
<div class="be-storage-entry"> |
||||||
|
<img class="file-thumbnail" src="{{ item | build-thumbnail-path }}" alt="{{item.name}}"> |
||||||
|
<a class="be-gui-link-no-text" |
||||||
|
title="Click to view '{{item.name}}'" |
||||||
|
href="/storage/view/media/{{item.slug}}"> |
||||||
|
<img alt="{{entry.title}}" |
||||||
|
src="/images/icons/view-entry.png"> |
||||||
|
</a> |
||||||
|
{% if roles.administrator %} |
||||||
|
<form class="be-storage-rename" |
||||||
|
action="/storage/rename/{{item.slug}}" |
||||||
|
method="POST"> |
||||||
|
<input required |
||||||
|
type="hidden" |
||||||
|
name="AUTHENTICITY-TOKEN" |
||||||
|
value="{{token}}"> |
||||||
|
<input required |
||||||
|
type="text" |
||||||
|
name="NEW-FILE-NAME" |
||||||
|
value="{{item.name}}"> |
||||||
|
<button class="be-gui-button-no-text" |
||||||
|
title="Click to rename '{{item.name}}'" |
||||||
|
type="submit"> |
||||||
|
<img alt="Rename {{item.name}}" |
||||||
|
src="/images/icons/save.png"> |
||||||
|
</button> |
||||||
|
</form> |
||||||
|
<form class="be-storage-delete" |
||||||
|
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 {{item.name}}" |
||||||
|
src="/images/icons/delete-entry.png"> |
||||||
|
</button> |
||||||
|
</form> |
||||||
|
{% endif %} |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
{% endblock %} |
{% endblock %} |
||||||
|
Loading…
Reference in new issue