5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 08:21:41 +00:00

solo requerirlo si no hay imagenes ya cargadas

This commit is contained in:
f 2018-07-23 21:03:57 -03:00
parent e27cc2d546
commit ac27a6f905
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -6,7 +6,7 @@
- name = [name,''] if template.multiple?
= file_field_tag field_name_for_post_as_string(name),
class: 'form-control',
required: template.required?,
required: template.required? && value.empty?,
multiple: template.multiple?,
accept: 'image/*'
- if template.multiple?