aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2016-01-02 23:39:57 -0800
committerredmatrix <redmatrix@redmatrix.me>2016-01-02 23:39:57 -0800
commit5b0a17359d6b5b3e27219c9e56117f1017996175 (patch)
tree2b5988c7661c9a5a67f5da8797ca57381e2aad7a /view
parent1ad90b8662a719a0455c6e1e8c21da0844c6d80d (diff)
downloadvolse-hubzilla-5b0a17359d6b5b3e27219c9e56117f1017996175.tar.gz
volse-hubzilla-5b0a17359d6b5b3e27219c9e56117f1017996175.tar.bz2
volse-hubzilla-5b0a17359d6b5b3e27219c9e56117f1017996175.zip
Provide the ability for a hub admin to specify a default permissions role for the first channel created by a new account. This simplifies channel creation by restricting the available options at registration time. The restriction is not applied to any additional channels created under the same account; and in any event can be changed immediately after channel creation, if desired.
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/new_channel.tpl11
1 files changed, 7 insertions, 4 deletions
diff --git a/view/tpl/new_channel.tpl b/view/tpl/new_channel.tpl
index f78a3fc2d..46b32b8a9 100755
--- a/view/tpl/new_channel.tpl
+++ b/view/tpl/new_channel.tpl
@@ -5,10 +5,13 @@
<div id="newchannel-desc" class="descriptive-paragraph">{{$desc}}</div>
- <div id="newchannel-role-help" class="descriptive-paragraph">{{$help_role}}</div>
- {{include file="field_select_grouped.tpl" field=$role}}
- <div id="newchannel-role-end" class="newchannel-field-end"></div>
-
+ {{if $default_role}}
+ <input type="hidden" name="permissions_role" value="{{$default_role}}" />
+ {{else}}
+ <div id="newchannel-role-help" class="descriptive-paragraph">{{$help_role}}</div>
+ {{include file="field_select_grouped.tpl" field=$role}}
+ <div id="newchannel-role-end" class="newchannel-field-end"></div>
+ {{/if}}
<label for="newchannel-name" id="label-newchannel-name" class="newchannel-label" >{{$label_name}}</label>
<input type="text" name="name" id="newchannel-name" class="newchannel-input" value="{{$name}}" />