[11607] | 1 | {* Use the files copied from admin/themes/default/template/include *} |
---|
| 2 | {* Need: $template->set_template_dir(ICY_PICTURE_MODIFY_PATH.'template/'); *} |
---|
| 3 | |
---|
| 4 | {include file="autosize.inc.tpl"} |
---|
| 5 | {include file="datepicker.inc.tpl"} |
---|
| 6 | {include file="dbselect.inc.tpl"} |
---|
| 7 | |
---|
| 8 | {* Use some default stylesheets *} |
---|
| 9 | {* The 'datepicker.css' is copied from ./admin/themes/roma/theme.css *} |
---|
| 10 | |
---|
| 11 | {combine_css path= 'admin/themes/default/'|@cat:'theme.css'} |
---|
| 12 | {combine_css path= 'themes/default/js/ui/theme/'|@cat:'jquery.ui.datepicker.css'} |
---|
| 13 | {combine_css path= "$ICY_PICTURE_MODIFY_PATH/template/"|@cat:'datepicker.css'} |
---|
| 14 | |
---|
| 15 | {* Heavily copied from Piwigo distribution: picture_modify.tpl *} |
---|
| 16 | |
---|
| 17 | {combine_script id='jquery.tokeninput' load='async' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'} |
---|
| 18 | {footer_script require='jquery.tokeninput'} |
---|
| 19 | jQuery(document).ready(function() {ldelim} |
---|
| 20 | jQuery("#tags").tokenInput( |
---|
| 21 | [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], |
---|
| 22 | {ldelim} |
---|
| 23 | hintText: '{'Type in a search term'|@translate}', |
---|
| 24 | noResultsText: '{'No results'|@translate}', |
---|
| 25 | searchingText: '{'Searching...'|@translate}', |
---|
| 26 | newText: ' ({'new'|@translate})', |
---|
| 27 | animateDropdown: false, |
---|
| 28 | preventDuplicates: true, |
---|
| 29 | allowCreation: true |
---|
| 30 | } |
---|
| 31 | ); |
---|
| 32 | }); |
---|
| 33 | {/footer_script} |
---|
| 34 | |
---|
| 35 | {footer_script} |
---|
| 36 | pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); |
---|
| 37 | {/footer_script} |
---|
| 38 | |
---|
| 39 | <h2>{'Edit photo information'|@translate}</h2> |
---|
| 40 | |
---|
| 41 | <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail"> |
---|
| 42 | |
---|
| 43 | <ul class="categoryActions"> |
---|
| 44 | {if isset($U_JUMPTO) } |
---|
| 45 | <li><a href="{$U_JUMPTO}" title="{'jump to photo'|@translate}"><img src="{$ICY_PICTURE_MODIFY_PATH}/template/icon/category_jump-to.png" class="button" alt="{'jump to photo'|@translate}"></a></li> |
---|
| 46 | {/if} |
---|
| 47 | {if !url_is_remote($PATH)} |
---|
| 48 | <li><a href="{$U_SYNC}" title="{'synchronize'|@translate}"><img src="{$ICY_PICTURE_MODIFY_PATH}/template/icon/sync_metadata.png" class="button" alt="{'synchronize'|@translate}"></a></li> |
---|
| 49 | |
---|
| 50 | <li><a href="{$U_DELETE}" title="{'delete photo'|@translate}"><img src="{$ICY_PICTURE_MODIFY_PATH}/template/icon/category_delete.png" class="button" alt="{'delete photo'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"></a></li> |
---|
| 51 | {/if} |
---|
| 52 | </ul> |
---|
| 53 | |
---|
| 54 | <form action="{$F_ACTION}" method="post" id="properties"> |
---|
| 55 | |
---|
| 56 | <fieldset> |
---|
| 57 | <legend>{'Informations'|@translate}</legend> |
---|
| 58 | |
---|
| 59 | <table> |
---|
| 60 | |
---|
| 61 | <tr> |
---|
| 62 | <td><strong>{'Path'|@translate}</strong></td> |
---|
| 63 | <td>{$PATH}</td> |
---|
| 64 | </tr> |
---|
| 65 | |
---|
| 66 | <tr> |
---|
| 67 | <td><strong>{'Post date'|@translate}</strong></td> |
---|
| 68 | <td>{$REGISTRATION_DATE}</td> |
---|
| 69 | </tr> |
---|
| 70 | |
---|
| 71 | <tr> |
---|
| 72 | <td><strong>{'Dimensions'|@translate}</strong></td> |
---|
| 73 | <td>{$DIMENSIONS}</td> |
---|
| 74 | </tr> |
---|
| 75 | |
---|
| 76 | <tr> |
---|
| 77 | <td><strong>{'Filesize'|@translate}</strong></td> |
---|
| 78 | <td>{$FILESIZE}</td> |
---|
| 79 | </tr> |
---|
| 80 | |
---|
| 81 | {if isset($HIGH_FILESIZE) } |
---|
| 82 | <tr> |
---|
| 83 | <td><strong>{'High filesize'|@translate}</strong></td> |
---|
| 84 | <td>{$HIGH_FILESIZE}</td> |
---|
| 85 | </tr> |
---|
| 86 | {/if} |
---|
| 87 | |
---|
| 88 | <tr> |
---|
| 89 | <td><strong>{'Storage album'|@translate}</strong></td> |
---|
| 90 | <td>{$STORAGE_CATEGORY}</td> |
---|
| 91 | </tr> |
---|
| 92 | |
---|
| 93 | {if isset($related_categories) } |
---|
| 94 | <tr> |
---|
| 95 | <td><strong>{'Linked albums'|@translate}</strong></td> |
---|
| 96 | <td> |
---|
| 97 | <ul> |
---|
| 98 | {foreach from=$related_categories item=name} |
---|
| 99 | <li>{$name}</li> |
---|
| 100 | {/foreach} |
---|
| 101 | </ul> |
---|
| 102 | </td> |
---|
| 103 | </tr> |
---|
| 104 | {/if} |
---|
| 105 | |
---|
| 106 | </table> |
---|
| 107 | |
---|
| 108 | </fieldset> |
---|
| 109 | |
---|
| 110 | <fieldset> |
---|
| 111 | <legend>{'Properties'|@translate}</legend> |
---|
| 112 | |
---|
| 113 | <table> |
---|
| 114 | |
---|
| 115 | <tr> |
---|
| 116 | <td><strong>{'Name'|@translate}</strong></td> |
---|
| 117 | <td><input type="text" class="large" name="name" value="{$NAME}"></td> |
---|
| 118 | </tr> |
---|
| 119 | |
---|
| 120 | <tr> |
---|
| 121 | <td><strong>{'Author'|@translate}</strong></td> |
---|
| 122 | <td><input type="text" class="large" name="author" value="{$AUTHOR}"></td> |
---|
| 123 | </tr> |
---|
| 124 | |
---|
| 125 | <tr> |
---|
| 126 | <td><strong>{'Creation date'|@translate}</strong></td> |
---|
| 127 | <td> |
---|
| 128 | <label><input type="radio" name="date_creation_action" value="unset"> {'unset'|@translate}</label> |
---|
| 129 | <input type="radio" name="date_creation_action" value="set" id="date_creation_action_set"> {'set to'|@translate} |
---|
| 130 | <select id="date_creation_day" name="date_creation_day"> |
---|
| 131 | <option value="0">--</option> |
---|
| 132 | {section name=day start=1 loop=32} |
---|
| 133 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 134 | {/section} |
---|
| 135 | </select> |
---|
| 136 | <select id="date_creation_month" name="date_creation_month"> |
---|
| 137 | {html_options options=$month_list selected=$DATE_CREATION_MONTH_VALUE} |
---|
| 138 | </select> |
---|
| 139 | <input id="date_creation_year" |
---|
| 140 | name="date_creation_year" |
---|
| 141 | type="text" |
---|
| 142 | size="4" |
---|
| 143 | maxlength="4" |
---|
| 144 | value="{$DATE_CREATION_YEAR_VALUE}"> |
---|
| 145 | <input id="date_creation_linked_date" name="date_creation_linked_date" type="hidden" size="10" disabled="disabled"> |
---|
| 146 | </td> |
---|
| 147 | </tr> |
---|
| 148 | |
---|
| 149 | <tr> |
---|
| 150 | <td><strong>{'Tags'|@translate}</strong></td> |
---|
| 151 | <td> |
---|
| 152 | <select id="tags" name="tags"> |
---|
| 153 | {foreach from=$tag_selection item=tag} |
---|
| 154 | <option value="{$tag.id}" class="selected">{$tag.name}</option> |
---|
| 155 | {/foreach} |
---|
| 156 | </select> |
---|
| 157 | </td> |
---|
| 158 | </tr> |
---|
| 159 | |
---|
| 160 | |
---|
| 161 | <tr> |
---|
| 162 | <td><strong>{'Description'|@translate}</strong></td> |
---|
| 163 | <td><textarea name="description" id="description" class="description">{$DESCRIPTION}</textarea></td> |
---|
| 164 | </tr> |
---|
| 165 | |
---|
| 166 | <tr> |
---|
| 167 | <td><strong>{'Who can see this photo?'|@translate}</strong></td> |
---|
| 168 | <td> |
---|
| 169 | <select name="level" size="1"> |
---|
| 170 | {html_options options=$level_options selected=$level_options_selected} |
---|
| 171 | </select> |
---|
| 172 | </td> |
---|
| 173 | </tr> |
---|
| 174 | |
---|
| 175 | </table> |
---|
| 176 | |
---|
| 177 | <p style="text-align:center;"> |
---|
| 178 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"> |
---|
| 179 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="reset"> |
---|
| 180 | </p> |
---|
| 181 | |
---|
| 182 | </fieldset> |
---|
| 183 | |
---|
| 184 | </form> |
---|