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

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

[% ELSE %] [% PROCESS 'addoncgi/views/notices.tt' notices => data.notices %] [% END %] [% IF data.success || data.partial_success %] [% IF data.url_to_install %]

[% locale.maketext('You can access this site at [output,url,_1,_1,id,_2,target,_blank]', data.url_to_install, 'site_url') %]

[% END %] [% IF data.url_to_install_admin %]

[% locale.maketext('You can access the admin login page for this site at [output,url,_1,_1,id,_2,target,_blank].', data.url_to_install_admin, 'site_admin_url') %]

[% END %] [% IF data.username && data.password %]

[% locale.maketext('Important:') %] [% IF form.oneclick %] [% locale.maketext('The system automatically generated your credentials, which are not available anywhere else. Save these credentials or use them to log in now and set up another account.') %] [% ELSE %] [% locale.maketext('Your login credentials are listed below:') %] [% END %]

[% locale.maketext('Username:') %] [% data.username | html %]
[% locale.maketext('Password:') %] [% data.password | html %]
[% 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 _ '&subdomain=' _ form.subdomain _ '&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') %]]

[% ELSE %] [[% locale.maketext('Close') %]] [% END %]