[16591] | 1 | {combine_css path=$USER_COLLEC_PATH|@cat:"template/style.css"} |
---|
| 2 | {combine_script id='jquery.zclip' path=$USER_COLLEC_PATH|@cat:"template/jquery.zclip.min.js"} |
---|
| 3 | {combine_script id='jquery.tipTip' path='themes/default/js/plugins/jquery.tipTip.minified.js'} |
---|
| 4 | |
---|
| 5 | {footer_script require='jquery'} |
---|
| 6 | function bindZclip() {ldelim} |
---|
| 7 | jQuery("#publicURL .button").zclip({ldelim} |
---|
| 8 | path:'{$USER_COLLEC_PATH}template/ZeroClipboard.swf', |
---|
| 9 | copy:$("#publicURL .url").html(), |
---|
| 10 | afterCopy: function() {ldelim} |
---|
[16608] | 11 | $('.confirm').remove(); |
---|
[16591] | 12 | $('<span class="confirm" style="display:none;">{'Copied'|@translate}</span>').appendTo("#publicURL") |
---|
| 13 | .fadeIn(400).delay(1000).fadeOut(400, function(){ldelim} $(this).remove(); }); |
---|
| 14 | } |
---|
| 15 | }); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | jQuery("input[name='public']").change(function() {ldelim} |
---|
| 19 | jQuery("#publicURL").fadeToggle("fast"); |
---|
| 20 | bindZclip(); |
---|
| 21 | }); |
---|
| 22 | jQuery("#publicURL .button").tipTip({ldelim} |
---|
| 23 | delay: 0, |
---|
| 24 | defaultPosition: 'right' |
---|
| 25 | }); |
---|
[16688] | 26 | |
---|
| 27 | jQuery("#actions input").click(function() {ldelim} |
---|
| 28 | if (confirm("{'Are you sure?'|@translate}")) {ldelim} |
---|
| 29 | document.location.href = jQuery(this).data("href"); |
---|
| 30 | } |
---|
| 31 | return false; |
---|
| 32 | }); |
---|
[16591] | 33 | {if $collection.PUBLIC}bindZclip();{/if} |
---|
| 34 | {/footer_script} |
---|
| 35 | |
---|
[16658] | 36 | |
---|
[17493] | 37 | {* <!-- Menubar & titrePage --> *} |
---|
| 38 | {if $themeconf.name == "stripped" or $themeconf.parent == "stripped"} |
---|
| 39 | {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/stripped.tpl'} |
---|
| 40 | {assign var="clear" value="true"} |
---|
| 41 | {elseif $themeconf.name == "simple-grey" or $themeconf.parent == "simple"} |
---|
| 42 | {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/simple.tpl'} |
---|
| 43 | {assign var="clear" value="true"} |
---|
[16625] | 44 | {else} |
---|
[17493] | 45 | {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/default.tpl'} |
---|
[16625] | 46 | {/if} |
---|
[16591] | 47 | |
---|
| 48 | {if isset($errors) or not empty($infos)} |
---|
| 49 | {include file='infos_errors.tpl'} |
---|
| 50 | {/if} |
---|
| 51 | |
---|
[16658] | 52 | |
---|
[16688] | 53 | {if $collection} |
---|
[16658] | 54 | <form action="{$F_ACTION}" method="post"> |
---|
[16591] | 55 | <fieldset id="colProperties"> |
---|
| 56 | <legend>{'Properties'|@translate}</legend> |
---|
| 57 | |
---|
| 58 | <p class="title"><label for="name">{'Name'|@translate}</label></p> |
---|
| 59 | <p><input type="text" name="name" id="name" value="{$collection.NAME}" size="60"></p> |
---|
[16597] | 60 | <p class="title">{'Public collection'|@translate}</p> |
---|
[16591] | 61 | <p> |
---|
| 62 | <label><input type="radio" name="public" value="0" {if not $collection.PUBLIC}checked="checked"{/if}> {'No'|@translate}</label> |
---|
| 63 | <label><input type="radio" name="public" value="1" {if $collection.PUBLIC}checked="checked"{/if}> {'Yes'|@translate}</label> |
---|
[16597] | 64 | <span id="publicURL" {if not $collection.PUBLIC}style="display:none;"{/if}><span class="button" title="{'Copy to clipboard'|@translate}"> </span><span class="url">{$collection.U_PUBLIC}</span></span> |
---|
[16591] | 65 | </p> |
---|
| 66 | <p> |
---|
| 67 | <input type="submit" name="save_col" value="{'Save'|@translate}"> |
---|
| 68 | <a href="{$U_LIST}" rel="nofollow">{'Return to collections list'|@translate}</a> |
---|
| 69 | </p> |
---|
| 70 | </fieldset> |
---|
| 71 | </form> |
---|
| 72 | |
---|
| 73 | |
---|
[16698] | 74 | <form id="actions" style="text-align:center;"> |
---|
| 75 | <input type="submit" data-href="{$collection.U_CLEAR}" value="{'Clear collection'|@translate}"> |
---|
| 76 | <input type="submit" data-href="{$collection.U_DELETE}" value="{'Delete'|@translate}"> |
---|
| 77 | </form> |
---|
| 78 | |
---|
| 79 | |
---|
[16688] | 80 | {if $collection.NB_IMAGES > 0} |
---|
[16591] | 81 | <ul class="thumbnails" id="thumbnails"> |
---|
| 82 | {$THUMBNAILS} |
---|
| 83 | </ul> |
---|
| 84 | {else} |
---|
| 85 | <p><i>{'This collection is empty'|@translate}</i></p> |
---|
| 86 | {/if} |
---|
| 87 | |
---|
| 88 | {if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
[16688] | 89 | {/if} |
---|
[16591] | 90 | |
---|
[17493] | 91 | {if $clear}<div style="clear: both;"></div>{/if} |
---|
[16591] | 92 | </div>{* <!-- content --> *} |
---|