Skip to content

Commit

Permalink
Staff static pages template improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaddem committed Aug 3, 2021
1 parent 72a0133 commit 2ea3646
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 10 additions & 3 deletions project-templates/staff/pages/list_static_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,26 @@

{% block body %}
<div style="overflow-x:auto;">
<h1>Tournament Matches</h1>
<h1>Static Pages List</h1>
<br />
<br />
<h2><a href="{% url 'staff:create_static_page' %}">Create a static page here</a></h2>
<table class="table table-hover">
<tr id="header">
<thead>
<th scope="row">Slug</th>
<th>Page Name</th>
<th>Redirects</th>
<th>Redirect URL</th>
</thead>
</tr>
{% for page in pages %}
<tbody>
<tr scope="">
<td scope="row"><a href="{% url 'staff:edit_static_page' slug=page.slug %}">{{ page.slug }}</a></td>
<tr>
<td><a href="{% url 'staff:edit_static_page' slug=page.slug %}">{{ page.slug }}</a></td>
<td>{{ page.page_name }}</td>
<td>{{ page.redirects }}</td>
<td>{{ page.url }}</td>
</tr>
</tbody>
{% endfor %}
Expand Down
3 changes: 3 additions & 0 deletions project-templates/staff/staffbase.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
<li>
<a href="{% url 'staff:pages' %}">Static Info</a>
</li>
<li>
<a href="{% url 'staff:list_static_page' %}">Static Pages</a>
</li>
<li>
<a href="{% url 'staff:slide_list' %}">Front page slides</a>
</li>
Expand Down

0 comments on commit 2ea3646

Please sign in to comment.