aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-09-27 22:42:42 -0400
committerM.Dent <dentm42@dm42.net>2018-09-27 22:43:36 -0400
commitfe8b72362286ce55044e38524179e6694acda014 (patch)
tree88c8187fed0fddf29d2173f6e3483ad07d8b29e8 /view/tpl
parentc15de3b68b2fecdaec70e5978f9b592ddfc57013 (diff)
downloadvolse-hubzilla-fe8b72362286ce55044e38524179e6694acda014.tar.gz
volse-hubzilla-fe8b72362286ce55044e38524179e6694acda014.tar.bz2
volse-hubzilla-fe8b72362286ce55044e38524179e6694acda014.zip
Hide form when at or over service_class['limit_identities']
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/new_channel.tpl38
1 files changed, 20 insertions, 18 deletions
diff --git a/view/tpl/new_channel.tpl b/view/tpl/new_channel.tpl
index 51880e1f6..8d72df55b 100755
--- a/view/tpl/new_channel.tpl
+++ b/view/tpl/new_channel.tpl
@@ -13,23 +13,25 @@
</div>
{{/if}}
{{/if}}
- <form action="new_channel" method="post" id="newchannel-form">
- {{if $default_role}}
- <input type="hidden" name="permissions_role" value="{{$default_role}}" />
- {{else}}
- {{include file="field_select_grouped.tpl" field=$role}}
- {{/if}}
-
- {{include file="field_input.tpl" field=$name}}
-
- {{include file="field_input.tpl" field=$nickname}}
- <button class="btn btn-primary" type="submit" id="newchannel-submit-button">{{$submit}}</button>
-
-
- <div id="newchannel-submit-end" class="clear"></div>
-
- <div id="newchannel-import-link" class="descriptive-paragraph" >{{$label_import}}</div>
- <div id="newchannel-import-end" class="clear"></div>
- </form>
+ {{if $canadd}}
+ <form action="new_channel" method="post" id="newchannel-form">
+ {{if $default_role}}
+ <input type="hidden" name="permissions_role" value="{{$default_role}}" />
+ {{else}}
+ {{include file="field_select_grouped.tpl" field=$role}}
+ {{/if}}
+
+ {{include file="field_input.tpl" field=$name}}
+
+ {{include file="field_input.tpl" field=$nickname}}
+ <button class="btn btn-primary" type="submit" id="newchannel-submit-button">{{$submit}}</button>
+
+
+ <div id="newchannel-submit-end" class="clear"></div>
+
+ <div id="newchannel-import-link" class="descriptive-paragraph" >{{$label_import}}</div>
+ <div id="newchannel-import-end" class="clear"></div>
+ </form>
+ {{/if}}
</div>
</div>