source: extensions/autoupdate/trunk/template/update_pwg.tpl @ 9980

Last change on this file since 9980 was 9980, checked in by patdenice, 13 years ago

Hide submit button on upgrade

File size: 3.3 KB
Line 
1{footer_script}
2jQuery(document).ready(function() {ldelim}
3        jQuery('input[name="submit"]').click(function() {ldelim}
4    if(!confirm('{'autoupdate_alert'|@translate}'))
5      return false;
6    jQuery(this).hide();
7    jQuery('.autoupdate_bar').show();
8        });
9});
10{/footer_script}
11
12{html_head}
13{literal}
14<style type="text/css">
15form { width: 750px; }
16fieldset { padding-bottom: 30px; }
17p, form p { text-align: left; margin-left:20px; }
18li { margin: 5px; }
19</style>
20{/literal}
21{/html_head}
22
23<div class="titrePage">
24{if $STEP < 2}
25<h2>Piwigo AutoUpgrade</h2>
26{else}
27<h2>{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}</h2>
28{/if}
29</div>
30
31{if $STEP == 0}
32  {if $CHECK_VERSION}
33    <p>{'You are running the latest version of Piwigo.'|@translate}</p>
34  {elseif $DEV_VERSION}
35    <p>{'You are running on development sources, no check possible.'|@translate}</p>
36  {else}
37    <p>{'Check for upgrade failed for unknown reasons.'|@translate}</p>
38  {/if}
39{/if}
40
41{if $STEP == 1}
42<h4>{'Two upgrades are available'|@translate}:</h4>
43<p>
44<ul>
45  <li><a href="{$AU_URL}&amp;step=2&amp;to={$MINOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MINOR_VERSION}</strong></a>: {'This is a minor upgrade, with only bug corrections.'|@translate}</li>
46  <li><a href="{$AU_URL}&amp;step=3&amp;to={$MAJOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MAJOR_VERSION}</strong></a>: {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}</li>
47</ul>
48</p>
49<p>{'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'|@translate|@sprintf:$MAJOR_VERSION:$MINOR_VERSION}</p>
50{/if}
51
52{if $STEP == 2}
53<p>
54  {'A new version of Piwigo is available.'|@translate}<br>
55  {'This is a minor upgrade, with only bug corrections.'|@translate}
56</p>
57<form action="" method="post">
58<p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}"></p>
59<p class="autoupdate_bar" style="display:none;">&nbsp; {'Update in progress...'|@translate}<br><img src="plugins/autoupdate/template/ajax-loader-bar.gif"></p>
60<p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p>
61</form>
62{/if}
63
64{if $STEP == 3}
65<p>
66  {'A new version of Piwigo is available.'|@translate}<br>
67  {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}
68</p>
69<form action="" method="post">
70
71{counter assign=i}
72<fieldset>
73  <legend>{'autoupdate_step_'|cat:$i|@translate}</legend>
74  <p><input type="checkbox" name="includeHistory"> &nbsp; {'Include history data (Warning: server memory limit may be exceeded)'|@translate}</p>
75  <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate}"></p>
76</fieldset>
77
78{counter assign=i}
79<fieldset>
80  <legend>{'autoupdate_step_'|cat:$i|@translate}</legend>
81  <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}"></p>
82  <p class="autoupdate_bar" style="display:none;">&nbsp; {'Update in progress...'|@translate}<br><img src="plugins/autoupdate/template/ajax-loader-bar.gif"></p>
83</fieldset>
84
85<p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p>
86</form>
87{/if}
Note: See TracBrowser for help on using the repository browser.