From 33c470ebc54ecd8291cf6ee424c368ba4444db71 Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 30 Aug 2017 15:30:50 -0400 Subject: [PATCH] Removed prepend-asterisk in favor of an injected span --- awx/ui/client/legacy-styles/ansible-ui.less | 8 +-- .../inventory-scripts.form.js | 5 +- .../prompt-for-passwords.factory.js | 10 ++- .../job-submission.partial.html | 21 ++++-- .../client/src/license/license.partial.html | 9 ++- .../src/partials/survey-maker-modal.html | 3 +- awx/ui/client/src/shared/directives.js | 72 ++++++++++--------- awx/ui/client/src/shared/form-generator.js | 8 ++- .../job_templates/job-template.form.js | 10 +-- .../src/users/add/users-add.controller.js | 3 +- awx/ui/client/src/users/users.form.js | 12 ++-- 11 files changed, 87 insertions(+), 74 deletions(-) diff --git a/awx/ui/client/legacy-styles/ansible-ui.less b/awx/ui/client/legacy-styles/ansible-ui.less index b60dae51e5..cd0db22747 100644 --- a/awx/ui/client/legacy-styles/ansible-ui.less +++ b/awx/ui/client/legacy-styles/ansible-ui.less @@ -342,14 +342,8 @@ textarea.allowresize { } } -.prepend-asterisk:before { - content: "\002A\00A0"; +.foobar { color: @red; - margin-right: -5px; -} - -.prepend-asterisk.user-password:before { - margin-right: 0; } .subtitle { diff --git a/awx/ui/client/src/inventory-scripts/inventory-scripts.form.js b/awx/ui/client/src/inventory-scripts/inventory-scripts.form.js index f7f1b581d5..0dbf97a0ba 100644 --- a/awx/ui/client/src/inventory-scripts/inventory-scripts.form.js +++ b/awx/ui/client/src/inventory-scripts/inventory-scripts.form.js @@ -41,10 +41,7 @@ export default ['i18n', function(i18n) { type: 'lookup', list: 'OrganizationList', basePath: 'organizations', - awRequiredWhen: { - reqExpression: "orgrequired", - init: true - }, + required: true, sourceModel: 'organization', sourceField: 'name', ngDisabled: '!(inventory_script_obj.summary_fields.user_capabilities.edit || canAdd)' diff --git a/awx/ui/client/src/job-submission/job-submission-factories/prompt-for-passwords.factory.js b/awx/ui/client/src/job-submission/job-submission-factories/prompt-for-passwords.factory.js index 7efc827919..05ef967b84 100644 --- a/awx/ui/client/src/job-submission/job-submission-factories/prompt-for-passwords.factory.js +++ b/awx/ui/client/src/job-submission/job-submission-factories/prompt-for-passwords.factory.js @@ -17,8 +17,11 @@ export default field = form.fields[password]; fld = password; scope[fld] = ''; - html += "
\n"; - html += "\n"; + html += "
\n"; + html += "\n"; html += "\n"; + html += "
\n"; html += "\n"; + html += '*'; html += "Launching this job requires the passwords listed below. Enter and confirm each password before continuing.
-