mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Stacking ssl/tls radio buttons on notification templates form
This commit is contained in:
parent
5afa2ab264
commit
857780b0c3
@ -393,18 +393,17 @@ export default ['i18n', function(i18n) {
|
||||
type: 'radio_group',
|
||||
subForm: 'typeSubForm',
|
||||
ngShow: "notification_type.value == 'email'",
|
||||
class: 'squeeze',
|
||||
ngChange: "emailOptionsChange()",
|
||||
options: [{
|
||||
value: 'use_tls',
|
||||
label: 'Use TLS',
|
||||
ngShow: "notification_type.value == 'email' ",
|
||||
labelClass: 'checkbox-options stack-inline'
|
||||
labelClass: 'NotificationsForm-radioButtons'
|
||||
}, {
|
||||
value: 'use_ssl',
|
||||
label: 'Use SSL',
|
||||
ngShow: "notification_type.value == 'email'",
|
||||
labelClass: 'checkbox-options stack-inline'
|
||||
labelClass: 'NotificationsForm-radioButtons'
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
||||
@ -23,3 +23,7 @@
|
||||
vertical-align: middle;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.NotificationsForm-radioButtons{
|
||||
display:block!important;
|
||||
}
|
||||
|
||||
@ -1264,7 +1264,8 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
html += ">\n";
|
||||
|
||||
for (i = 0; i < field.options.length; i++) {
|
||||
html += "<label class=\"radio-inline\" ";
|
||||
html += "<label class=\"radio-inline ";
|
||||
html += (field.options[i].labelClass) ? ` ${field.options[i].labelClass} "` : "\"";
|
||||
html += (field.options[i].ngShow) ? this.attr(field.options[i], 'ngShow') : "";
|
||||
html += ">";
|
||||
html += "<input type=\"radio\" ";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user