Add upload errors to translations file
This commit is contained in:
parent
36d39dc949
commit
a7417b4f39
@ -68,13 +68,13 @@ class AttachmentForm(BaseForm):
|
|||||||
filename = HiddenField(
|
filename = HiddenField(
|
||||||
id="attachment_filename",
|
id="attachment_filename",
|
||||||
validators=[
|
validators=[
|
||||||
Length(max=100, message="Filename may be no longer than 100 characters.")
|
Length(max=100, message=translate("forms.attachment.filename.length_error"))
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
object_name = HiddenField(
|
object_name = HiddenField(
|
||||||
id="attachment_object_name",
|
id="attachment_object_name",
|
||||||
validators=[
|
validators=[
|
||||||
Length(max=40, message="Object name may be no longer than 40 characters.")
|
Length(max=40, message=translate("forms.attachment.object_name.length_error"))
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
accept = ".pdf,application/pdf"
|
accept = ".pdf,application/pdf"
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<input type="hidden" name="{{ field.object_name.name }}" id="{{ field.object_name.name }}" ref="attachmentObjectName">
|
<input type="hidden" name="{{ field.object_name.name }}" id="{{ field.object_name.name }}" ref="attachmentObjectName">
|
||||||
</div>
|
</div>
|
||||||
<template v-if="uploadError">
|
<template v-if="uploadError">
|
||||||
<span class="usa-input__message">There was an error uploading your file. Please try again. If you encounter repeated problems uploading this file, please contact CCPO.</span>
|
<span class="usa-input__message">{{ "forms.task_order.upload_error" | translate }}</span>
|
||||||
</template>
|
</template>
|
||||||
{% for error, error_messages in field.errors.items() %}
|
{% for error, error_messages in field.errors.items() %}
|
||||||
<span class="usa-input__message">{{error_messages[0]}}</span>
|
<span class="usa-input__message">{{error_messages[0]}}</span>
|
||||||
|
@ -145,7 +145,13 @@ forms:
|
|||||||
portfolio:
|
portfolio:
|
||||||
name_label: Portfolio name
|
name_label: Portfolio name
|
||||||
name_length_validation_message: Portfolio names can be between 4-100 characters
|
name_length_validation_message: Portfolio names can be between 4-100 characters
|
||||||
|
attachment:
|
||||||
|
object_name:
|
||||||
|
length_error: Object name may be no longer than 40 characters.
|
||||||
|
filename:
|
||||||
|
length_error: Filename may be no longer than 100 characters.
|
||||||
task_order:
|
task_order:
|
||||||
|
upload_error: There was an error uploading your file. Please try again. If you encounter repeated problems uploading this file, please contact CCPO.
|
||||||
app_migration:
|
app_migration:
|
||||||
both: 'Yes, migrating from both an on-premise data center <strong>and</strong> another cloud provider'
|
both: 'Yes, migrating from both an on-premise data center <strong>and</strong> another cloud provider'
|
||||||
cloud: 'Yes, migrating from another cloud provider'
|
cloud: 'Yes, migrating from another cloud provider'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user