Browse Source
Both files are basically the same with minor changes in classes and HTML tags. Commited both files at the same time because of this.stable
Craig Oates
2 years ago
2 changed files with 106 additions and 29 deletions
@ -1,18 +1,58 @@ |
|||||||
{% extends "layouts/default.html" %} |
{% extends "layouts/default.html" %} |
||||||
{% block title %}Manage the site's archive.{% endblock %} |
{% block title %}Manage the site's archive.{% endblock %} |
||||||
{% block content %} |
{% block content %} |
||||||
<h1>Archive</h1> |
<div class="be-main"> |
||||||
{% for entry in archive-entries %} |
<div class="be-dashboard-section"> |
||||||
<div> |
<h1>Archive Index</h1> |
||||||
<a href="/view/archive/{{entry.slug}}">{{entry.title}}</a> |
<div class="be-section-controls"> |
||||||
<a href="/edit/archive/{{entry.slug}}">Edit</a> |
<a class="be-gui-link" |
||||||
{% if roles.administrator %} |
title="Click to add a new archive entry" |
||||||
<form action="/archive/delete/entry" method="post"> |
href="/create/archive-entry"> |
||||||
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
<img alt="New Archive Entry" |
||||||
<input required type="hidden" name="slug" value="{{entry.slug}}"> |
src="/images/icons/add-circle.png"> |
||||||
<input type="submit" value="Delete"> |
Create Entry |
||||||
</form> |
</a> |
||||||
{% endif %} |
</div> |
||||||
|
<div class="be-section-entries"> |
||||||
|
{% for entry in archive-entries %} |
||||||
|
<div class="be-section-entry"> |
||||||
|
<div class="be-section-image-title"> |
||||||
|
<img alt="{{entry.title}}" |
||||||
|
src="/storage/thumb/archive/{{entry.slug}}"> |
||||||
|
<p>{{entry.title}}</p> |
||||||
|
</div> |
||||||
|
<div class="be-entry-controls"> |
||||||
|
<a class="be-gui-link-no-text" |
||||||
|
href="/view/archive/{{entry.slug}}"> |
||||||
|
<img alt="{{entry.title}}" |
||||||
|
src="/images/icons/view-entry.png"> |
||||||
|
</a> |
||||||
|
<a class="be-gui-link-no-text" |
||||||
|
href="/edit/archive/{{entry.slug}}"> |
||||||
|
<img alt="{{entry.title}}" |
||||||
|
src="/images/icons/edit-entry.png"> |
||||||
|
</a> |
||||||
|
{% if roles.administrator %} |
||||||
|
<form action="/archive/delete/entry" |
||||||
|
method="post"> |
||||||
|
<input required type="hidden" |
||||||
|
name="AUTHENTICITY-TOKEN" |
||||||
|
value="{{token}}"> |
||||||
|
<input required type="hidden" |
||||||
|
name="slug" |
||||||
|
value="{{entry.slug}}"> |
||||||
|
<button class="be-gui-button-no-text" |
||||||
|
title="Click to delete '{{entry.title}}'" |
||||||
|
type="submit"> |
||||||
|
<img alt="Rename {{entry.title}}" |
||||||
|
src="/images/icons/delete-entry.png"> |
||||||
|
</button> |
||||||
|
</form> |
||||||
|
{% endif %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
{% endfor %} |
|
||||||
{% endblock %} |
{% endblock %} |
||||||
|
@ -1,21 +1,58 @@ |
|||||||
{% extends "layouts/default.html" %} |
{% extends "layouts/default.html" %} |
||||||
{% block title %}A list of the site's pages.{% endblock %} |
{% block title %}A list of the site's pages.{% endblock %} |
||||||
{% block content %} |
{% block content %} |
||||||
<h1>Pages</h1> |
<div class="be-main"> |
||||||
{% for page in pages %} |
<div class="be-dashboard-section"> |
||||||
{% if page.can-delete == 1 %} |
<h1>Pages Index</h1> |
||||||
<div> |
<div class="be-section-controls"> |
||||||
<a href="/view/page/{{page.slug}}">{{page.title}}</a> |
<a class="be-gui-link" |
||||||
<a href="/edit/page/{{page.slug}}">Edit</a> |
title="Click to create a new page" |
||||||
{% if roles.administrator %} |
href="/create/page"> |
||||||
<form action="/page/delete" method="post"> |
<img alt="Create New Page" |
||||||
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
src="/images/icons/add-circle.png"> |
||||||
<input required type="hidden" name="slug" value="{{page.slug}}"> |
Add Page |
||||||
<input type="submit" value="Delete"> |
</a> |
||||||
</form> |
</div> |
||||||
{% endif %} |
<div class="be-section-entries"> |
||||||
|
{% for page in pages %} |
||||||
|
{% if page.can-delete == 1 %} |
||||||
|
<div class="be-section-entry"> |
||||||
|
<p>{{page.title}}</p> |
||||||
|
<div class="be-entry-controls"> |
||||||
|
<a class="be-gui-link-no-text" |
||||||
|
title="Click to view '{{page.title}}'" |
||||||
|
href="/view/page/{{page.slug}}"> |
||||||
|
<img alt="{{page.title}}" |
||||||
|
src="/images/icons/view-entry.png"> |
||||||
|
</a> |
||||||
|
<a class="be-gui-link-no-text" |
||||||
|
href="/edit/page/{{page.slug}}"> |
||||||
|
<img alt="{{entry.title}}" |
||||||
|
src="/images/icons/edit-entry.png"> |
||||||
|
</a> |
||||||
|
{% if roles.administrator %} |
||||||
|
<form action="/page/delete" method="post"> |
||||||
|
<input required |
||||||
|
type="hidden" |
||||||
|
name="AUTHENTICITY-TOKEN" |
||||||
|
value="{{token}}"> |
||||||
|
<input required |
||||||
|
type="hidden" |
||||||
|
name="slug" |
||||||
|
value="{{page.slug}}"> |
||||||
|
<button class="be-gui-button-no-text" |
||||||
|
title="Click to delete '{{entry.title}}'" |
||||||
|
type="submit"> |
||||||
|
<img alt="Rename {{entry.title}}" |
||||||
|
src="/images/icons/delete-entry.png"> |
||||||
|
</button> |
||||||
|
</form> |
||||||
|
{% endif %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
{% endif %} |
|
||||||
{% endfor %} |
|
||||||
|
|
||||||
{% endblock %} |
{% endblock %} |
||||||
|
Loading…
Reference in new issue