source: extensions/UserCollections/template/list.tpl @ 16688

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

-rework the main menu
-bug when a collection is create through AJAX
-add "Remove from collection" on colorbox
-minor interfaces changes

File size: 3.1 KB
Line 
1{combine_css path=$USER_COLLEC_PATH|@cat:"template/style.css"}
2
3{footer_script require='jquery'}
4jQuery(".save_col").click(function() {ldelim}
5  var name = prompt("{'Collection name:'|@translate}");
6  if (name != null) {ldelim}
7    $(this).attr("href",  $(this).attr("href") +"&name="+ name);
8    return true;
9  } else {ldelim}
10    return false;
11  }
12});
13{/footer_script}
14
15{if $themeconf.name == "clear"}
16{html_head}{literal}
17<style type="text/css">.collecList a { color:#eee; }</style>
18{/literal}{/html_head}
19{/if}
20
21{if $themeconf.name != "stripped" and $themeconf.parent != "stripped" and $themeconf.name != "simple-grey" and $themeconf.parent != "simple"}
22  {$MENUBAR}
23{else}
24  {assign var="intern_menu" value="true"}
25{/if}
26<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
27{if $intern_menu}{$MENUBAR}{/if}
28
29
30<div class="titrePage">
31  <ul class="categoryActions"></ul>
32  <h2>{$TITLE}</h2>
33</div>{* <!-- titrePage --> *}
34
35{if isset($errors) or not empty($infos)}
36{include file='infos_errors.tpl'}
37{/if}
38
39
40<p style="text-align:left;font-weight:bold;margin:20px;"><a href="{$U_CREATE}" class="save_col">{'Create a new collection'|@translate}</a></p>
41
42
43{if $temp_col}
44<fieldset>
45  <legend>{'Unsaved collections'|@translate}</legend>
46 
47  <ul class="collecList">
48  {foreach from=$temp_col item=col}
49    <li {if $col.active}class="active"{/if}>
50      <p class="collecTitle">
51        <a href="{$col.U_EDIT}" rel="nofollow"><b>{$col.name}</b></a>
52        <i>{'%d photos'|@translate|@sprintf:$col.nb_images}</i>
53      </p>
54      <p class="collecActions">
55        <a href="{$col.U_EDIT}" rel="nofollow">{'Edit'|@translate}</a>
56        | <a href="{$col.U_SAVE}" class="save_col" rel="nofollow">{'save'|@translate}</a>
57        {if $col.U_DOWNLOAD}| <a href="{$col.U_DOWNLOAD}" rel="nofollow">{'download'|@translate}</a>{/if}
58        | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'Delete'|@translate}</a>
59        {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if}
60      </p>
61    </li>
62  {/foreach}
63  </ul>
64</fieldset>
65{/if}
66
67
68{if $collections}
69<fieldset>
70  <legend>{'Saved collections'|@translate}</legend>
71 
72  <ul class="collecList">
73  {foreach from=$collections item=col}
74    <li {if $col.active}class="active"{/if}>
75      <p class="collecDate">
76        {'created on %s'|@translate|@sprintf:$col.date_creation}
77      </p>
78      <p class="collecTitle">
79        <a href="{$col.U_EDIT}" rel="nofollow"><b>{$col.name}</b></a>
80        <i>{'%d photos'|@translate|@sprintf:$col.nb_images}</i>
81      </p>
82      <p class="collecActions">
83        <a href="{$col.U_EDIT}" rel="nofollow">{'Edit'|@translate}</a>
84        {if $col.U_DOWNLOAD}| <a href="{$col.U_DOWNLOAD}" rel="nofollow">{'download'|@translate}</a>{/if}
85        | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'Delete'|@translate}</a>
86        {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if}
87      </p>
88    </li>
89  {/foreach}
90  </ul>
91</fieldset>
92{/if}
93
94
95</div>{* <!-- content --> *}
Note: See TracBrowser for help on using the repository browser.