25 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
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
2b98995488 Styling for CLIN Details section
add in validation styling for inputs
use solid checkmark as ok validation across site
2019-09-03 13:25:53 -04:00
richard-dds
c5284fd8f9
Merge pull request #1005 from dod-ccpo/cloud-pdf-downloads
Cloud pdf downloads
2019-08-30 16:11:27 -04:00
richard-dds
b26cd3ffae Allow user to download a previously uploaded pdf 2019-08-29 16:00:25 -04:00
richard-dds
e8234dcf34 Allow user to download files on TO upload page 2019-08-29 11:28:49 -04:00
leigh-mil
2938e48a65 Set max width on p elements and add in p tags where they were missing 2019-08-29 10:33:15 -04:00
richard-dds
11c1c37d7f Remove unnecessary macro and Vue props 2019-08-28 15:56:55 -04:00
richard-dds
67a4bb602d Require portfolio id in upload-token
It's necessary for the authz decorator
2019-08-28 15:56:55 -04:00
richard-dds
7d1dfa1d0e Get presigned upload token via ajax request 2019-08-28 15:06:13 -04:00
richard-dds
db73a12e95 Limit size of uploaded files 2019-08-16 13:30:03 -04:00
richard-dds
a7417b4f39 Add upload errors to translations file 2019-08-14 11:35:07 -04:00
richard-dds
3ecb2cf84f Update copy for file upload failure 2019-08-13 10:51:09 -04:00
richard-dds
8d7c4672b0 Display file upload errors in form 2019-08-13 10:51:09 -04:00
richard-dds
81a478915d Fix uploader test and refactor makeTestWrapper to accept data fn 2019-08-05 14:58:10 -04:00
richard-dds
f5c8424b46 Wire up FE uploads to TO form 2019-08-05 14:58:10 -04:00
richard-dds
8eba9a097d Add CSP file uploads 2019-08-05 14:58:10 -04:00
leigh-mil
fb86f9a139 Bind attachment as value to the pdf input 2019-07-11 14:09:47 -04:00
leigh-mil
56bc9dd4e5 update components to emit valid on field-change and use in TO form 2019-06-17 12:45:55 -04:00
leigh-mil
5be4efb9d9 Reimplement SaveButton disabled until input change 2019-06-14 11:11:24 -04:00
dandds
0e89a55c07 Display and overwrite task order uploads correctly.
- Populate the POSTed form with additional data from the existing TO
  model. This way the pdf attachment has to be explicitly overwritten.
- Adjust the frontend so that if there is an existing PDF, it only sends
  a file input back if the user removes the existing PDF.
2019-06-11 09:58:32 -04:00
dandds
159360692f Improve task order upload validation handling.
- Display validation errors.
- Rerender validated form data correctly.
- Clear error state correctly.
2019-06-06 13:57:07 -04:00
dandds
fb430e76e9 Basic frontend uploader component 2019-06-06 13:57:07 -04:00
Montana
eaa5c93922 Create upload macro 2019-02-07 13:21:31 -05:00