source: trunk/admin/themes/default/template/updates_pwg.tpl @ 12261

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

Add missing language keys for auto-upgrade (only error keys).

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