Sha256: cd192f4afcbf1cc96317e9fa274fcc66dab94e11e8b5fbf20dd0262f49f1dadd
Contents?: true
Size: 1.47 KB
Versions: 2
Compression:
Stored size: 1.47 KB
Contents
<%= simple_form_for( resource, url: resource.new_record? ? registration_path(resource_name) : user_path(resource), method: resource.new_record? ? :post : :put, html: { class: 'form-horizontal block-form', autocomplete: 'off' }, wrapper: :horizontal_form ) do |f| %> <%= devise_error_messages! %> <% @presenter.attributes.each do |attribute| %> <%= case attribute when :name f.input attribute if resource.new_record? when :language f.input attribute, collection: all_language_options when :interface_language f.input attribute, collection: available_language_options when :foreign_language_tokens f.input attribute, as: :string, input_html: { data: { load: resource.foreign_language_tokens } } unless Rails.env == 'test' when :timezone f.input attribute, as: :time_zone when :profession autocomplete_input(f, attribute) when :employment_relationship f.input attribute, collection: ['selbständig', 'angestellt', 'arbeitslos', 'Schüler', 'Student', 'Rentner'] when :area_tokens # TODO: get token input working in test environment f.input attribute, input_html: { data: { load: resource.areas } } unless Rails.env == 'test' else f.input attribute end %> <% end %> <%= recaptcha_tags if resource.new_record? && Rails.env == 'production' %> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <%= f.button :submit %> </div> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voluntary-0.7.1 | app/views/users/_form.html.erb |
voluntary-0.7.0 | app/views/users/_form.html.erb |