Add custom css slots to prepare for donators feature

This commit is contained in:
Jeremy Zhang
2017-09-11 07:52:13 +00:00
parent 214bbfa162
commit 10b5deffe4
10 changed files with 121 additions and 17 deletions

View File

@ -13,6 +13,7 @@
<tr>
<th>User ID</th>
<th>CSS</th>
<th>CSS Limit</th>
<th>Submit</th>
</tr>
</thead>
@ -23,6 +24,11 @@
<input id="new_user_id" placeholder="User ID">
</div>
</td>
<td>
<div class="input-field inline">
<input id="new_css_limit" placeholder="CSS Limit" type="number">
</div>
</td>
<td>
<div class="switch">
<label>
@ -50,23 +56,29 @@
<th>Remove</th>
<th>User ID</th>
<th>CSS</th>
<th>CSS Limit</th>
</tr>
</thead>
<tbody>
{% for cosmetic in cosmetics %}
<tr>
<td><a class="waves-effect waves-light btn red" id="new_submit" onclick="delete_user('{{ cosmetic.user_id }}');">Remove</a></td>
<td><a class="waves-effect waves-light btn red" onclick="delete_user('{{ cosmetic.user_id }}');">Remove</a></td>
<td>{{ cosmetic.user_id }}</td>
<td>
<div class="switch">
<label>
Off
<input type="checkbox" id="new_css_switch" {% if cosmetic.css %}checked{% endif %} onchange="update_css_switch('{{ cosmetic.user_id }}', this)">
<input type="checkbox" {% if cosmetic.css %}checked{% endif %} onchange="update_css_switch('{{ cosmetic.user_id }}', this)">
<span class="lever"></span>
On
</label>
</div>
</td>
<td>
<div class="input-field inline">
<input placeholder="CSS Limit" type="number" value="{{ cosmetic.css_limit }}" onchange="update_css_limit('{{ cosmetic.user_id }}', $(this).val())">
</div>
</td>
</tr>
{% endfor %}
</tbody>