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