mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 22:18:01 -03:30
generalize secret textarea hint
This commit is contained in:
parent
cb238c1f24
commit
956f588fd8
@ -26,18 +26,19 @@ aim_inputs = {
|
||||
'type': 'string',
|
||||
'secret': True,
|
||||
'multiline': True,
|
||||
'format': 'ssh_private_key',
|
||||
}, {
|
||||
'id': 'client_cert',
|
||||
'label': _('Client Cert'),
|
||||
'label': _('Client Certificate'),
|
||||
'type': 'string',
|
||||
'secret': True,
|
||||
'multiline': True,
|
||||
'format': 'ssh_private_key',
|
||||
}, {
|
||||
'id': 'verify',
|
||||
'type': 'boolean',
|
||||
'default': True,
|
||||
'label': _('Verify'),
|
||||
'help_text': _('Verify SSL certificates for HTTPS requests'),
|
||||
'label': _('Verify SSL Certificates'),
|
||||
}],
|
||||
'metadata': [{
|
||||
'id': 'safe',
|
||||
|
||||
@ -40,7 +40,7 @@ function ComponentsStrings (BaseString) {
|
||||
};
|
||||
|
||||
ns.textarea = {
|
||||
SSH_KEY_HINT: t.s('HINT: Drag and drop an SSH private key file on the field below.')
|
||||
SSH_KEY_HINT: t.s('HINT: Drag and drop private file on the field below.')
|
||||
};
|
||||
|
||||
ns.lookup = {
|
||||
|
||||
@ -99,6 +99,7 @@ function AtInputGroupController ($scope, $compile) {
|
||||
|
||||
if (input.secret) {
|
||||
config._component = 'at-input-textarea-secret';
|
||||
input.format = 'ssh_private_key';
|
||||
} else {
|
||||
config._component = 'at-input-textarea';
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<div class="col-sm-{{::col}} at-InputContainer">
|
||||
<div class="form-group at-u-flat">
|
||||
<at-input-label></at-input-label>
|
||||
<div ng-class="{ 'input-group': state.tagMode }">
|
||||
<div class="input-group">
|
||||
<div class="input-group-btn at-InputGroup-button input-group-prepend" ng-show="state.tagMode">
|
||||
<button
|
||||
class="btn at-ButtonHollow--white at-Input-button--long-sm"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user