387 Commits

Author SHA1 Message Date
leigh-mil
c5e31975e2 Fix inputs in member modal forms 2020-02-19 11:42:03 -05:00
leigh-mil
40be760fa0 Update optional tag 2020-02-17 14:50:57 -05:00
leigh-mil
4634477179 Enable reuploading files after an error 2020-02-12 13:36:51 -05:00
leigh-mil
e4e6c4d277 Add DoD ID tooltip to app member and portfolio member forms 2020-02-11 14:01:25 -05:00
leigh-mil
fbd4c890f3 Default to opening TO accordions with task orders on the TO index page 2020-02-10 11:48:15 -05:00
leigh-mil
644d86582e Save Attachment object_name when uploading PDFs in the TO builder 2020-02-06 17:34:56 -05:00
leigh-mil
745ce713b0 Hard code TO upload description into the UploadInput Macro
This is a temporary fix to avoid spending too much time trying to use app.config variables in a Form class field descriptions and labels. This is tech debt and should be fixed in the future.
2020-01-31 12:08:48 -05:00
leigh-mil
dff9924c95 Make file size limit configurable 2020-01-31 11:59:07 -05:00
leigh-mil
78e5fbf7b5
Merge branch 'staging' into empty-states 2020-01-27 13:23:14 -05:00
leigh-mil
7857fffc1c Add alert for when portfolio isn't funded, Update styling for env pending label 2020-01-24 14:09:59 -05:00
leigh-mil
e6291ad850 Refactor EmptyState macro and update styling for view only empty state based on new designs 2020-01-24 11:02:03 -05:00
leigh-mil
1054457048 Button for adding a subscription 2020-01-23 16:44:07 -05:00
graham-dds
3cf9fdac76 Add frontend validation for TextInput()s
- Add input validation regexes to input_validations.js
- Add those validators to text fields without validaiton
2020-01-22 15:20:18 -05:00
leigh-mil
961717e0e7 Update copy in TO builder 2020-01-21 11:57:10 -05:00
leigh-mil
5ba22d82e3 Move toggle menu into its own macro.
Use ToggleMenu macro in application team table.
2020-01-17 10:49:05 -05:00
graham-dds
c9c33ac978 Use v-text for alerts 2020-01-16 14:18:00 -05:00
graham-dds
477afbe075 use v-text for Vue validaitonError s 2020-01-16 14:18:00 -05:00
dandds
5213657b0f Additional validation and escaping for file names.
This adds additional front and backend validations for task order file
names. We are now restricting file names to a whitelist regex of
[A-Za-z0-9\-_ \.] for simplicity.

Note:
On the frontend, the filename string must have at least one character.
This is not true in the backend validation; because of the way the
entire task order form is validated, requiring input would break the
business logic currently implemented.
2020-01-15 09:17:03 -05:00
graham-dds
ffd3dd2d9d use v-text instead of v-html
v-html interprets the string passed to it as raw html, without escaping.
We should use v-text wherever possible.
2020-01-14 16:19:27 -05:00
leigh-mil
da398bf1ff Add status labels to portfolio managers table.
Update PortfolioRole.display_status() to return same type of data as
ApplicationRole.display_status().
2020-01-10 10:25:55 -05:00
leigh-mil
abfe8663a1 Update copy in perms form 2020-01-10 10:25:55 -05:00
leigh-mil
c9d0c64c1f Fix and generalize styling for member form macro
Only display permissions with 'Edit' value
Delete unused files and rename MemberForm macro file
2020-01-10 10:25:55 -05:00
leigh-mil
79b2773852 Portfolio manager invite updates:
- Update the form to use BooleanFields for the permissions and make the
form more similar to the Application Members form
- Use MemberFormTemplate macro in the portfolio settings template
- fix tests affected by the form changes
2020-01-10 10:25:55 -05:00
leigh-mil
6e50a8cc1f Generalize macro for adding new member to an application or portfolio 2020-01-10 10:25:55 -05:00
graham-dds
cdd4a4eee1 Tidy sidenav 2020-01-06 14:51:52 -05:00
leigh-mil
8ece47627e Initial styling and layout of TO view fragment 2020-01-02 12:45:52 -05:00
leigh-mil
fc1b530e70 Use kwargs in TOFormStepHeader to fix issue of swapped titles and descriptions 2019-12-26 15:55:25 -05:00
leigh-mil
8fbb0e99ae Fix side nav to match designs and delete unused html and css 2019-12-18 16:55:25 -05:00
graham-dds
80f028540c Refactor multi_checkbox_input
This component was made when having an "other" value as a check option
also meant typing in a custom value into an input field. Since this is no
longer needed, we were able to remove the markup / vue code for that
feature.
2019-12-13 13:17:30 -05:00
leigh-mil
e772a4b84b Use AccordionList macro on applications index page, remove duped class on task order index page 2019-12-12 09:40:18 -05:00
leigh-mil
e79b1d1524 Create AccordionList macro and vue component to collapse multiple accordion components 2019-12-12 09:40:18 -05:00
leigh-mil
78e7b1efe8 Styling changes:
- move `usa-accordion` class to wrap all accordion elements
- remove background color form `accordion` class and move it to atat
specific class `accordion__header`
- create class names for styling elements instead of relying on element
type
2019-12-11 10:07:09 -05:00
leigh-mil
7671269b7f Use Accordion macro on applications index page 2019-12-11 10:07:09 -05:00
leigh-mil
1165b60fce Finalize styling for Task Order index page. 2019-12-11 10:07:09 -05:00
leigh-mil
8e25adb1c3 Update EmptyState macro to align with new designs 2019-12-03 15:43:06 -05:00
graham-dds
4e0af139cc Style and refactor components for expired funding
- modify Accordion component to be able to customize classes and tags
that it uses to build markup
- modify the shape of the object that the mock CSP returns for data that
builds this section.
 - Also ensures that the CLINs TOs and CLINS are sorted
