Ignore:
Timestamp:
Apr 4, 2011, 1:15:59 AM (13 years ago)
Author:
patdenice
Message:

Display missing extension before major upgrade

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/branches/2.0/template/autoupdate.tpl

    r9981 r10029  
    1717    jQuery('.autoupdate_bar').show();
    1818        });
     19  jQuery('[name="understand"]').click(function() {ldelim}
     20    jQuery('[name="submit"]').attr('disabled', !this.checked);
     21  });
    1922});
    2023</script>
     
    8790<fieldset>
    8891  <legend>{'autoupdate_step_'|cat:$i|@translate}</legend>
    89   <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}"></p>
     92  {if !empty($missing.plugins)}
     93  <p><i>{'Following plugins may not be compatible with the new version of Piwigo:'|@translate}</i></p>
     94  <p><ul>{foreach from=$missing.plugins item=plugin}<li><a href="{$plugin.uri}" class="externalLink">{$plugin.name}</a></li>{/foreach}</ul><br></p>
     95  {/if}
     96  {if !empty($missing.themes)}
     97  <p><i>{'Following themes may not be compatible with the new version of Piwigo:'|@translate}</i></p>
     98  <p><ul>{foreach from=$missing.themes item=theme}<li><a href="{$theme.uri}" class="externalLink">{$theme.name}</a></li>{/foreach}</ul><br></p>
     99  {/if}
     100  <p>
     101  {if !empty($missing.plugins) or !empty($missing.themes)}
     102  <p><label><input type="checkbox" name="understand"> &nbsp;{'I decide to upgrade anyway'|@translate}</label></p>
     103  {/if}
     104  <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}>
     105  </p>
    90106  <p class="autoupdate_bar" style="display:none;">&nbsp; {'Update in progress...'|@translate}<br><img src="plugins/autoupdate/template/ajax-loader-bar.gif"></p>
    91107</fieldset>
Note: See TracChangeset for help on using the changeset viewer.