Sha256: 4503046437517bd4b9fb5fc309328d9a2d9c030d3a3159bb15fe72d8f1e156ee

Contents?: true

Size: 601 Bytes

Versions: 9

Compression:

Stored size: 601 Bytes

Contents

= form_with(model: @<%= singular_table_name %>, local: true, 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| -%>
  .field
    = f.label :<%= attribute.name %>
    = f.<%= attribute.field_type %> :<%= attribute.name %>
<% end -%>
  .actions
    = f.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/scaffolds/slim/_form.html.slim
semantic_ui_views_generator-0.0.8 lib/generators/semantic/templates/scaffolds/slim/_form.html.slim
semantic_ui_views_generator-0.0.7 lib/generators/semantic/templates/scaffolds/slim/_form.html.slim
semantic_ui_views_generator-0.0.6 lib/generators/semantic/templates/scaffolds/slim/_form.html.slim
semantic_ui_views_generator-0.0.5 lib/generators/semantic/templates/scaffolds/slim/_form.html.slim
semantic_ui_views_generator-0.0.4 lib/generators/semantic/templates/scaffolds/slim/_form.html.slim
semantic_ui_views_generator-0.0.3 lib/generators/semantic/templates/scaffolds/slim/_form.html.slim
semantic_ui_views_generator-0.0.2 lib/generators/semantic/templates/scaffolds/slim/_form.html.slim
semantic_ui_views_generator-0.0.1 lib/generators/semantic/templates/scaffolds/slim/_form.html.slim