Commit Graph

123 Commits

Author SHA1 Message Date
John Mitchell
4bdab2d2fa adhoc form fixes
added forks input
fixed privilege escalation language, it now mimics job template
fixed a hanging issue when a non-machine credential is used
fixed reset to include the default verbosity setting
2015-04-27 10:13:57 -04:00
Jared Tabor
1d20ddc227 adding comments for job submission 2015-04-07 18:14:38 -04:00
Jared Tabor
d5389cc15d refactoring password gathering in job submission 2015-04-07 16:56:31 -04:00
Jared Tabor
eb5e10aa5c adding 'become' privilege escalation on cred
and on job template adding a flag for enabling 'become' escalation.
2015-04-07 15:11:51 -04:00
Jared Tabor
1b9c050dc8 adding pbrun radio option and input fields 2015-04-07 11:24:00 -04:00
John Mitchell
584abcc05b random syntax and style fixes to tower js
may include some new dependencies needed for adhoc commands
2015-04-06 10:30:36 -04:00
Jared Tabor
2883a70cba adding launch button for scan jobs
on inventory properties page. I also adjusted the indentation on the job submission page so that it was completly crazy.
2015-03-26 09:58:40 -04:00
Jared Tabor
db8eed2ae5 Job submission for optional survey questions
Make sure optional multiselect and multiplechoice answers are ignored if not answered
2015-02-19 12:59:09 -05:00
Jared Tabor
ea8a537906 Job Submission extra vars
When submitting a job to launch, the UI will collect extra_vars from the the JT. However with a recent change to make extra_vars include comments, the UI no longer receives the JT extra vars as a JSON obj, but rather as a yaml-unparsed string. So I am changing the way we parse these JT-extra_vars from 'json' to 'yaml' since we no longer expect to recieve a json-ified extra var object.
2015-02-19 12:58:41 -05:00
Jared Tabor
dda00e98f5 Fixing job submission for textarea
if textarea min is set to 0 and the question is optional, then the UI will pass the API and empty string to the job launch endpoint
2015-02-17 16:09:14 -05:00
Jared Tabor
f46a34e079 Adding Password option for survey's
I'm adding the UI side of the password option for surveys, which should show up in the job summary as a masked string.
2015-02-13 14:00:00 -05:00
John Mitchell
d01ae1af6a full commit of fixes to the survey by jared 2015-02-10 10:47:31 -05:00
Joe Fiorini
a9e0de98d7 Use broccoli to build app 2015-02-06 12:49:04 -05:00
Joe Fiorini
f4350f4a28 Kill strict mode in favor of doing it once 2015-02-06 12:47:39 -05:00
jlmitch5
fbf0ebf4d9 Merge pull request #55 from ansible/popover_disable
Fixed popOver bug
2015-02-04 14:44:04 -05:00
John Mitchell
cef0d0bb00 removed bottom right pop-over directions. 2015-02-04 14:30:32 -05:00
Joe Fiorini
4775523764 Updates jshint settings 2015-01-30 15:43:22 -05:00
John Mitchell
5ad2f3e330 Final pass of making errors nicer 2015-01-29 21:07:12 -05:00
John Mitchell
53db7b7224 Making error messages nicer, first pass 2015-01-29 19:47:12 -05:00
Bill Nottingham
3df996f999 Fix assorted UI error messages to reference the correct REST requests.
Noticed when James commented on one specific posted error that it shouldn't be doing a PUT instead of a POST; turns out the error was just copy/pasted wrong.
2015-01-19 10:56:10 -05:00
Jared Tabor
b7a85f7f3c Job submission
had to adjust the job submission to correctly pass empty strings for extra vars and for survey questions
2015-01-07 10:49:58 -05:00
Jared Tabor
6fccee404a Job Submission
The job submission should NOT send an empty extra_vars dict if no extra variable are collected as a result of the job submission prompts. I was under the impression that an empty extra vars dict would be disregarded. An empty extra_vars dict will in fact overwrite any extra_vars in the JT with a blank set of extra_vars
2015-01-05 18:27:35 -05:00
Jared Tabor
05ff0a14a4 Job submission
if survey is enabled and not prompting for extra vars then get the extra vars from the job template
2014-12-19 12:05:09 -05:00
Jared Tabor
50372f9c38 Prompt for credentials
fixed prompt for credentials so that ssh and ssh key unlock were both accounted for
2014-12-18 10:52:53 -05:00
Jared Tabor
318da8522f Passing vars to API via extra_vars in job launch
We changed this at one point to have all vars passed on the root level, but for uniformity we have changed it back to using the extra_vars object
2014-12-17 17:29:43 -05:00
Jared Tabor
e5ba0ce8bc Survey maker/taker issue with int/floats = 0
fixed a defect with the survey maker/taker where floats/ints equal to zero weren't being displayed the entire way through
2014-12-15 13:24:51 -05:00
Jared Tabor
c2c47328df Survey taker float required error field
adding the div for the float required error field
2014-12-11 16:01:26 -05:00
Jared Tabor
7b9a6a4bb8 float's weren't required for survey taker
accidentally goofed up the expression for ng-required for floats on survey maker.
2014-12-11 15:43:50 -05:00
Jared Tabor
ec132ae151 Survey maker/taker html tag injection
Fixed a defect in which the user could inject html tags into the survey maker, which could in turn show up in survey taker.
2014-12-10 14:05:29 -05:00
Jared Tabor
f99a73fb85 text/textarea min/max length
added fields on survey maker for text/textarea min/max length. on survey taker added the error handling for these.
2014-12-02 14:01:34 -05:00
Jared Tabor
e14630b155 renamed ngmin/ngmax
renamed to awmin/awmax to match custom directive format. the prefix 'ng' is meant to imply an 'angular' specific directive
2014-12-01 22:52:55 -05:00
Jared Tabor
a319def4b4 ngMin/ngMax directives fix for surveys
the ngMin and ngMax directives needed to be re-written to work properly with other directives. They weren't playing nice with other directives' values
2014-12-01 12:39:39 -05:00
Jared Tabor
cfbec378c3 Survey Maker
on typeChange of survey question, clear out the values of any downstream components
2014-11-26 14:26:07 -05:00
Jared Tabor
86c717bca3 Job submission
changed the 'credential' to 'credential_id' on the POST to the job launch endpoint, per request from Matt
2014-11-26 13:19:13 -05:00
Jared Tabor
b94e0711c5 Host events
added check in host event call to make sure an empty data set is not returend from the API
2014-11-25 15:11:49 -05:00
Jared Tabor
045592e1eb Launch configuration/survey taker
Fixed issue with optional text/textarea/mc questions being required
2014-11-25 08:33:55 -05:00
Jared Tabor
c4bdf0d936 Job submission
Fixed some new errors that emerged as a result of adding the prompt for credentials back in and fixing the html generation of code mirror editor for job variables.
2014-11-24 15:54:35 -05:00
Jared Tabor
fd5483bbab Job Submission code mirror
added code mirror to the job submission modal window. still need to investigate the issue when launching a job on the job template form, when two code mirror editor instances are visible.
2014-11-18 09:03:15 -05:00
Jared Tabor
609938b916 Job Submission: prompt for credential
Added the prompt for credential during job submission if credentials_needed_to_start === true
2014-11-14 13:41:44 -05:00
Jared Tabor
dfeaea0148 Configure Tower
adding changes to app and index for configure tower files. also included are updates to the scheduler widget for system jobs
2014-11-13 11:29:42 -05:00
Jared Tabor
6a08738071 JobSubmission cleanup
added some cleanup to old code in JobSubmission
2014-11-13 11:20:39 -05:00
Jared Tabor
fd8908f7dc Job Submission cleanup
removed some commented code from the fix for the job submission from yesterday
2014-11-06 14:28:18 -05:00
Jared Tabor
ae55f1c0d3 Websockets live updating portal mode
fixed issue with websockets not updating view in portal mode
2014-11-05 13:09:00 -05:00
Jared Tabor
dc3dd0db26 JobSubmission - remove ng-keydown
removed ng-keydown that would submit the prompt for passwords modal that no longer exists
2014-11-04 09:51:44 -05:00
Jared Tabor
bf6b201bf5 Extra Variable parsing on job launch
the extra_vars didn't need the key 'extra_vars' when posting to the API. i also cleaned up some hint errors from matt
2014-10-31 16:17:11 -04:00
Jared Tabor
b6575d776c JSHint
fixed some jshint errors for extra_vars fix from earlier. also changed the launch configuration modal button to 'Launch' instead of continue
2014-10-31 15:26:49 -04:00
Jared Tabor
213f6d2af1 /lib/Socket.js removed disconnect code
Removing some code for attempting to disconnect a socket. we found a work around from this and are no longer using this
2014-10-30 15:36:27 -04:00
Jared Tabor
012a83d37f adding 'surveyCheckboxes' directive
the surveyCheckboxes directive takes a list of checkbox values and creates a checkbox list that collectively represents one scope object instead of several individual ones
2014-10-21 15:47:52 -04:00
Jared Tabor
0113e63374 fixed small error in job submission
added a check for 'passwords needed to start' in job launch function to fix inventory updates/sync updates
2014-10-20 11:50:56 -04:00
Jared Tabor
473cc1ffa4 fixed the styling on the job launch modal
the input fields were not uniform throughout the modal window. i also started a fix for the multiselect problem i'm having with angular validation
2014-10-17 17:06:01 -04:00