DEV: Add support for uploads to form templates (#22232)

This commit is contained in:
Keegan George
2023-06-28 12:49:05 -07:00
committed by GitHub
parent acaea2b5c5
commit b6f03fcecd
9 changed files with 235 additions and 18 deletions

View File

@@ -32,11 +32,10 @@ export default class FormTemplateForm extends Component {
type: "dropdown",
icon: "chevron-circle-down",
},
// TODO(@keegan): add support for uploads
// {
// type: "upload",
// icon: "cloud-upload-alt",
// },
{
type: "upload",
icon: "cloud-upload-alt",
},
{
type: "multiselect",
icon: "bullseye",

View File

@@ -51,7 +51,7 @@ export const templateFormFields = [
type: "upload",
structure: `- type: upload
attributes:
file_types: "jpg, png, gif"
file_types: ".jpg, .png, .gif"
allow_multiple: false
label: "${I18n.t("admin.form_templates.field_placeholders.label")}"
validations: