1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Notification form UX Audit cleanup

This commit is contained in:
Jared Tabor 2016-05-06 16:59:51 -04:00
parent fd40135d9d
commit 71ea4cb465
3 changed files with 17 additions and 14 deletions

View File

@ -217,6 +217,7 @@
border-radius: 5px;
border:1px solid @field-border;
color: @field-input-text;
width:100%
}
.ui-spinner-input{

View File

@ -81,7 +81,7 @@ export default
master.notification_type = $scope.notification_type;
CreateSelect2({
element: '#notification_template_notification_typex',
element: '#notification_template_notification_type',
multiple: false
});
NotificationsTypeChange.getDetailFields($scope.notification_type.value).forEach(function(field) {

View File

@ -66,12 +66,7 @@ export default function() {
ngShow: "notification_type.value == 'email' ",
subForm: 'typeSubForm'
},
use_tls: {
label: 'Use TLS',
type: 'checkbox',
ngShow: "notification_type.value == 'email' ",
subForm: 'typeSubForm'
},
host: {
label: 'Host',
type: 'text',
@ -119,12 +114,6 @@ export default function() {
ngShow: "notification_type.value == 'email' || notification_type.value == 'irc' ",
subForm: 'typeSubForm'
},
use_ssl: {
labelBind: 'sslLabel',
type: 'checkbox',
ngShow: "notification_type.value == 'email' || notification_type.value == 'irc' ",
subForm: 'typeSubForm'
},
port: {
labelBind: 'portLabel',
type: 'number',
@ -325,7 +314,8 @@ export default function() {
},
targets: {
label: 'Destination Channels or Users',
type: 'text',
type: 'textarea',
rows: 3,
awPopOver: '<p>Type an option on each line. The pound symbol (#) is not required.</p>'+
'<p>For example:<br>#support or support<br>\n @username or username<br>\n',
dataTitle: 'Destination Channels',
@ -338,6 +328,18 @@ export default function() {
ngShow: "notification_type.value == 'irc' ",
subForm: 'typeSubForm'
},
use_tls: {
label: 'Use TLS',
type: 'checkbox',
ngShow: "notification_type.value == 'email' ",
subForm: 'typeSubForm'
},
use_ssl: {
labelBind: 'sslLabel',
type: 'checkbox',
ngShow: "notification_type.value == 'email' || notification_type.value == 'irc' ",
subForm: 'typeSubForm'
},
},