- add appropriate css for styling
2019-11-27 15:52:48 -05:00
graham-dds
eac41d140c Add kwarg to tooltip macro to allow extra classes 2019-11-26 16:17:35 -05:00
graham-dds
51f1261db0 Order CLINs on reporting page and refactor labels
In order to more easily sort JEDI Clins for the obligated funds section,
the JEDI CLIN enum values were used in the output dict instead of their
verbose labels. And in order to bring the labels in line with designs,
the JEDI CLIN labels were DRYed up in the translations file, which
required making small changes in a few other places across the project.
2019-11-26 16:17:22 -05:00
graham-dds
0303434561 First pass at new reporting designs
This commit lays out the genral structure and provides necessary
data for the new reporting page designs.

Some of the data generated by the report domain classes (including
the mock CSP reporting class) was modified to fit new designs. This also
included removing data that was no longer necessary. Part of the newly
mocked data includes the idea of "expended" data per CLIN or task order.
This was was mocked simply by using a 75% of the obligated funds fo a
given object. Tests were also written for these new/ modifed reporting
functions.

As for the front end, this commit only focuses on the high-level markup
layout. This includes splitting the large reporting index page into
smaller component templates for each of the major sections of the report.
2019-11-25 13:12:35 -05:00
graham-dds
dc73963cb9 Add accordion macro 2019-11-25 13:12:34 -05:00
leigh-mil
20a2abd36b Update valid prop on MultiCheckboxInput to return true if the field is optional 2019-11-22 09:33:39 -05:00
leigh-mil
62cdcbe6dc Remove some leftover 'watch' attributes from Vue components 2019-11-22 09:22:47 -05:00
leigh-mil
8aa302357b Move label display logic into the Label macro 2019-11-20 12:09:46 -05:00
leigh-mil
9f90f5abbd Update app member status labels to accurately reflect member's current status 2019-11-20 11:59:48 -05:00
leigh-mil
c94570f83e Update TO form and nested components to emit directly to parent components instead of emitting from the root component 2019-11-14 16:46:35 -05:00
leigh-mil
98298db5f2 Add toggle drop down menu for app member edit 2019-11-12 11:44:38 -05:00
leigh-mil
d142fa974a Update Form mixin so that you can enable the save button for a form on render 2019-10-31 16:21:32 -04:00
leigh-mil
f3dcca8368 use 'text=' in the SaveButton kwargs and add in a default for the save button text 2019-10-31 10:48:26 -04:00
graham-dds
5f5fbd2b91 Allow submit buttons to be valid on initial render 2019-10-28 15:25:18 -04:00
leigh-mil
83967e6ed9 Delete unused component and macro 2019-10-22 15:12:19 -04:00