370 Commits

Author SHA1 Message Date
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
leigh-mil
750ea6568b Add label macro 2019-10-22 14:33:06 -04:00
leigh-mil
ce9a551b2d More styling updates 2019-10-15 13:48:01 -04:00
leigh-mil
de28ff303c Reorder elements in env panel and initial styling 2019-10-15 13:48:01 -04:00
leigh-mil
a44e86f296
Merge pull request #1112 from dod-ccpo/app-settings-styling
App settings styling (part 1)
2019-10-14 16:33:59 -04:00
leigh-mil
c7889e13f8 Fix styling on app member info form 2019-10-14 14:57:42 -04:00
leigh-mil
14ea3cd973 Adjust the margin around usa-input elements globally, fix any styling side effects from the change 2019-10-14 14:05:03 -04:00
leigh-mil
5a98e6966e Styling for name and description section:
As part of this, the empty placeholder span was removed from the text input macro and the span will now be conditionall rendered if there is an error message
2019-10-14 14:03:45 -04:00
leigh-mil
e6254e6f64 Update text in portfolio header and application sticky CTA 2019-10-14 14:03:44 -04:00
graham-dds
33e82bfb83 Allow markup in
Alert title
2019-10-14 10:10:22 -04:00
leigh-mil
cf42bfbbda Remove text from dismiss modal button 2019-10-08 16:30:28 -04:00
leigh-mil
fe29b5d838 Low-fi update of multi-step modals to fix styling 2019-10-08 16:30:28 -04:00
leigh-mil
7a4c26419f Low-fi update of modals to fix styling 2019-10-08 16:30:28 -04:00
leigh-mil
52d16017c3 Update styling for modal macro and add notes about what classes to use to maintain styling 2019-10-08 16:28:25 -04:00
leigh-mil
bb6d656def
Merge pull request #1106 from dod-ccpo/clin-errors-contract-dates
PoP Range error message
2019-10-08 15:39:34 -04:00
graham-dds
9d34f11d84 Tweak multi-step header for app provisioning
- add "context" option to StickyCTA
 - tweak styles to better-include context
 - add header text to translations
2019-10-08 13:15:28 -04:00
leigh-mil
7f0a25ea17 Use translations 2019-10-08 10:32:02 -04:00
leigh-mil
07b3c68422 Add min and max range values to date selector so a more accurate error message can be displayed when a date is out of the range 2019-10-08 10:32:02 -04:00