Sha256: 974c7670feedae0fd4ae59e84af1c5d45bcf950261e0c6b6397c0832fc65df0c

Contents?: true

Size: 588 Bytes

Versions: 9

Compression:

Stored size: 588 Bytes

Contents

= simple_form_for(@<%= singular_table_name %>, class: "ui form") do |f|
  - if @<%= singular_table_name %>.errors.any? %>
    #error_explanation"
      %h2
        = pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:
      %ul
        - <%= singular_table_name %>.errors.full_messages.each do |message|
          %li= message
<%- attributes.each do |attribute| -%>
    = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
<%- end -%>
  .actions
    = f.button :submit, class: 'ui button'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
semantic_ui_views_generator-0.0.9 lib/generators/semantic/templates/simple_form/_form.html.haml
semantic_ui_views_generator-0.0.8 lib/generators/semantic/templates/simple_form/_form.html.haml
semantic_ui_views_generator-0.0.7 lib/generators/semantic/templates/simple_form/_form.html.haml
semantic_ui_views_generator-0.0.6 lib/generators/semantic/templates/simple_form/_form.html.haml
semantic_ui_views_generator-0.0.5 lib/generators/semantic/templates/simple_form/_form.html.haml
semantic_ui_views_generator-0.0.4 lib/generators/semantic/templates/simple_form/_form.html.haml
semantic_ui_views_generator-0.0.3 lib/generators/semantic/templates/simple_form/_form.html.haml
semantic_ui_views_generator-0.0.2 lib/generators/semantic/templates/simple_form/_form.html.haml
semantic_ui_views_generator-0.0.1 lib/generators/semantic/templates/simple_form/_form.html.haml