feat(EditComponent): add max_file_size and content_types to upload buttons inspired by dsfr
This commit is contained in:
parent
3891b57473
commit
4ec61e58ac
23 changed files with 294 additions and 253 deletions
|
@ -1,2 +1,3 @@
|
|||
---
|
||||
en:
|
||||
max_file_size: "File size limit : %{max_file_size}."
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
---
|
||||
fr:
|
||||
max_file_size: "Taille maximale : %{max_file_size}."
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue