[% USE JSON %] [% IF !data.notices.has() %]

[% locale.maketext('The system successfully upgraded the [asis,cPAddon].') %]

[% ELSE %] [% PROCESS 'addoncgi/views/notices.tt' notices => data.notices %] [% END %] [% IF data.show_converted %]

[% locale.maketext('The system could not upgrade the [asis,cPAddon]. The upgrade patch failed because the current installation uses the legacy [asis,cPAddon] system.') %]

[% locale.maketext('Choose one of the following options:') %]

[% ELSE %] [% IF data.has_patch && data.patch_failed && !data.forced %]
[% locale.maketext('Error:') %] [% locale.maketext('You modified this [asis,cPAddon] or the upgrade test failed. You cannot update this [asis,cPAddon] via this interface.') %]

[% locale.maketext('To force the upgrade, enter the following information in the form below:') %]

[% IF data.has_patch && data.patch_failed && !form.force; # NOTE: Not localized intentionally. SET force_string = String.new(force_text); %]

[% force_text | html %]

[% IF !environment.called_from_root %] [% IF data.patch_test_output && data.verbose %] [% PROCESS addoncgi/views/collapse.tt, id = 'patch_test_output_b', show = locale.maketext('Display the patch test output.'), hide = locale.maketext('Hide patch test output.'), content = data.patch_test_output; %] [% END %]

[% locale.maketext('To force the upgrade, enter the following information in the form below:') %]

[% data.force_text | html %]

[% ELSE %]
[% locale.maketext('Error:') %] [% locale.maketext('You modified this [asis,cPAddon] or the upgrade test failed. You cannot update this [asis,cPaddon] via this interface.') %]

[% locale.maketext('For technical reasons, you can only attempt a forced upgrade via [asis,cPanel] when logged in as the user with the user’s password.') %]

[% END %] [% END %] [% END %] [% END %] [% IF !environment.called_from_root; IF data.notices.has('critical_error', 'error'); IF form.oneclick == '1'; SET fix_url = to_uri(environment, 'addon=' _ module.name _ '&oneclick=1'); ELSE; SET fix_url = to_uri(environment, actionlessuri); END; %]

[[% locale.maketext('Back') %]]

[% ELSE %]

[% SET back_url = to_uri(environment, 'addon=' _ module.name _ '&oneclick=' _ form.oneclick) %] [[% locale.maketext('Back') %]]

[% END %]

[% SET home_url = to_uri(environment) %] [[% locale.maketext('Home') %]]

[% END %]