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

Last change on this file since 16658 was 16658, checked in by plg, 12 years ago

(by mistic100, but svn commit crashes for him)

-use random public_id, preventing to access other public collections
-use colorbox to browse inside a collection
-small css fixes

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