Stacking ssl/tls radio buttons on notification templates form

This commit is contained in:
jaredevantabor 2017-01-20 10:01:02 -08:00
parent 5afa2ab264
commit 857780b0c3
3 changed files with 8 additions and 4 deletions

View File

@ -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'
}]
}
},

View File

@ -23,3 +23,7 @@
vertical-align: middle;
padding-right: 10px;
}
.NotificationsForm-radioButtons{
display:block!important;
}

View File

@ -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\" ";