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