source: extensions/UserCollections/template/edit.tpl @ 16698

Revision 16698, 3.2 KB checked in by mistic100, 7 years ago (diff)

-update menu when the temp collection is created
-update BatchDownloader confirmation message

Line 
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'}
6function 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}
11      $('.confirm').remove();
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
18jQuery("input[name='public']").change(function() {ldelim}
19  jQuery("#publicURL").fadeToggle("fast");
20  bindZclip();
21});
22jQuery("#publicURL .button").tipTip({ldelim}
23  delay: 0,
24  defaultPosition: 'right'
25});
26
27jQuery("#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});
33{if $collection.PUBLIC}bindZclip();{/if}
34{/footer_script}
35
36
37{if $themeconf.name != "stripped" and $themeconf.parent != "stripped" and $themeconf.name != "simple-grey" and $themeconf.parent != "simple"}
38  {$MENUBAR}
39{else}
40  {assign var="intern_menu" value="true"}
41{/if}
42<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
43{if $intern_menu}{$MENUBAR}{/if}
44
45
46<div class="titrePage">
47  <ul class="categoryActions">
48  {if !empty($COLLECTION_ACTIONS)}{$COLLECTION_ACTIONS}{/if}
49  </ul>
50  <h2>{$TITLE}</h2>
51</div>{* <!-- titrePage --> *}
52
53{if isset($errors) or not empty($infos)}
54{include file='infos_errors.tpl'}
55{/if}
56
57
58{if $collection}
59<form action="{$F_ACTION}" method="post">
60<fieldset id="colProperties">
61  <legend>{'Properties'|@translate}</legend>
62 
63  <p class="title"><label for="name">{'Name'|@translate}</label></p>
64  <p><input type="text" name="name" id="name" value="{$collection.NAME}" size="60"></p>
65  <p class="title">{'Public collection'|@translate}</p>
66  <p>
67    <label><input type="radio" name="public" value="0" {if not $collection.PUBLIC}checked="checked"{/if}> {'No'|@translate}</label>
68    <label><input type="radio" name="public" value="1" {if $collection.PUBLIC}checked="checked"{/if}> {'Yes'|@translate}</label>
69    <span id="publicURL" {if not $collection.PUBLIC}style="display:none;"{/if}><span class="button" title="{'Copy to clipboard'|@translate}">&nbsp;</span><span class="url">{$collection.U_PUBLIC}</span></span>
70  </p>
71  <p>
72    <input type="submit" name="save_col" value="{'Save'|@translate}">
73    <a href="{$U_LIST}" rel="nofollow">{'Return to collections list'|@translate}</a>
74  </p>
75</fieldset>
76</form>
77
78
79<form id="actions" style="text-align:center;">
80<input type="submit" data-href="{$collection.U_CLEAR}" value="{'Clear collection'|@translate}">
81<input type="submit" data-href="{$collection.U_DELETE}" value="{'Delete'|@translate}">
82</form>
83
84
85{if $collection.NB_IMAGES > 0}
86<ul class="thumbnails" id="thumbnails">
87{$THUMBNAILS}
88</ul>
89{else}
90<p><i>{'This collection is empty'|@translate}</i></p>
91{/if}
92
93{if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
94{/if}
95
96
97</div>{* <!-- content --> *}
Note: See TracBrowser for help on using the repository browser.