Ignore:
Timestamp:
Apr 4, 2011, 12:28:50 AM (13 years ago)
Author:
patdenice
Message:

Display missing extension before major upgrade

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/trunk/template/update_pwg.tpl

    r9980 r10028  
    77    jQuery('.autoupdate_bar').show();
    88        });
     9  jQuery('[name="understand"]').click(function() {ldelim}
     10    jQuery('[name="submit"]').attr('disabled', !this.checked);
     11  });
    912});
    1013{/footer_script}
     
    7982<fieldset>
    8083  <legend>{'autoupdate_step_'|cat:$i|@translate}</legend>
    81   <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}"></p>
     84  {if !empty($missing.plugins)}
     85  <p><i>{'Following plugins may not be compatible with the new version of Piwigo:'|@translate}</i></p>
     86  <p><ul>{foreach from=$missing.plugins item=plugin}<li><a href="{$plugin.uri}" class="externalLink">{$plugin.name}</a></li>{/foreach}</ul><br></p>
     87  {/if}
     88  {if !empty($missing.themes)}
     89  <p><i>{'Following themes may not be compatible with the new version of Piwigo:'|@translate}</i></p>
     90  <p><ul>{foreach from=$missing.themes item=theme}<li><a href="{$theme.uri}" class="externalLink">{$theme.name}</a></li>{/foreach}</ul><br></p>
     91  {/if}
     92  <p>
     93  {if !empty($missing.plugins) or !empty($missing.themes)}
     94  <p><label><input type="checkbox" name="understand"> &nbsp;{'I decide to upgrade anyway'|@translate}</label></p>
     95  {/if}
     96  <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" {if !empty($missing.plugins) or !empty($missing.themes)}disabled="disabled"{/if}>
     97  </p>
    8298  <p class="autoupdate_bar" style="display:none;">&nbsp; {'Update in progress...'|@translate}<br><img src="plugins/autoupdate/template/ajax-loader-bar.gif"></p>
    8399</fieldset>
Note: See TracChangeset for help on using the changeset viewer.