[% USE Whostmgr; SET PAGE_BASE = '/scripts7/server_profile/'; SET PAGE_NAME = Whostmgr.get_page_name_by_url(PAGE_BASE); WRAPPER 'master_templates/master.tmpl' header = locale.makevar(PAGE_NAME), stylesheets = [ Whostmgr.find_file_url('/templates/server_profile/index.min.css') ], breadcrumburl = PAGE_BASE, base = PAGE_BASE, theme = 'bootstrap', CJT2_EXCLUSIVE = 1, app_key='server_profile'; SET locale_attributes = execute( "Locale", "get_attributes", {} ).data; # This variable might ideally be named “allow_profile_change”, but # “has_accounts_created” appers in several places in the JS, and since # this is just a workaround to simplify testing, this is left in place. SET has_accounts_created = !data.allow_profile_change_with_users && Whostmgr.minimum_accounts_needed(1); SET templates = [ "server_profile/views/activatingProfileView.ptt", "server_profile/views/confirmProfileView.ptt", "server_profile/views/selectOptionsView.ptt", "server_profile/views/selectProfileView.ptt" ]; # Necessary for Angular filter strings elsewhere SET LANG = { disables = locale.maketext("Disables [list_and,_1]"), enables = locale.maketext("Enables [list_and,_1]"), optional = locale.maketext("[list_and,_1] [numerate,_2,is,are] optional.") }; %] [%# PAGE content %]

[% locale.maketext("You can use this interface to select a server‘s profile, based on the services that you want to the server to provide.") %]
[% locale.maketext("This allows you to enable or disable specific services to reduce the resource load of a server.") %]

[% IF data.child_accounts %]
[% locale.maketext('Warning:') %] [% locale.maketext('This node has one or more distributed accounts.') %]

[% locale.maketext('Selecting a new server profile can cause these accounts to lose functionality.') %] [% locale.maketext('For example, the [output,em,Standard] and [output,em,Mail] profiles provide mail-related services.') %] [% locale.maketext('If you select the [output,em,_1] or [output,em,Database] profile, the distributed account would be unable to access their webmail.','DNS') %]

[% END %] [% IF data.available_profiles.size() == 1 && data.current_profile.optional_roles.size() == 0 %] [% ELSE %]
[% locale.maketext("Loading available server profiles …") %]
[% FOREACH ptt IN templates %] [% END %] [% PROCESS 'master_templates/cjt2_header_include.tt' %] [% END %]
[% END %]