aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wiki.tpl
diff options
context:
space:
mode:
authorhubzilla <git@macgirvin.com>2016-08-06 07:50:21 +1000
committerGitHub <noreply@github.com>2016-08-06 07:50:21 +1000
commit1bff63bd2e5d1423034094ee9bfc59c2ddb2bd53 (patch)
tree95e9b493a6fd9b9370b230a11d59be73b9fcedd2 /view/tpl/wiki.tpl
parent709206accde6136f96f1484510edc4b61b3d52a7 (diff)
parent531baa8fc4c29c10afdf52fc88174b8b6fd69700 (diff)
downloadvolse-hubzilla-1bff63bd2e5d1423034094ee9bfc59c2ddb2bd53.tar.gz
volse-hubzilla-1bff63bd2e5d1423034094ee9bfc59c2ddb2bd53.tar.bz2
volse-hubzilla-1bff63bd2e5d1423034094ee9bfc59c2ddb2bd53.zip
Merge pull request #477 from git-marijus/dev
Some work to make multiple acl forms per page work
Diffstat (limited to 'view/tpl/wiki.tpl')
-rw-r--r--view/tpl/wiki.tpl16
1 files changed, 8 insertions, 8 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index d9a4f8be3..c05b33a61 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -15,7 +15,7 @@
<div class="section-title-wrapper">
<div class="pull-right">
{{if $showNewWikiButton}}
- <button class="btn btn-primary btn-xs" onclick="$('#new-page-form-wrapper').hide(); openClose('new-wiki-form-wrapper');">New Wiki</button>
+ <button class="btn btn-primary btn-xs acl-form-trigger" onclick="$('#new-page-form-wrapper').hide(); openClose('new-wiki-form-wrapper');" data-form_id="new-wiki-form">New Wiki</button>
{{/if}}
{{if $showNewPageButton}}
<button class="btn btn-success btn-xs" onclick="$('#new-wiki-form-wrapper').hide(); openClose('new-page-form-wrapper');">New Page</button>
@@ -29,7 +29,7 @@
<div class="clear"></div>
</div>
<div id="new-wiki-form-wrapper" class="section-content-tools-wrapper" style="display:none;">
- <form id="new-wiki-form" action="wiki/{{$channel}}/create/wiki" method="post" >
+ <form id="new-wiki-form" action="wiki/{{$channel}}/create/wiki" method="post" class="acl-form" data-form_id="new-wiki-form" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'>
<div class="clear"></div>
{{include file="field_input.tpl" field=$wikiName}}
@@ -45,17 +45,17 @@
</div>
<div class="btn-group pull-right">
- <div id="profile-jot-submit-right" class="btn-group" style="margin-right: 20px;">
+ <div id="profile-jot-submit-right" class="btn-group">
<button id="dbtn-acl" class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" title="Permission settings" onclick="return false;">
- <i id="jot-perms-icon" class="fa fa-{{$lockstate}} jot-icons">{{$bang}}</i>
+ <i id="jot-perms-icon" class="fa fa-{{$lockstate}} jot-icons"></i>{{$bang}}
</button>
+ <button id="new-wiki-submit" class="btn btn-primary" type="submit" name="submit" >Create Wiki</button>
</div>
- <button id="new-wiki-submit" class="btn btn-primary" type="submit" name="submit" >Create Wiki</button>
</div>
- <div>{{$acl}}</div>
</form>
- <div class="clear"></div>
- <hr>
+ {{$acl}}
+ <div class="clear"></div>
+ <hr>
</div>
<div id="new-page-form-wrapper" class="section-content-tools-wrapper" style="display:none;">