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

Last change on this file since 16591 was 16591, checked in by mistic100, 9 years ago

first commit

File size: 2.4 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  $(this).attr("href",  $(this).attr("href") +"&name="+ name);
7  return true;
8});
9{/footer_script}
10
11{$MENUBAR}
12
13<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
14<div class="titrePage">
15  <ul class="categoryActions"></ul>
16  <h2>{$TITLE}</h2>
17</div>{* <!-- titrePage --> *}
18
19{if isset($errors) or not empty($infos)}
20{include file='infos_errors.tpl'}
21{/if}
22
23<p style="text-align:left;font-weight:bold;margin:20px;"><a href="{$U_CREATE}" class="save_col">{'Create a new collection'|@translate}</a></p>
24
25{if $temp_col}
26<fieldset>
27  <legend>{'Unsaved collections'|@translate}</legend>
28 
29  <ul class="collecList">
30  {foreach from=$temp_col item=col}
31    <li {if $col.active}class="active"{/if}>
32      <p class="collecTitle">
33        <a href="{$col.U_VIEW}" rel="nofollow"><b>{$col.name}</b></a>
34        <i>{'%d images'|@translate|@sprintf:$col.nb_images}</i>
35      </p>
36      <p class="collecActions">
37        <a href="{$col.U_EDIT}" rel="nofollow">{'Edit'|@translate}</a> |
38        <a href="{$col.U_SAVE}" class="save_col" rel="nofollow">{'save'|@translate}</a> |
39        <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'delete'|@translate}</a>
40        {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if}
41      </p>
42    </li>
43  {/foreach}
44  </ul>
45</fieldset>
46{/if}
47
48{if $collections}
49<fieldset>
50  <legend>{'Saved collections'|@translate}</legend>
51 
52  <ul class="collecList">
53  {foreach from=$collections item=col}
54    <li {if $col.active}class="active"{/if}>
55      <p class="collecDate">
56        {'created on %s'|@translate|@sprintf:$col.date_creation}
57      </p>
58      <p class="collecTitle">
59        <a href="{$col.U_VIEW}" rel="nofollow"><b>{$col.name}</b></a>
60        <i>{'%d images'|@translate|@sprintf:$col.nb_images}</i>
61      </p>
62      <p class="collecActions">
63        <a href="{$col.U_EDIT}" rel="nofollow">{'Edit'|@translate}</a> |
64        <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'delete'|@translate}</a>
65        {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if}
66      </p>
67    </li>
68  {/foreach}
69  </ul>
70</fieldset>
71{/if}
72
73</div>{* <!-- content --> *}
Note: See TracBrowser for help on using the repository browser.