2015-08-23 22:38:18 +02:00
|
|
|
<div id="photo-upload-form">
|
|
|
|
<div class="section-content-tools-wrapper">
|
|
|
|
<form action="photos/{{$nickname}}" enctype="multipart/form-data" method="post" name="photos-upload-form" id="photos-upload-form">
|
|
|
|
<input type="hidden" id="photos-upload-source" name="source" value="photos" />
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="photos-upload-album">{{$newalbum_label}}</label>
|
|
|
|
<input type="text" class="form-control" id="photos-upload-album" name="newalbum" placeholder="{{$newalbum_placeholder}}" value="{{$selname}}" list="dl-photo-upload">
|
|
|
|
<datalist id="dl-photo-upload">
|
|
|
|
{{foreach $albums as $al}}
|
|
|
|
{{if $al.text}}
|
|
|
|
<option value="{{$al.text}}" />
|
|
|
|
{{/if}}
|
|
|
|
{{/foreach}}
|
|
|
|
</datalist>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{$aclselect}}
|
|
|
|
|
|
|
|
{{if $default}}
|
|
|
|
<div class="form-group">
|
|
|
|
<input id="photos-upload-choose" type="file" name="userfile" />
|
|
|
|
</div>
|
2015-11-15 19:51:39 +01:00
|
|
|
{{include file="field_input.tpl" field=$caption}}
|
2015-08-23 22:38:18 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$visible}}
|
2015-11-15 19:51:39 +01:00
|
|
|
<div id="body-textarea">
|
|
|
|
{{include file="field_textarea.tpl" field=$body}}
|
|
|
|
</div>
|
2016-03-20 08:06:33 +01:00
|
|
|
<div class="pull-right btn-group">
|
2015-08-23 22:38:18 +02:00
|
|
|
<div class="btn-group">
|
|
|
|
{{if $lockstate}}
|
|
|
|
<button id="dbtn-acl" class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" onclick="return false;">
|
|
|
|
<i id="jot-perms-icon" class="icon-{{$lockstate}}"></i>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
<button id="dbtn-submit" class="btn btn-primary btn-sm" type="submit" name="submit" >{{$submit}}</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
{{if $uploader}}
|
2015-11-15 19:51:39 +01:00
|
|
|
{{include file="field_input.tpl" field=$caption}}
|
2015-08-23 22:38:18 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$visible}}
|
2015-11-15 19:51:39 +01:00
|
|
|
<div id="body-textarea">
|
|
|
|
{{include file="field_textarea.tpl" field=$body}}
|
|
|
|
</div>
|
2015-08-23 22:38:18 +02:00
|
|
|
<div id="photos-upload-perms" class="btn-group pull-right">
|
|
|
|
{{if $lockstate}}
|
|
|
|
<button class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" onclick="return false;">
|
|
|
|
<i id="jot-perms-icon" class="icon-{{$lockstate}}"></i>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
<div class="pull-right">
|
|
|
|
{{$uploader}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="photos-upload-end" class="clear"></div>
|
|
|
|
</div>
|