Ignore:
Timestamp:
Feb 20, 2012, 8:28:43 PM (12 years ago)
Author:
plg
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/permalinks.tpl

    r12482 r13282  
     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
    123<div class="titrePage">
    224  <h2>{'Permalinks'|@translate}</h2>
    325</div>
    426
    5 <form method="post" action="">
    6 <fieldset><legend>{'Add/delete a permalink'|@translate}</legend>
    7   <label>{'Album'|@translate}:
     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>
    835    <select name="cat_id">
    936      <option value="0">------</option>
    1037      {html_options options=$categories selected=$categories_selected}
    1138    </select>
    12   </label>
    13 
    14   <label>{'Permalink'|@translate}:
    15     <input name="permalink">
    16   </label>
    17 
    18   <label>{'Save to permalink history'|@translate}:
    19     <input type="checkbox" name="save" checked="checked">
    20   </label>
     39  </p>
    2140
    2241  <p>
     42    <strong>{'Permalink'|@translate}</strong>
     43    <br><input name="permalink">
     44  </p>
     45
     46  <p>
     47    <label><input type="checkbox" name="save" checked="checked"> <strong>{'Save to permalink history'|@translate}</strong></label>
     48  </p>
     49
     50  <p class="actionButtons">
    2351    <input type="submit" class="submit" name="set_permalink" value="{'Submit'|@translate}">
     52    <a href="#" id="addPermalinkClose">{'Cancel'|@translate}</a>
    2453  </p>
    25   </fieldset>
     54</fieldset>
    2655</form>
    2756
    28 <h3>{'Permalinks'|@translate}</h3>
    29 <table class="table2">
     57<fieldset>
     58  <legend>{'Permalinks'|@translate}</legend>
     59<table class="table2" style="margin:0">
    3060        <tr class="throw">
    3161                <td>Id {$SORT_ID}</td>
     
    4171{/foreach}
    4272</table>
     73</fieldset>
    4374
    44 <h3>{'Permalink history'|@translate} <a name="old_permalinks"></a></h3>
    45 <table class="table2">
     75<fieldset>
     76  <legend>{'Permalink history'|@translate} <a name="old_permalinks"></a></legend>
     77<table class="table2" style="margin:0">
    4678        <tr class="throw">
    4779                <td>Id {$SORT_OLD_CAT_ID}</td>
     
    5082                <td>{'Deleted on'|@translate} {$SORT_OLD_DATE_DELETED}</td>
    5183                <td>{'Last hit'|@translate} {$SORT_OLD_LAST_HIT}</td>
    52                 <td style="width:20px;">{'Hit'|@translate} {$SORT_OLD_HIT}</td>
     84                <td>{'Hit'|@translate} {$SORT_OLD_HIT}</td>
    5385                <td style="width:5px;"></td>
    5486        </tr>
     
    6597{/foreach}
    6698</table>
     99</fieldset>
Note: See TracChangeset for help on using the changeset viewer.