98 lines
2.4 KiB
HTML
98 lines
2.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block "content" %}
|
|
<h2>Passwort</h2>
|
|
<hr />
|
|
<Change Password here>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<h2>Plugin Berechtigungen</h2>
|
|
<hr />
|
|
<p>
|
|
<form method="POST" action="/settings/plugins/addperm/">
|
|
<select name="pid">
|
|
<option value="0"> ----- </option>
|
|
{% for plugin in unallowedplugins %}
|
|
<option value="{{ plugin.id }}">{{ plugin.name }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
<input type="submit" value="Plugin erlauben">
|
|
</form>
|
|
</p>
|
|
<p>
|
|
<table>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>AuthBlob</th>
|
|
<th>Optionen</th>
|
|
</tr>
|
|
{% if pluginpermissions %}
|
|
{% for pperm in pluginpermissions %}
|
|
{% if pperm.plugin in plugins %}
|
|
end test
|
|
{% endif %}
|
|
<tr style="background: green">
|
|
<td style="vertical-align:middle">{{ pperm.plugin }}</td>
|
|
<td style="vertical-align:middle">
|
|
<form method="post" action="">
|
|
<textarea name="authblob">{{ pperm.authBlob }}</textarea>
|
|
<input type="submit" value="Speichern" />
|
|
</form>
|
|
</td>
|
|
<td style="vertical-align:middle">
|
|
<form method="post" action="">
|
|
<input type="submit" value="Berechtigungen aufheben" />
|
|
</form>
|
|
<td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
<tr>
|
|
<td align="center" colspan="10">Du hast bisher keinem Plugin zugriff auf deinen Account gewährt</td>
|
|
</tr>
|
|
{% endif %}
|
|
</table>
|
|
Perms {{ pluginpermissions }} <br />
|
|
<br /><br />
|
|
<h2>Second Idea for Plugin interface</h2>
|
|
<hr />
|
|
<p>
|
|
<table>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>AuthBlob</th>
|
|
<th>Optionen</th>
|
|
</tr>
|
|
{% if pluginpermissions %}
|
|
{% for plugin in plugins %}
|
|
<tr style="{%if plugin in unallowedplugins%}background:red{%else%}background: green{%endif%}">
|
|
<td style="vertical-align:middle">{{ plugin }}</td>
|
|
<td style="vertical-align:middle">
|
|
{%if plugin not in unallowedplugins %}
|
|
<form method="post" action="">
|
|
<textarea name="authblob">{{ pperm.authBlob }}</textarea>
|
|
<input type="submit" value="Speichern" />
|
|
</form>
|
|
{%endif%}
|
|
</td>
|
|
<td style="vertical-align:middle">
|
|
<form method="post" action="">
|
|
{%if plugin in unallowedplugins %}
|
|
<input type="submit" value="Berechtigungen hinzufügen" />
|
|
{%else%}
|
|
<input type="submit" value="Berechtigungen aufheben" />
|
|
{%endif%}
|
|
</form>
|
|
<td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% else %}
|
|
<tr>
|
|
<td align="center" colspan="10">Du hast bisher keinem Plugin zugriff auf deinen Account gewährt</td>
|
|
</tr>
|
|
{% endif %}
|
|
</table>
|
|
</p>
|
|
{% endblock %}
|