aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-09-15 16:27:30 +0200
committergit-marijus <mario@mariovavti.com>2017-09-15 16:27:30 +0200
commit4c5722c766643af368f600abb93a44fc72d27c11 (patch)
treec2fd1c049b180d8c00ad96a085e1627411261954 /view/tpl
parent46b6415f5fddcea5aa7c4c55842405b68a7ccd6a (diff)
downloadvolse-hubzilla-4c5722c766643af368f600abb93a44fc72d27c11.tar.gz
volse-hubzilla-4c5722c766643af368f600abb93a44fc72d27c11.tar.bz2
volse-hubzilla-4c5722c766643af368f600abb93a44fc72d27c11.zip
some work on wiki acl
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/wikilist.tpl16
1 files changed, 15 insertions, 1 deletions
diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl
index 2deec76c0..a9196afd3 100644
--- a/view/tpl/wikilist.tpl
+++ b/view/tpl/wikilist.tpl
@@ -20,7 +20,6 @@
</div>
</div>
</form>
- {{$acl}}
<div class="clear"></div>
</div>
{{/if}}
@@ -50,10 +49,25 @@
<td><i class="fa fa-trash-o drop-icons" onclick="wiki_delete_wiki('{{$wiki.title}}', '{{$wiki.resource_id}}'); return false;"></i></td>
{{/if}}
</tr>
+ <tr>
+ <td colspan="4">
+ <form id="edit-wiki-form-{{$wiki.id}}" method="post" action="wiki/{{$channel}}/update/wiki" class="acl-form" data-form_id="edit-wiki-form-{{$wiki.id}}" data-allow_cid='{{$wiki.allow_cid}}' data-allow_gid='{{$wiki.allow_gid}}' data-deny_cid='{{$wiki.deny_cid}}' data-deny_gid='{{$wiki.deny_gid}}'>
+ <div class="btn-group float-right">
+ {{if $lockstate}}
+ <button class="btn btn-outline-secondary btn-sm" data-toggle="modal" data-target="#aclModal" type="button">
+ <i class="jot-perms-icon fa fa-{{$lockstate}}"></i>
+ </button>
+ {{/if}}
+ <button class="btn btn-primary btn-sm" type="submit" value="edit">Submit</button>
+ </div>
+ </form>
+ </td>
+ </tr>
{{/foreach}}
</table>
</div>
</div>
+{{$acl}}
<script>
{{if $owner}}
function wiki_delete_wiki(wikiHtmlName, resource_id) {