Sha256: b234060b610cb6ec4cb4c694d2a453385210f11bb64a02a34a423f6c06123f23

Contents?: true

Size: 590 Bytes

Versions: 6

Compression:

Stored size: 590 Bytes

Contents

= javascript_include_tag 'vanilla_nested'
- if Cookbook.configuration.include_cookbook_css == true
  = stylesheet_link_tag 'cookbook/application'
- usables.each do |usable|
  %fieldset.used_in{class: usable.plural_class}
    %legend
      %h3= usable.title
    = link_to_add_nested form, usable.uses_sym, "##{usable.plural_class}", partial: 'cookbook/uses/fields', link_text: "Add #{usable.singular_title}", link_classes: 'button button-action'
    %div{id: usable.plural_class}
      = form.fields_for usable.uses_sym do |g|
        = render 'cookbook/uses/fields', form: g, usable: usable

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cookbook-0.1.5 app/views/cookbook/_fields.html.haml
cookbook-0.1.4 app/views/cookbook/_fields.html.haml
cookbook-0.1.3 app/views/cookbook/_fields.html.haml
cookbook-0.1.2 app/views/cookbook/_fields.html.haml
cookbook-0.1.1 app/views/cookbook/_fields.html.haml
cookbook-0.1.0 app/views/cookbook/_fields.html.haml