summaryrefslogtreecommitdiff
path: root/templates/edit_image_inc.tpl
blob: d67a52a389e95fddd7a2e3380ce29bc605252ff6 (plain)
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
54
55
56
57
58
59
60
{strip}
{form legend="Edit Image Details"}
	<input type="hidden" name="gallery_id" value="{$smarty.request.gallery_id}"/>
	<input type="hidden" name="image_id" value="{$imageId}"/>
	<input type="hidden" name="ajax" value="{$smarty.request.ajax}" />

	<div class="form-group">
		{formlabel label="Title" for="image-title"}
		{forminput}
			<input type="text" name="title" id="image-title" value="{$gContent->getTitle('',false)|escape}" maxlength="160" size="40"/>
		{/forminput}
	</div>

	<div class="form-group">
		{formlabel label="Description" for="image-desc"}
		{forminput}
			<textarea name="edit" id="image-desc" rows="4" cols="40">{$gContent->mInfo.data|escape}</textarea>
		{/forminput}
	</div>

	<div class="form-group">
		{formlabel label="Current Image"}
		{forminput}
			{if $gContent->mInfo.thumbnail_url.medium}
				<img src="{$gContent->mInfo.thumbnail_url.medium}" alt="{$gContent->getTitle()|escape}" />
				<br />
				<small>
					{if $gContent->mInfo.width && $gContent->mInfo.height}
						{tr}Full size{/tr} - <a href="{$gContent->getDownloadUrl()}">{$gContent->mInfo.width} x {$gContent->mInfo.height}</a>
					{elseif $gContent->getDownloadUrl()}
						<a href="{$gContent->getDownloadUrl()}">{tr}Full size{/tr}</a>
					{/if}
				</small>
			{else}
				<img src="{$smarty.const.FISHEYE_PKG_URL}image/no_image.png" alt="{$gContent->getTitle()|escape}" />
			{/if}
		{/forminput}
	</div>

	<div class="form-group">
		{formlabel label="Rotate Image"}
		{forminput}
			<label><input type="radio" name="rotate_image" value="-90"/> {biticon ipackage="fisheye" iname="rotate_ccw" iexplain="Rotate Counter Clockwise"}</label> &nbsp;&nbsp;&nbsp;&nbsp;
			<label>{biticon ipackage="fisheye" iname="rotate_cw" iexplain="Rotate Clockwise"} <input type="radio" name="rotate_image" value="90"/></label>
			<br />
			<label><input type="radio" name="rotate_image" value="" checked="checked"/> {tr}don't rotate{/tr}</label>
		{/forminput}
	</div>

	<div class="form-group">
		{include file="bitpackage:fisheye/resize_image_select.tpl"}
	</div>

	{include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"}

	<div class="form-group submit">
		<input type="submit" class="btn btn-default" name="saveImage" value="Save Image"/>
	</div>
{/form}
{/strip}