You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.9 KiB
66 lines
1.9 KiB
|
|
<script src='main.js'></script>
|
|
<script src='js/jquery.min.js'></script>
|
|
<script src='js/mobile-style.js'></script>
|
|
|
|
{% if mod %}
|
|
<center>
|
|
<p>To remove an announcement, make it empty then press Update.</p>
|
|
<p>You will need to <a href="?/rebuild">{% trans 'Rebuild' %}</a> pages after this to display the new announcements.</p>
|
|
</center>
|
|
<table id="announcements-list" class="announcements-list modlog">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Announcement</th>
|
|
<th>Staff</th>
|
|
<th width='100px'>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<form style="margin:0" action="" method="post">
|
|
<input type="hidden" name="id" value="-1">
|
|
{% if token %}
|
|
<input type="hidden" name="token" value="{{ token }}">
|
|
{% endif %}
|
|
<tr>
|
|
<td><center>-></center></td>
|
|
<td><input type="text" name="announcement" placeholder="Add a new announcement..." required="required" style="width:100%" value=""></td>
|
|
<td>-</td>
|
|
<td><input type="submit" value="Add new"</input></td>
|
|
</tr>
|
|
</form>
|
|
{% for announcement in announcements %}
|
|
<form style="margin:0" action="" method="post">
|
|
<input type="hidden" name="id" value="{{ announcement.id }}">
|
|
{% if token %}
|
|
<input type="hidden" name="token" value="{{ token }}">
|
|
{% endif %}
|
|
<tr>
|
|
<td><center>{{ announcement.date_formated }}</center></td>
|
|
<td><input type="text" name="announcement" style="width:100%" value="{{ announcement.text }}"></td>
|
|
<td><a href='?/new_PM/{{ announcement.username }}'>{{ announcement.username }}</td>
|
|
<td><input type="submit" value="Update"</input></td>
|
|
</tr>
|
|
</form>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<table id="announcements-list" class="announcements-list modlog">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Announcement</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for announcement in announcements %}
|
|
<tr>
|
|
<td>{{ announcement.date_formated }}</td>
|
|
<td>{{ announcement.text }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
|