source: trunk/admin/themes/default/template/permalinks.tpl @ 26117

Last change on this file since 26117 was 13282, checked in by plg, 13 years ago

feature 2581: new design on albums list management.

icons removed, replaced by text links visible on :hover

better ergonomy for automatic order: the "save manual order" submit button
only appears when a change is detected in the album ordering. The "automatic
sort order" becomes a dedicated fieldset, hidden by default, displayed "on
user demand".

new virtual album form displayed only "on user demand"

cat_list, cat_move and permalinks are 3 tabs for the "Albums > Manage" link
in the menubar.

permalinks admin page slightly redesign: fieldsets instead of centered h3,
"on user demand" form to add/modify permalinks.

  • Property svn:eol-style set to LF
File size: 3.0 KB
RevLine 
[13282]1{footer_script require='jquery.ui.sortable'}{literal}
2jQuery(document).ready(function(){
3  jQuery("#addPermalinkOpen").click(function(){
4    jQuery("#addPermalink").show();
5    jQuery("#showAddPermalink").hide();
6  });
7
8  jQuery("#addPermalinkClose").click(function(){
9    jQuery("#addPermalink").hide();
10    jQuery("#showAddPermalink").show();
11  });
12});
13{/literal}{/footer_script}
14
15{literal}
16<style>
17#showAddPermalink {text-align:left;margin-left:1em;margin-top:0;}
18form fieldset p {margin:0 0 1em 0;}
19form fieldset p.actionButtons {margin-bottom:0}
20</style>
21{/literal}
22
[2531]23<div class="titrePage">
24  <h2>{'Permalinks'|@translate}</h2>
25</div>
26
[13282]27<p id="showAddPermalink"><a href="#" id="addPermalinkOpen">{'Add/delete a permalink'|@translate}</a></p>
28
29<form method="post" action="" id="addPermalink" style="display:none">
30<fieldset>
31  <legend>{'Add/delete a permalink'|@translate}</legend>
32  <p>
33    <strong>{'Album'|@translate}</strong>
34    <br>
[2531]35    <select name="cat_id">
36      <option value="0">------</option>
37      {html_options options=$categories selected=$categories_selected}
38    </select>
[13282]39  </p>
[2531]40
[13282]41  <p>
42    <strong>{'Permalink'|@translate}</strong>
43    <br><input name="permalink">
44  </p>
[2531]45
[13282]46  <p>
47    <label><input type="checkbox" name="save" checked="checked"> <strong>{'Save to permalink history'|@translate}</strong></label>
48  </p>
[2531]49
[13282]50  <p class="actionButtons">
[8128]51    <input type="submit" class="submit" name="set_permalink" value="{'Submit'|@translate}">
[13282]52    <a href="#" id="addPermalinkClose">{'Cancel'|@translate}</a>
[2531]53  </p>
[13282]54</fieldset>
[2531]55</form>
56
[13282]57<fieldset>
58  <legend>{'Permalinks'|@translate}</legend>
59<table class="table2" style="margin:0">
[3136]60        <tr class="throw">
61                <td>Id {$SORT_ID}</td>
[6993]62                <td>{'Album'|@translate} {$SORT_NAME}</td>
[3136]63                <td>{'Permalink'|@translate} {$SORT_PERMALINK}</td>
64        </tr>
[2531]65{foreach from=$permalinks item=permalink name="permalink_loop"}
[3136]66        <tr class="{if $smarty.foreach.permalink_loop.index is odd}row1{else}row2{/if}" style="line-height:1.5em;">
67                <td style="text-align:center;">{$permalink.id}</td>
68                <td>{$permalink.name}</td>
69                <td>{$permalink.permalink}</td>
70        </tr>
[2531]71{/foreach}
72</table>
[13282]73</fieldset>
[2531]74
[13282]75<fieldset>
76  <legend>{'Permalink history'|@translate} <a name="old_permalinks"></a></legend>
77<table class="table2" style="margin:0">
[3136]78        <tr class="throw">
79                <td>Id {$SORT_OLD_CAT_ID}</td>
[6993]80                <td>{'Album'|@translate}</td>
[3136]81                <td>{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td>
[5075]82                <td>{'Deleted on'|@translate} {$SORT_OLD_DATE_DELETED}</td>
83                <td>{'Last hit'|@translate} {$SORT_OLD_LAST_HIT}</td>
[13282]84                <td>{'Hit'|@translate} {$SORT_OLD_HIT}</td>
[3136]85                <td style="width:5px;"></td>
86        </tr>
[2531]87{foreach from=$deleted_permalinks item=permalink}
[3136]88        <tr style="line-height:1.5em;">
89                <td style="text-align:center;">{$permalink.cat_id}</td>
90                <td>{$permalink.name}</td>
91                <td>{$permalink.permalink}</td>
92                <td>{$permalink.date_deleted}</td>
93                <td>{$permalink.last_hit}</td>
94                <td>{$permalink.hit}</td>
[12482]95                <td><a href="{$permalink.U_DELETE}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" alt="[{'Delete'|@translate}]"></a></td>
[3136]96        </tr>
[2531]97{/foreach}
98</table>
[13282]99</fieldset>
Note: See TracBrowser for help on using the repository browser.