Commit Graph

95 Commits

Author SHA1 Message Date
Patrick Smith
880d40d5ec Use hidden input to track environment names
Since we're using ally.js for modals, when the modal is open, other
elements are disabled. Since the form is submitted when the "Create"
button is clicked and browsers do not submit disabled form fields, the
form was not submitting environment names when creating a project.

This workaround creates hidden inputs to track the environment names.
Since they're hidden, they are not disabled by ally.js, so the fields
are properly submitted.

This should be the only form affected, since this is the only form
submitted via a modal button.
2018-10-24 16:39:21 -04:00
leigh-mil
ae2c1f8918 Fix from merge conflict 2018-10-23 13:45:04 -04:00
leigh-mil
0dd9ab9684 Move Enviroment error message div to New Project form 2018-10-23 13:43:13 -04:00
leigh-mil
4bd42a7bc0 Remove v-on:submit attribute since form is no longer hooked into Vue 2018-10-23 13:43:13 -04:00
leigh-mil
2455618268 Remove unused imports 2018-10-23 13:43:13 -04:00
leigh-mil
92fc5e6e76 Add in environment section to Edit Project Page 2018-10-23 13:43:13 -04:00
leigh-mil
c5bc10d8c3 Refactory Edit Project Form to simplify and use Edit Project fragment 2018-10-23 13:43:13 -04:00
leigh-mil
6de48837fa Refactor New Project Form to remove conditional logic and include fields relevant to new project 2018-10-23 13:43:13 -04:00
leigh-mil
3040115162 Remove WIP alert 2018-10-23 13:41:20 -04:00
Andrew Croce
8da22f5941 Use buttons rather than links for js-clickable elements
Add some missing attributes for correct behavior/accessibility
2018-10-18 10:00:38 -04:00
Montana
f9d910efd7 Fix new lines 2018-10-16 16:45:13 -04:00
Montana
a50c3d92f9 Style the modal description 2018-10-16 15:41:15 -04:00
Montana
77b88b0b3c Add a description to env roles modal 2018-10-16 14:44:38 -04:00
richard-dds
ad49d3f71f Merge pull request #359 from dod-ccpo/task-order-expiration
Fix report display for task order with no expiration date
2018-10-02 10:11:28 -04:00
richard-dds
fc754250dd Check that remaining_days is not None 2018-10-01 16:17:38 -04:00
andrewdds
df6a0527c3 Merge pull request #355 from dod-ccpo/ui/ie-fixes
IE fixes
2018-10-01 14:56:38 -04:00
richard-dds
1750c268f7 Fix report display for task order with no expiration date 2018-10-01 13:32:01 -04:00
montana-mil
388ff899a2 Merge pull request #343 from dod-ccpo/more-tests-for-workspaces
Add more tests for workspaces routes
2018-10-01 13:23:47 -04:00
Patrick Smith
4577a37bad Hide edit project link for users that cannot edit projects 2018-09-30 22:23:52 -04:00
Montana
927741eb73 Add a warning on edit project page 2018-09-28 10:05:20 -04:00
Andrew Croce
c88f2a1a56 add missing fallback meter 2018-09-27 11:46:42 -04:00
Jason Garber - Ctr
50dc4acfa5 Grammar fix to 'no projects' message
Just some capitalization and compound word fixes.
2018-09-26 13:56:28 -04:00
Patrick Smith
648964dc1e Hook up the "Add Environment Access" link when adding a member 2018-09-25 16:44:40 -04:00
richard-dds
51bc6fb950 Give members/index Environments column a right alignment 2018-09-25 14:14:01 -04:00
dandds
d0c1bc563f Merge pull request #328 from dod-ccpo/workspace-empty-state-#160732667
Empty state for workspace reports should show existing projects
2018-09-25 13:39:23 -04:00
dandds
3c7b5a083d always display at least current month on reports select menu 2018-09-25 13:20:15 -04:00
Montana
6986213780 Cancel button redirects to members view page 2018-09-25 12:03:54 -04:00
Montana
e17ede4514 No destructuring in IE10 2018-09-25 11:13:24 -04:00
Montana
8fd1d93f2e Prevent saving environment roles as empty strings 2018-09-25 11:13:24 -04:00
Montana
83c4483c42 Pass environment role choices directly from the view to the template instead of via the form 2018-09-25 11:13:24 -04:00
Montana
e12c1f42db Move environment role method into domain 2018-09-25 11:13:24 -04:00
Montana
6d50c228af Fix bug that would save a user's modal selection even if the user canceled out of the modal 2018-09-25 11:13:24 -04:00
Montana
a8b777acda Infer if the user has no environment role 2018-09-25 11:13:23 -04:00
Montana
43a91e8c22 Display the environment role nicely 2018-09-25 11:13:23 -04:00
Montana
a1cf4335ce Use Vue to get label class dynamically 2018-09-25 11:13:23 -04:00
Montana
b973d3cf45 Clear the changed environment display if the user cancels out of modal 2018-09-25 11:13:23 -04:00
Montana
bf605d1ce6 Vue function to display the environment role in a friendlier format 2018-09-25 11:13:23 -04:00
Montana
bead1990c9 Let input value be simple 2018-09-25 11:13:23 -04:00
Montana
32d04bfce4 Make environment role display dynamic 2018-09-25 11:13:23 -04:00
Montana
f4c379ea25 Use modal inputs to pass environment id and env role to route 2018-09-25 11:13:23 -04:00
Montana
c0bb9e1024 Modal for each environment role 2018-09-25 11:13:22 -04:00
Montana
5a5d81eb7f Update the template to show real data 2018-09-25 11:13:22 -04:00
Montana
79c357dcab Write query to change the environment role based on mock data 2018-09-25 11:13:22 -04:00
Montana
c3da34e7cb Capture environment role from modal 2018-09-25 11:13:22 -04:00
Montana
3c9243686a Don't use Vue for the environment roles modal 2018-09-25 11:13:22 -04:00
Montana
19a8078bb2 working commit 2018-09-25 11:13:22 -04:00
Montana
5b973ab1e4 Fix selection on modal, fix a typo 2018-09-25 11:13:22 -04:00
andrewdds
2bbb859ad8 Merge pull request #327 from dod-ccpo/dummy-help-page
Dummy help page
2018-09-25 11:08:56 -04:00
richard-dds
daa41609e1 Merge pull request #324 from dod-ccpo/fix-members-list-screen
Use proper display name for workspace roles
2018-09-25 10:12:57 -04:00
Andrew Croce
93ae48ea83 use url_for 2018-09-25 09:45:34 -04:00