aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/photos_upload.tpl
blob: 611068b6d0d14a570ee1906592f290e30d1534e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<div id="photo-upload-form" class="generic-content-wrapper">
	<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="pull-left">
				<input id="photos-upload-choose" type="file" name="userfile" />
			</div>
			<div class="btn-group pull-right">
				<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>
				<button class="btn btn-primary btn-sm" type="submit" name="submit" id="photos-upload-submit">{{$submit}}</button>
			</div>
			{{/if}}

			<div id="photos-upload-new-end" class="clear"></div>

			<div class="checkbox pull-left">
				<label class="checkbox-inline" for="photos-upload-noshare" >
					<input class="checkbox-inline" id="photos-upload-noshare" type="checkbox" name="not_visible" value="1" />{{$nosharetext}}
				</label>
			</div>

			{{if $uploader}}
			<div id="photos-upload-perms" class="pull-right">
				<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>
				<div class="pull-right">
					{{$uploader}}
				</div>
			</div>
			{{/if}}
		</form>
	</div>
	<div id="photos-upload-end" class="clear"></div>
</div>