mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 19:50:05 -03:30
Notification form UX Audit cleanup
This commit is contained in:
@@ -217,6 +217,7 @@
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border:1px solid @field-border;
|
border:1px solid @field-border;
|
||||||
color: @field-input-text;
|
color: @field-input-text;
|
||||||
|
width:100%
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui-spinner-input{
|
.ui-spinner-input{
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export default
|
|||||||
|
|
||||||
master.notification_type = $scope.notification_type;
|
master.notification_type = $scope.notification_type;
|
||||||
CreateSelect2({
|
CreateSelect2({
|
||||||
element: '#notification_template_notification_typex',
|
element: '#notification_template_notification_type',
|
||||||
multiple: false
|
multiple: false
|
||||||
});
|
});
|
||||||
NotificationsTypeChange.getDetailFields($scope.notification_type.value).forEach(function(field) {
|
NotificationsTypeChange.getDetailFields($scope.notification_type.value).forEach(function(field) {
|
||||||
|
|||||||
@@ -66,12 +66,7 @@ export default function() {
|
|||||||
ngShow: "notification_type.value == 'email' ",
|
ngShow: "notification_type.value == 'email' ",
|
||||||
subForm: 'typeSubForm'
|
subForm: 'typeSubForm'
|
||||||
},
|
},
|
||||||
use_tls: {
|
|
||||||
label: 'Use TLS',
|
|
||||||
type: 'checkbox',
|
|
||||||
ngShow: "notification_type.value == 'email' ",
|
|
||||||
subForm: 'typeSubForm'
|
|
||||||
},
|
|
||||||
host: {
|
host: {
|
||||||
label: 'Host',
|
label: 'Host',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
@@ -119,12 +114,6 @@ export default function() {
|
|||||||
ngShow: "notification_type.value == 'email' || notification_type.value == 'irc' ",
|
ngShow: "notification_type.value == 'email' || notification_type.value == 'irc' ",
|
||||||
subForm: 'typeSubForm'
|
subForm: 'typeSubForm'
|
||||||
},
|
},
|
||||||
use_ssl: {
|
|
||||||
labelBind: 'sslLabel',
|
|
||||||
type: 'checkbox',
|
|
||||||
ngShow: "notification_type.value == 'email' || notification_type.value == 'irc' ",
|
|
||||||
subForm: 'typeSubForm'
|
|
||||||
},
|
|
||||||
port: {
|
port: {
|
||||||
labelBind: 'portLabel',
|
labelBind: 'portLabel',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
@@ -325,7 +314,8 @@ export default function() {
|
|||||||
},
|
},
|
||||||
targets: {
|
targets: {
|
||||||
label: 'Destination Channels or Users',
|
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>'+
|
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',
|
'<p>For example:<br>#support or support<br>\n @username or username<br>\n',
|
||||||
dataTitle: 'Destination Channels',
|
dataTitle: 'Destination Channels',
|
||||||
@@ -338,6 +328,18 @@ export default function() {
|
|||||||
ngShow: "notification_type.value == 'irc' ",
|
ngShow: "notification_type.value == 'irc' ",
|
||||||
subForm: 'typeSubForm'
|
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'
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user