diff options
author | citrons <citrons> | 2021-08-09 00:23:56 +0000 |
---|---|---|
committer | citrons <citrons> | 2021-08-09 00:23:56 +0000 |
commit | 947c8168f1ce5df05fabc93975049b3ee49ad499 (patch) | |
tree | 45b370e96c6fd209f108e235086d8f3b312a0d7a /apioforum/templates | |
parent | 0cd850265b567a53921da70bf6d07e4330500f34 (diff) |
view forum permission
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/edit_forum.html | 2 | ||||
-rw-r--r-- | apioforum/templates/edit_permissions.html | 2 | ||||
-rw-r--r-- | apioforum/templates/role_assignment.html | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/apioforum/templates/edit_forum.html b/apioforum/templates/edit_forum.html index 32bfaf1..f165676 100644 --- a/apioforum/templates/edit_forum.html +++ b/apioforum/templates/edit_forum.html @@ -17,8 +17,6 @@ maxlength="6000" required >{{description}}</textarea> - <input type="checkbox" id="unlisted" name="unlisted" {% if unlisted %}checked{% endif %}/> - <label for="unlisted">unlisted?</label> <p> <input type="submit" value="confirm"> <a href="{{cancel_link}}">cancel</a> diff --git a/apioforum/templates/edit_permissions.html b/apioforum/templates/edit_permissions.html index c92c9a9..59c9093 100644 --- a/apioforum/templates/edit_permissions.html +++ b/apioforum/templates/edit_permissions.html @@ -29,6 +29,8 @@ </label> <br/> {% endmacro %} + {{perm("p_view_forum","view the forum", + "allow users with the role to see the forum in listings and view information about it")}} {{perm("p_create_threads","create threads", "allow users with the role to create a thread in the forum")}} {{perm("p_reply_threads","reply to threads", diff --git a/apioforum/templates/role_assignment.html b/apioforum/templates/role_assignment.html index 74dc3cd..8309506 100644 --- a/apioforum/templates/role_assignment.html +++ b/apioforum/templates/role_assignment.html @@ -1,4 +1,5 @@ {% extends 'base.html' %} +{% from 'common.html' import ab %} {% block header %}<h1>{% block title %}configure user role in '{{forum.name}}'{% endblock %}</h1>{% endblock %} {% block content %} <p> @@ -12,6 +13,9 @@ you are only allowed to approve members in this forum. </p> {% endif %} + +{# <p>{{ab("role assignment list",url_for("forum.role_list_select",forum_id=forum.id))}}</p> #} + <form method="post" action="{{url_for('forum.view_user_role',forum_id=forum.id)}}"> <label for="user">role settings for user: </label> <input type="text" class="name-input" id="user" name="user" value="{{user}}"/> |