1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 17:31:00 +01:00

Commit some forgotten mod.php templates

This commit is contained in:
8chan 2015-04-03 19:01:15 -07:00
parent b069fb9590
commit f7f046bf13
2 changed files with 56 additions and 0 deletions

27
templates/mod/tags.html Normal file
View File

@ -0,0 +1,27 @@
<div style="text-align:center">
<form action="{{ action }}" method="post">
<p class="unimportant">Please read carefully: The settings below help users discover your board by giving it certain tags and by marking it as NSFW or not.</p>
<p class="unimportant">If your board is not really safe-for-work and you mark it as SFW, your privilege to categorize your board may be revoked.</p>
<p class="unimportant">Please take care not to grossly mistag your board. For example, don't tag a literature board as videogames. If we feel that the tags you've given your board are not appropriate for your board and are degrading the ability for users to discover boards, we may revoke your access to this page. Please note: if we do this, your board will not be affected, nor will you be banned from 8chan.co. It's just a ban from the tag system.</p>
<input type="hidden" name="token" value="{{ token }}">
<table>
<tbody>
<tr><th>SFW?</th><td><input type="checkbox" name="sfw" {% if sfw %}checked{% endif %}></td></tr>
{% for tag in tags %}
<tr>
<th>Tag {{loop.index}}</th><td><input name="tags[]" value="{{ tag.tag }}" type="text"></td>
</tr>
{% endfor %}
{% if tags|length < 5 %}
{% for i in range(tags|length+1, 5) %}
<tr>
<th>Tag {{i}}</th><td><input name="tags[]" value="" type="text"></td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
<p><input type="submit" value="Update tags"></p>
</form>
</div>

View File

@ -0,0 +1,29 @@
<script type="text/javascript" src="js/jquery.min.js"></script>
<div style="text-align:center">
<form action="{{ action }}" method="post" enctype="multipart/form-data">
<input type="hidden" name="token" value="{{ token }}">
<h2>{% trans %}New user{% endtrans %}</h2>
<p><span class="unimportant">A maximum of ten board volunteers is enforced. Please make sure to give them all secure passwords. A board volunteer can do everything you can do, with the exception of viewing this page, the banners page, and the board settings page.</span></p>
<table>
<tr><th>Username</th><th>Password</th>
<tr><td><input name="username"></td><td><input name="password"></td></tr>
</table>
<p><input type="submit" value="{% trans 'Create user' %}"></p>
</form>
<hr>
<h2>Current volunteers</h2>
<form action="{{ action }}" method="post">
<input type="hidden" name="token" value="{{ token }}">
<table>
<tbody>
{% for volunteer in volunteers %}
<tr>
<td><input name="delete[]" type="checkbox" value="{{volunteer.id}}"></td><td>{{volunteer.username}}</td>
</tr>
{% endfor %}
</tbody>
</table>
<p><input type="submit" value="Delete selected"></p>
</form>
</div>