feat(EditComponent): add max_file_size and content_types to upload buttons inspired by dsfr

This commit is contained in:
Martin 2022-06-16 15:51:45 +02:00 committed by mfo
parent 3891b57473
commit 4ec61e58ac
23 changed files with 294 additions and 253 deletions

View file

@ -1,2 +1,3 @@
---
en:
max_file_size: "File size limit : %{max_file_size}."

View file

@ -1,2 +1,3 @@
---
fr:
max_file_size: "Taille maximale : %{max_file_size}."

View file

@ -24,4 +24,8 @@
%span.icon.retry
Ré-essayer
%label.text-sm.font-weight-normal{ for: file_field_options[:id] }
= t('.max_file_size', max_file_size: number_to_human_size(max_file_size))
= form.file_field(file_field_name, **file_field_options)