Skip to content

Commit

Permalink
accept only files, no camera (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
ka8725 committed Jun 6, 2024
1 parent ae644d9 commit 75f06bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/accounts/edit.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.image-inputs
.file#file-input.is-light.my-4
label.file-label.is-light
= f.file_field :avatar, class: 'file-input'
= f.file_field :avatar, class: 'file-input', accept: "image/*"
span.file-cta
span.file-icon
i.fa.fa-camera
Expand Down Expand Up @@ -37,7 +37,7 @@
= f.check_box :notify_parents, class: "checkbox mr-2"
= f.label :notify_parents, "Report transactions to parents"
.notification.is-light.mt-3
| If checked, all users with access to your kid's account, including you, will get email notifications
| If checked, all users with access to your kid's account, including you, will get email notifications
| about balance changes.
.buttons
- if current_user.parent?
Expand Down
2 changes: 1 addition & 1 deletion app/views/accounts/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
= image_tag('user.svg', class:'is-rounded', id:'account-image', alt: 'avatar')
.file#file-input.is-light.is-pulled-right
label.file-label.is-light
= form.file_field :avatar, class: "file-input"
= form.file_field :avatar, class: "file-input", accept: "image/*"
span.file-cta
span.file-icon
i.fa.fa-camera
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/registrations/edit_profile.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.column
.file#file-input.is-light.is-pulled-right
label.file-label.is-light
= f.file_field :avatar, class: 'file-input'
= f.file_field :avatar, class: 'file-input', accept: "image/*"
span.file-cta
span.file-icon
i.fa.fa-camera
Expand Down

0 comments on commit 75f06bb

Please sign in to comment.