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

Revision 17493, 3.3 KB checked in by mistic100, 7 years ago (diff)

better integration in simple and stripped

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{* <!-- 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"}
44{else}
45  {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/default.tpl'}
46{/if}
47
48{if isset($errors) or not empty($infos)}
49{include file='infos_errors.tpl'}
50{/if}
51
52
53{if $collection}
54<form action="{$F_ACTION}" method="post">
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>
60  <p class="title">{'Public collection'|@translate}</p>
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>
64    <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>
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
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
80{if $collection.NB_IMAGES > 0}
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}
89{/if}
90
91{if $clear}<div style="clear: both;"></div>{/if}
92</div>{* <!-- content --> *}
Note: See TracBrowser for help on using the repository browser.