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

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

-add download link if BatchDownloader is installed
-merge two prefilters
-better support of Stripped

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