Ignore:
Timestamp:
Mar 22, 2010, 3:11:10 PM (14 years ago)
Author:
plg
Message:

feature 1514: improvement, impossible to delete a theme that is required
by another installed theme.

Location:
trunk/admin/themes/default/template
Files:
2 edited

Legend:

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

    r5246 r5258  
    4646<script type='text/javascript'>
    4747  $(function() {
    48     $('#pwgHead A, #footer A, .themeActions A').tipTip({
     48    $('#pwgHead A, #footer A, .themeActions A, .themeActions SPAN').tipTip({
    4949        'delay' : 0,
    5050        'fadeIn' : 200,
  • trunk/admin/themes/default/template/themes_installed.tpl

    r5200 r5258  
    55<div id="themesContent">
    66
    7 <h3>Active Themes</h3>
     7<fieldset>
     8<legend>Active Themes</legend>
    89{if isset($active_themes)}
    910<div class="themeBoxes">
     
    2223</div> <!-- themeBoxes -->
    2324{/if}
     25</fieldset>
    2426
    2527{if isset($inactive_themes)}
    26 <h3>Inactive Themes</h3>
     28<fieldset>
     29<legend>Inactive Themes</legend>
    2730<div class="themeBoxes">
    2831{foreach from=$inactive_themes item=theme}
     
    3235    <div class="themeActions">
    3336      <a href="{$activate_baseurl}{$theme.id}" title="{'Make this theme available to users'|@translate}">{'Activate'|@translate}</a>
    34       | <a href="{$delete_baseurl}{$theme.id}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a>
     37      |
     38  {if $theme.deletable}
     39      <a href="{$delete_baseurl}{$theme.id}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a>
     40  {else}
     41      <span title="{$theme.delete_tooltip}">{'Delete'|@translate}</span>
     42  {/if}
    3543    </div>
    3644   
     
    3846{/foreach}
    3947</div> <!-- themeBoxes -->
     48</fieldset>
    4049{/if}
    4150
Note: See TracChangeset for help on using the changeset viewer.