[% WRAPPER 'master_templates/master.tmpl' theme="yui" -%] [% PROCESS '_ajaxapp_styles.tmpl' -%] [% PROCESS '_ajaxapp_header.tmpl' -%] [% USE CPList -%] [% IF data.hasroot %] [% INCLUDE _cluster_masquerade.tmpl %] [% END %]
[% locale.maketext('“[_1]” DNS Remote Configuration.', data.config.name) FILTER html %]
[% FOR config = data.config.options %] [% IF config.type == 'text' %] [% ELSIF config.type == 'binary' %] [% IF data.is_edit; IF data.server.exists(config.name); is_checked = data.server.${config.name}; ELSE; # If the option isn't in the config, it is an action. # Actions during edits should default to unchecked. is_checked = 0; END; ELSE; is_checked = config.default; END; %] [% ELSIF config.type == 'radio' %] [% ELSIF config.type == 'bigtext' %] [% ELSIF config.type == 'ip' %] [% END -%] [% END # End main loop -%]
   
: [% IF data.module == 'cPanel' && config.name == 'host' %] Generate a remote API token [% END %]
[% config.locale_text FILTER html %]:
[% SET set_value = data.server.${config.name} || config.default; #Unsure of a way to make Template Toolkit do grep with \Q\E regexes IF !set_value || !config.options.ofeach('value').grep("^$set_value$").size; set_value = config.options.0.value; END; -%] [% FOR option = config.options %] [% SET is_checked = option.value == set_value -%]
[% END # End foreach in radio options generations %]
:

[% config.locale_text FILTER html %]
:
[% PROCESS _dnsroles_explained.tmpl %]


    [% locale.maketext('Cancel') %]
[% END %]