source: extensions/autoupdate/trunk/template/autoupdate.tpl @ 6181

Last change on this file since 6181 was 6181, checked in by patdenice, 14 years ago

Update language keys.
Code cleaning.

File size: 2.9 KB
Line 
1{html_head}
2{literal}
3<style type="text/css">
4form { width: 750px; }
5fieldset { padding-bottom: 30px; }
6p, form p { text-align: left; margin-left:20px; }
7li { margin: 5px; }
8</style>
9{/literal}
10{/html_head}
11
12<div class="titrePage">
13{if $STEP < 2}
14<h2>Piwigo AutoUpgrade</h2>
15{else}
16<h2>{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}</h2>
17{/if}
18</div>
19
20{if $STEP == 0}
21  {if $CHECK_VERSION}
22    <p>{'You are running the latest version of Piwigo.'|@translate}</p>
23  {elseif $DEV_VERSION}
24    <p>{'You are running on development sources, no check possible.'|@translate}</p>
25  {else}
26    <p>{'Check for upgrade failed for unknown reasons.'|@translate}</p>
27  {/if}
28{/if}
29
30{if $STEP == 1}
31<h4>{'Two upgrades are available'|@translate}:</h4>
32<p>
33<ul>
34  <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>
35  <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>
36</ul>
37</p>
38<p>{'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'|@translate|@sprintf:$MAJOR_VERSION:$MINOR_VERSION}</p>
39{/if}
40
41{if $STEP == 2}
42<p>
43  {'A new version of Piwigo is available.'|@translate}<br>
44  {'This is a minor upgrade, with only bug corrections.'|@translate}
45</p>
46<form action="" method="post">
47<p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p>
48<p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p>
49</form>
50{/if}
51
52{if $STEP == 3}
53<p>
54  {'A new version of Piwigo is available.'|@translate}<br>
55  {'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}
56</p>
57<form action="" method="post">
58<fieldset>
59  <legend>{'First Step'|@translate}</legend>
60  <p><input type="submit" name="saveTemplate" value="{'Save Template Directory'|@translate}"></p>
61</fieldset>
62<fieldset>
63  <legend>{'Second Step'|@translate}</legend>
64  <p><input type="checkbox" name="includeHistory"> &nbsp; {'Include history data (Warning: server memory limit may be exceeded)'|@translate}</p>
65  <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate}"></p>
66</fieldset>
67<fieldset>
68  <legend>{'Third Step'|@translate|@sprintf:$UPGRADE_TO}</legend>
69  <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p>
70</fieldset>
71<p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p>
72</form>
73{/if}
Note: See TracBrowser for help on using the repository browser.