source: extensions/autoupdate/template/autoupdate.tpl @ 6167

Revision 6167, 2.5 KB checked in by patdenice, 9 years ago (diff)

Upgrade work for 2.1.
Language keys have not been inserted yet.

Line 
1<div class="titrePage">
2{if $STEP < 2}
3<h2>Piwigo AutoUpgrade</h2>
4{else}
5<h2>{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}</h2>
6{/if}
7</div>
8
9{if $STEP == 0}
10  {if $CHECK_VERSION}
11    <p>{'You are running the latest version of Piwigo.'|@translate}</p>
12  {else} 
13    <p>{'Check for upgrade failed for unknown reasons.'|@translate}</p>
14  {/if}
15{/if}
16
17{if $STEP == 1}
18<p>{'2 upgrades are available'|@translate}</p>
19<p>
20<ul>
21  <li><a href="{$AU_URL}&amp;step=2&amp;to={$new_versions.1}">{'Upgrade to Piwigo %s'|@translate|@sprintf:$new_versions.1}</a>: {'This is a minor upgrade, with only bug corrections'|@translate}</li>
22  <li><a href="{$AU_URL}&amp;step=3&amp;to={$new_versions.0}">{'Upgrade to Piwigo %s'|@translate|@sprintf:$new_versions.0}</a>: {'This is a major upgrade, with <a href="http://piwigo.org/releases/%s">new exciting features</a>. Some themes and plugins may be not available yet.'|@translate|@sprintf:$new_versions.0}</li>
23</ul>
24</p>
25{/if}
26
27{if $STEP == 2}
28<form action="" method="post">
29<p style="text-align:left; margin-left:20px;">
30  {'A new version of Piwigo is available.'}<br>
31  {'This is a minor upgrade, with only bug corrections'|@translate}
32</p>
33<p>
34  <input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}">
35  <input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');">
36</p>
37</form>
38{/if}
39
40{if $STEP == 3}
41<form action="" method="post">
42<p style="text-align:left; margin-left:20px;">
43  {'A new version of Piwigo is available.'}<br>
44  {'This is a major upgrade, with <a href="http://piwigo.org/releases/%s">new exciting features</a>. Some themes and plugins may be not available yet.'|@translate|@sprintf:$UPGRADE_TO}
45</p>
46<input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}">
47<fieldset style="text-align:left;">
48  <legend>{'Save template directory'|@translate}</legend>
49  <p><input type="submit" name="saveTemplate" value="{'Save template directory'|@translate}"></p>
50</fieldset>
51<fieldset>
52  <legend>{'Dump Database'|@translate}</legend>
53  <p><input type="checkbox" name="includeHistory"> &nbsp; {'Include history table'|@translate}</p>
54  <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate|@sprintf:$UPGRADE_TO}"></p>
55</fieldset>
56<fieldset>
57  <legend>{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}</legend>
58  <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}"></p>
59</fieldset>
60</form>
61{/if}
Note: See TracBrowser for help on using the repository browser.