put permissions dialog inside the form element - should fix issue #444

This commit is contained in:
friendica 2014-05-05 16:03:38 -07:00
parent cea62a0e73
commit 94b2ac6abb

View File

@ -2,6 +2,8 @@
<h1>{{$header}}</h1> <h1>{{$header}}</h1>
<form action="filestorage/{{$channelnick}}/{{$file.id}}/edit" method="post" >
<div id="attach-edit-perms" > <div id="attach-edit-perms" >
<button class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" title="{{$permset}}" onclick="return false;"> <button class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" title="{{$permset}}" onclick="return false;">
<i id="jot-perms-icon" class="icon-{{$lockstate}} jot-icons"></i> <i id="jot-perms-icon" class="icon-{{$lockstate}} jot-icons"></i>
@ -9,8 +11,6 @@
{{$aclselect}} {{$file.filename}} {{$aclselect}} {{$file.filename}}
</div> </div>
<form action="filestorage/{{$channelnick}}/{{$file.id}}/edit" method="post" >
<input type="hidden" name="channelnick" value="{{$channelnick}}" /> <input type="hidden" name="channelnick" value="{{$channelnick}}" />
<input type="hidden" name="filehash" value="{{$file.hash}}" /> <input type="hidden" name="filehash" value="{{$file.hash}}" />
<input type="hidden" name="uid" value="{{$uid}}" /> <input type="hidden" name="uid" value="{{$uid}}" />