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

Last change on this file since 16608 was 16608, checked in by mistic100, 12 years ago

-add complete breadcrumb
-AJAX for add/remove photos (more faster)

File size: 2.7 KB
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{if $collection.PUBLIC}bindZclip();{/if}
27{/footer_script}
28
29{$MENUBAR}
30
31<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
32<div class="titrePage">
33  <ul class="categoryActions">
34  {if !empty($COLLECTION_ACTIONS)}{$COLLECTION_ACTIONS}{/if}
35  </ul>
36  <h2>{$TITLE}</h2>
37</div>{* <!-- titrePage --> *}
38
39{if isset($errors) or not empty($infos)}
40{include file='infos_errors.tpl'}
41{/if}
42
43{if $collection and not $collection.IS_TEMP}
44<form action="{$U_VIEW}" method="post">
45<fieldset id="colProperties">
46  <legend>{'Properties'|@translate}</legend>
47 
48  <p class="title"><label for="name">{'Name'|@translate}</label></p>
49  <p><input type="text" name="name" id="name" value="{$collection.NAME}" size="60"></p>
50  <p class="title">{'Public collection'|@translate}</p>
51  <p>
52    <label><input type="radio" name="public" value="0" {if not $collection.PUBLIC}checked="checked"{/if}> {'No'|@translate}</label>
53    <label><input type="radio" name="public" value="1" {if $collection.PUBLIC}checked="checked"{/if}> {'Yes'|@translate}</label>
54    <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>
55  </p>
56  <p>
57    <input type="submit" name="save_col" value="{'Save'|@translate}">
58    <a href="{$U_LIST}" rel="nofollow">{'Return to collections list'|@translate}</a>
59  </p>
60</fieldset>
61</form>
62{/if}
63
64 
65
66{if !empty($THUMBNAILS)}
67<ul class="thumbnails" id="thumbnails">
68{$THUMBNAILS}
69</ul>
70{else}
71<p><i>{'This collection is empty'|@translate}</i></p>
72{/if}
73
74{if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
75
76<p style="text-align:center;font-weight:bold;margin:20px;"><a href="{$U_LIST}" rel="nofollow">{'Return to collections list'|@translate}</a></p>
77
78</div>{* <!-- content --> *}
Note: See TracBrowser for help on using the repository browser.