2020-12-15 07:10:17 -05:00
|
|
|
- classes = local_assigns.fetch(:classes, '')
|
|
|
|
|
2020-06-16 08:09:00 -04:00
|
|
|
%span.js-filepicker
|
2021-04-13 17:11:25 -04:00
|
|
|
%button.gl-button.btn.btn-default.js-filepicker-button{ type: 'button', class: classes }= _("Choose file…")
|
2021-03-17 14:09:01 -04:00
|
|
|
%span.file_name.js-filepicker-filename= _("No file chosen.")
|
2020-06-16 08:09:00 -04:00
|
|
|
= f.file_field field, class: "js-filepicker-input hidden"
|
|
|
|
- if help_text.present?
|
|
|
|
.form-text.text-muted= help_text
|