Changeset 16826


Ignore:
Timestamp:
Jul 18, 2012, 4:35:17 PM (8 years ago)
Author:
flop25
Message:

merge r16825 from trunk to 2.4 branch
bug:2698
moving the forms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/admin/themes/default/template/cat_list.tpl

    r13667 r16826  
    6060<h2><span style="letter-spacing:0">{$CATEGORIES_NAV}</span> &#8250; {'Album list management'|@translate}</h2>
    6161
     62
     63<form id="CreateAlbum" action="{$F_ACTION}" method="post">
     64  <fieldset id="createAlbum" style="display:none;">
     65    <p class="showCreateAlbum">
     66      <legend>{'create a new album'|@translate}</legend>
     67      <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
     68      <p><strong>{'Album name'|@translate}</strong>
     69        <br><input type="text" name="virtual_name">
     70      </p>
     71      <p class="actionButtons">
     72        <input class="submit" type="submit" value="{'Create'|@translate}" name="submitAdd">
     73        <a href="#" id="addAlbumClose">{'Cancel'|@translate}</a>
     74      </p>
     75    </p>
     76  </fieldset>
     77</form>
    6278<form id="categoryOrdering" action="{$F_ACTION}" method="post">
    6379<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
    64 
    65 <p class="showCreateAlbum">
     80<p>
    6681  <span id="notManualOrder">
    6782    <a href="#" id="addAlbumOpen">{'create a new album'|@translate}</a>
     
    7388  </span>
    7489</p>
    75 
    76 <fieldset id="createAlbum" style="display:none;">
    77   <legend>{'create a new album'|@translate}</legend>
    78   <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
    79 
    80   <p><strong>{'Album name'|@translate}</strong>
    81     <br><input type="text" name="virtual_name">
    82   </p>
    83   <p class="actionButtons">
    84     <input class="submit" type="submit" value="{'Create'|@translate}" name="submitAdd">
    85     <a href="#" id="addAlbumClose">{'Cancel'|@translate}</a>
    86   </p>
    87 </fieldset>
    88 
    8990{if count($categories) }
    9091
    91 <fieldset id="autoOrder" style="display:none;">
    92   <legend>{'Automatic sort order'|@translate}</legend>
    93   <p><strong>{'Sort order'|@translate}</strong>
    94     <br><label><input type="radio" value="asc" name="ascdesc" checked="checked">{'ascending'|@translate}</label>
    95     <br><label><input type="radio" value="desc" name="ascdesc">{'descending'|@translate}</label>
    96   </p>
    97 
    98   <p>
    99     <label><input type="checkbox" name="recursive"> <strong>{'Apply to sub-albums'|@translate}</strong></label>
    100   </p>
    101 
    102   <p class="actionButtons">
    103     <input class="submit" name="submitAutoOrder" type="submit" value="{'Save order'|@translate}">
    104     <a href="#" id="autoOrderClose">{'Cancel'|@translate}</a>
    105   </p>
    106 </fieldset>
    107 
     92  <span id="autoOrder" style="display:none;">
     93    <legend>{'Automatic sort order'|@translate}</legend>
     94    <p><strong>{'Sort order'|@translate}</strong>
     95      <br><label><input type="radio" value="asc" name="ascdesc" checked="checked">{'ascending'|@translate}</label>
     96      <br><label><input type="radio" value="desc" name="ascdesc">{'descending'|@translate}</label>
     97    </p>
     98 
     99    <p>
     100      <label><input type="checkbox" name="recursive"> <strong>{'Apply to sub-albums'|@translate}</strong></label>
     101    </p>
     102 
     103    <p class="actionButtons">
     104      <input class="submit" name="submitAutoOrder" type="submit" value="{'Save order'|@translate}">
     105      <a href="#" id="autoOrderClose">{'Cancel'|@translate}</a>
     106    </p>
     107  </span>
     108 
    108109  <ul class="categoryUl">
    109110
     
    123124      </p>
    124125
    125 <p class="albumActions">
    126         <a href="{$category.U_EDIT}">{'Edit'|@translate}</a>
    127         {if isset($category.U_MANAGE_ELEMENTS) }
    128         | <a href="{$category.U_MANAGE_ELEMENTS}">{'manage album photos'|@translate}</a>
    129         {/if}
    130         | <a href="{$category.U_CHILDREN}">{'manage sub-albums'|@translate}</a>
    131         {if isset($category.U_SYNC) }
    132         | <a href="{$category.U_SYNC}">{'Synchronize'|@translate}</a>
    133         {/if}
    134         {if isset($category.U_DELETE) }
    135         | <a href="{$category.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete album'|@translate}</a>
    136 {/if}
    137 {if cat_admin_access($category.ID)}
    138 |
    139 <a href="{$category.U_JUMPTO}">{'jump to album'|@translate} →</a>
    140 {/if}
    141 </p>
     126      <p class="albumActions">
     127              <a href="{$category.U_EDIT}">{'Edit'|@translate}</a>
     128              {if isset($category.U_MANAGE_ELEMENTS) }
     129              | <a href="{$category.U_MANAGE_ELEMENTS}">{'manage album photos'|@translate}</a>
     130              {/if}
     131              | <a href="{$category.U_CHILDREN}">{'manage sub-albums'|@translate}</a>
     132              {if isset($category.U_SYNC) }
     133              | <a href="{$category.U_SYNC}">{'Synchronize'|@translate}</a>
     134              {/if}
     135              {if isset($category.U_DELETE) }
     136              | <a href="{$category.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'delete album'|@translate}</a>
     137      {/if}
     138      {if cat_admin_access($category.ID)}
     139      |
     140      <a href="{$category.U_JUMPTO}">{'jump to album'|@translate} →</a>
     141      {/if}
     142      </p>
    142143
    143144    </li>
Note: See TracChangeset for help on using the changeset viewer.