Skip to content
Snippets Groups Projects
Commit 566971de authored by pabois's avatar pabois
Browse files

wip forms

parent f4f9ee5c
No related branches found
No related tags found
No related merge requests found
......@@ -3,3 +3,4 @@
//= require jquery3
//= require jquery_ujs
//= require simple_form_password_with_hints
//= require simple_form_image_fields
@import 'bootstrap'
@import 'appstack/light'
@import 'simple_form_password_with_hints'
@import 'simple_form_image_fields'
@import 'commons/*'
@import 'application/*'
......@@ -18,17 +18,21 @@
<% end %>
<%= f.input :mobile_phone %>
<%= f.association :language, include_blank: false %>
<%= f.association :language,
required: true,
label_method: lambda { |l| I18nData.languages(I18n.locale.to_s.upcase)[l.iso_code.to_s.upcase].capitalize },
include_blank: 'Sélectionnez une langue' %>
<%= f.input :picture,
as: :single_deletable_file,
input_html: { accept: '.png' } %>
input_html: { accept: '.png,.jpg' } %>
<%= f.input :password,
hint: t(".leave_blank_if_you_don_t_want_to_change_it"),
required: false,
input_html: { autocomplete: "new-password" } %>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment