diff options
author | M. Dent <dentm42@gmail.com> | 2018-09-28 04:46:48 +0200 |
---|---|---|
committer | M. Dent <dentm42@gmail.com> | 2018-09-28 04:46:48 +0200 |
commit | 1b7e220de734f30cf22452e36fe6b746676ddf46 (patch) | |
tree | 52304d5cacf5f6aa552bf5ccd233f9960afec7fc /view/tpl | |
parent | 1e85c40c42946f84b5197056a2b71040071ec095 (diff) | |
parent | fe8b72362286ce55044e38524179e6694acda014 (diff) | |
download | volse-hubzilla-1b7e220de734f30cf22452e36fe6b746676ddf46.tar.gz volse-hubzilla-1b7e220de734f30cf22452e36fe6b746676ddf46.tar.bz2 volse-hubzilla-1b7e220de734f30cf22452e36fe6b746676ddf46.zip |
Merge branch 'channel-limits' into 'dev'
Hide form when at or over service_class['limit_identities']
See merge request hubzilla/core!1292
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/new_channel.tpl | 38 |
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> |