Commit Graph

1202 Commits

Author SHA1 Message Date
Jared Tabor
d410e1aa2c Survey maker
changed the way that question data is gathered from the question form. Instead of looping through I explicitly set the varaibles needed for the particular question
2014-12-15 13:25:03 -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
651dd1239a Survey maker variable name checking
Generalized the directive for the variable name of survey maker to check for illegal characters for a javascript object
2014-12-15 11:27:58 -05:00
Jared Tabor
312c76788d Copy JT
Cleared the value of the copy JT form of any stale text
2014-12-15 10:14:51 -05:00
Jared Tabor
c0f4f7185b Projects/add
With fixes to the manual scm type, if the local path returns no playbooks then an error message should be shown.
2014-12-12 11:46:07 -05:00
Jared Tabor
696e356fd1 Changed labels for survey maker min/max
For text and textarea questions, i changed the labels from 'Minimum' and 'Maximum' to 'Minimum Length' and 'Maximum Length'
2014-12-12 10:23:04 -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
eb51600790 Hiding 'relaunch' icon for system jobs
hiding the relaunch icon for queued jobs, running jobs, and the dashboard view of jobs
2014-12-11 14:56:10 -05:00
Jared Tabor
f41a6f22bf Hide 'relaunch' icon for system jobs
system jobs don't have a relaunch resource, therefore we don't want the user thinking that they can relaunch these jobs.
2014-12-11 14:48:44 -05:00
Jared Tabor
1c1aa1f807 Add custom inventory script to activity streams
added custom inventory script filtering on the activity stream widget
2014-12-11 13:35:10 -05:00
Jared Tabor
acf7e83843 delete Job Template
added the div for styling of the delete job template prompt
2014-12-11 12:04:12 -05:00
Jared Tabor
2688f2c3cc Survey cancel button
Need to clean up lingering question object if cancel is pressed on the survey maker modal
2014-12-11 11:44:19 -05:00
Jared Tabor
7510714386 ToJSON fix
Expanded the list of things the ToJSON method can accept
2014-12-11 11:24:08 -05:00
Jared Tabor
b70464dfeb Job template form add mode, can_edit = true
had to include can_edit = true for creating a job template so that button would be enabled when form is valid
2014-12-10 16:22:09 -05:00
Jared Tabor
e668280d67 Permissions type text change
On the permissions page for "Job Template" type, the explanation text at the bottom needed to be updated from the 'deploy' verbage to the 'job template' verbage
2014-12-10 16:09:53 -05:00
Jared Tabor
646bcd407f Job Detail events scrolling defect fix
On the events view of the job detail page, when the list of hosts if very long, and an api call is made to get more host events, the host edit modal was using the hostname instead of the host id number to make a call to the job events endpoint
2014-12-10 15:18:16 -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
1268fb6191 Permissions form-type label
Changed the label for 'Deploy' from 'Deployment' to 'Job Template'
2014-12-10 12:07:23 -05:00
Jared Tabor
1641122737 Disable survey if 'can_edit' is false
The user should not be able to edit a survey if they do not have permission to edit the job template. I've added a check if the mode is 'edit' to see if the can_edit flag is false.
2014-12-10 11:53:05 -05:00
Jared Tabor
f7706c3808 Job Template form 'can_edit'
the 'Save' button should be disabled if the user does not have sufficient permissions to edit the job template
2014-12-10 10:37:09 -05:00
Jared Tabor
f121228d1a Project playbooks save issue
Fixed defect with project directory not saving for a manual project. Checked for creating/editing a project
2014-12-10 09:22:19 -05:00
Jared Tabor
b5e521a759 Survey maker
There was a discrepency between save states in the survey maker when creating a new job template. I had to make some changes to how we 'save' survey's when creating job templates. Now survey info is stored in a seperate object and then stored in the scope when the user clicks save. It used to all be stored in teh scope object.
2014-12-09 16:26:04 -05:00
Jared Tabor
5d6137c8a3 Add new inventory--empty source vars
The source variable parsing was out of date, and wasn't using the updated parser that I fixed to accept empty variables.
2014-12-08 16:41:23 -05:00
Jared Tabor
e10167ee5a Job Detail -- Events Summary
the edit icon for the host events was not receiving the correct host id during the processing of job_event data from the job_event endpoint
2014-12-08 16:16:39 -05:00
Jared Tabor
5daeed14c7 Inventory source tab fix for vmware inventory
Fixed an error with the vmware sourve variables not properly being instatiated once data is returned from the API
2014-12-08 14:17:28 -05:00
Jared Tabor
9f6230f7cc Portal job templates default sort by
Added 'noLink' option to the list view for the portal job templates, so that the list has a default sort-by option but does not contain links to other pages.
2014-12-08 13:34:50 -05:00
Jared Tabor
6d45dbbeb4 Default sort by w/ no link
set key and noLink to true, which will force the list to have a default sort-by, but will not force the list to contain any links
2014-12-08 13:33:35 -05:00
Jared Tabor
8e28c73623 made organization required on custom inv script
the organization field of the custom inv script modal needed to have the astericks to indicate that it is required.
2014-12-08 12:52:07 -05:00
Jared Tabor
9e8ec0ebd0 Host events variable parsing to prevent tag inject
The host events modal needs to have escape characters for tag elements in case a user tries to inject html code into the arguements of the host events.
2014-12-08 12:28:38 -05:00
Jared Tabor
fd86b940e2 Prevent html injection in host events
replaced '<' and '>' characters with their escape characters to prevent html from being rendered onto the view.
2014-12-08 11:11:50 -05:00
Jared Tabor
1ffca45c4a Remove open modals when logging in
If the session times out, and the user attempts to open a modal dialog, then it must be closed due to the fact that bootstrap modals do not work with more than one modal open. The login modal is a bootstrap modal so all other modals need to be closed when it is shown.
2014-12-05 14:31:45 -05:00
Jared Tabor
9c80dba4a2 Survey maker type change fix
Made all custom fields set to pristine state when the user changes the question type
2014-12-05 12:21:09 -05:00
Jared Tabor
4a0afd97b0 Added org column to custom inv scripts list
I added the organization column to the custom inventory scripts list on the scripts modal
2014-12-05 11:32:28 -05:00
Jared Tabor
5eb4b59745 Projects form -> edit / SCM fix
The manual scm option was not showing up when editing an existing project
2014-12-05 11:06:34 -05:00
Jared Tabor
b4be8f7d49 Project SCM type drop down fix
The SCM type for the projects page was broken when we sorted the drop down options by value. There was no value for 'manual' projects. I had to insert the word 'manual' where it was expecting a blank sting and then remove the word manual before saving the job template to the API
2014-12-04 15:56:35 -05:00
Jared Tabor
c05d746d73 Fixed empty Extra Variable JSON parsing issue
if the user saved a job template with empty extra variables and the Parse as option as JSON, then the UI crapped out. I added a check to make sure the default string is '{}' if the user submits an empty field.
2014-12-04 12:01:05 -05:00
Jared Tabor
d9e69fc2c3 Fixed JT form Reset button
Had to make a small repair to Job Template form reset that was caused when i refactored the code to fill the form
2014-12-04 10:49:50 -05:00
Jared Tabor
ce879f58d8 Added Organization lookup to custom inv script
The custom inventory script form needed to have an organization associated with it, so I added a lookup to the form and made sure this was incorporated with the Reset functionality
2014-12-04 10:29:13 -05:00
Jared Tabor
f893e4b00b Fixed small issue with JT form vars
A '$' got deleted somewhere along the line
2014-12-03 16:34:23 -05:00
Jared Tabor
c095ebcbfb Tooltip fix for vmware vars
on the source panel for vmware extra vars, had to change the wording of the tooltip
2014-12-03 15:40:17 -05:00
Jared Tabor
9a90277e5e Environment Variables for VMWare inv source
added the yaml/json parser for VMWare inventory sources
2014-12-03 15:04:17 -05:00
Jared Tabor
8a2a829bac Fixed reset on custom inv form
Instead of clearing the form we reset it to the values in the API
2014-12-03 11:11:04 -05:00
Chris Church
987fd4b3e0 Add name as default sort field for portal job templates. Fixes https://trello.com/c/AIZfaLVC 2014-12-03 00:52:01 -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
e9e2c1f6ab awSurveyVariableName directive
created a new directive to check the variable name field for spaces. this could be expanded for future use if we want to check against other constraints. checked with matt though and he said space checking shoudl suffice
2014-12-02 12:45:31 -05:00
Jared Tabor
c96b317202 Launch job from job template form
added a check that there is a valid survey if survey_enabled === true on the JT form
2014-12-02 10:06:57 -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
a7066443f0 Fixed wording for custom inventory scripts
Fixed the label on the source panel and on the lookup modal
2014-12-01 20:38:59 -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