Home

Pages Classes Methods

    Table of Contents

    • hidden_field_tag(‘partial_locals', nested_on)
    • f.hidden_field(:<%= type_select_name %>, <%= tag_options(value: “#{singular_table_name}.#{type_select_name}”, name: “name_for_input_tag(:#{type_select_name}, prefix)”) %>)
    • f.hidden_field(:<%= object_select_name %>, <%= tag_options(value: “#{singular_table_name}.#{object_select_name}”, name: “name_for_input_tag(:#{object_select_name}, prefix)”) %>)

    Pages

    • bright_text.html.haml
    • collection_list.html.haml
    • custom.html.haml
    • default.html.haml
    • foreign_single_page_manager.html.haml
    • inline_editable.html.haml
    • link_to.html.haml
    • linked_collection_list.html.haml
    • text.html.haml
    • yes_or_no.html.haml
    • autocompletable_multiple_selection.html.haml
    • autocompletable_simple_selection.html.haml
    • checkbox.html.haml
    • collection_checkboxes.html.haml
    • collection_select.html.haml
    • custom.html.haml
    • default.html.haml
    • file.html.haml
    • hierarchy_picker.html.haml
    • nested_form.html.haml
    • polymorphic_hybrid.html.haml
    • polymorphic_select.html.haml
    • simple_select.html.haml
    • text.html.haml
    • default.html.haml
    • _links.html.haml
    • _multiple_selection.html.haml
    • _simple_selection.html.haml
    • _fields.html.haml
    • _form.html.haml
    • index.html.haml
    • _index.html.haml
    • _item.html.haml
    • new.html.haml
    • show.html.haml
    • _header.html.haml
    • _index.html.haml
    • _item.html.haml
    • _field.html.haml
    • _inline_edit.html.haml
    • _nested.fields.html.haml
    • _single_page_manager.html.haml
    • index.html.haml
    • _index.form.html.haml
    • _index.html.haml
    • _item.display.html.haml
    • _item.form.html.haml
    • _item.html.haml
    • _simple.html.haml
    • USAGE
    • _simple_select.html.haml
    • _fields.html.haml
    • show.html.haml
    • _form.html.haml
    • _index.body.html.haml
    • _index.html.haml
    • _table.header.html.haml
    • _table.item.html.haml
    • index.html.haml
    • new.html.haml
    • _menu.entry.html.haml
    • _form.html.haml
    • _index.body.html.haml
    • _single_page_manager.html.haml
    • _table.form.html.haml
    • _table.header.html.haml
    • _table.html.haml
    • _table.item.form.html.haml
    • _table.item.html.haml
    • _table.item.show.html.haml
    • index.html.haml
    • _fields.show.inline.html.haml
    • _inline_edit.html.haml
    • _inner.show.inline.html.haml
    • _nested.fields.html.haml
    • _show.inline.html.haml
    • _trailing_form.show.inline.html.haml
    • if <%= guard %>

      • polymorphic_select_input_id = bd_id 'polymorphic-select-input'

      .field{ id: polymorphic_select_input_id }

      .ui.two.fields
        .field
          = f.select(:<%= type_select_name %>, [<%= options_for_type %>], {}, <%= tag_options(class: '"polymorphic-select-type-selector"') %>)

      <% types_options.each do |options| %>

      .field{ class: "polymorphic-select-object-selector-wrapper polymorphic-select-object-selector-<%= options[:model] %>-wrapper" }
        = f.collection_select(:<%= object_select_name %>, <%= options[:model] %>.all, :<%= options[:value] %>, :<%= options[:display_method] %>, <%= tag_options %>)

      <% end %>

      :coffeescript
        new BrainDamage.PolymorphicSelectInput "##{polymorphic_select_input_id}"
      
    • else

      hidden_field_tag(‘partial_locals', nested_on)¶ ↑

      • if nested_on.try(:to_sym) == :<%= name %> and <%= singular_table_name %>.<%= name %>

        f.hidden_field(:<%= type_select_name %>, <%= tag_options(value: “#{singular_table_name}.#{type_select_name}”, name: “name_for_input_tag(:#{type_select_name}, prefix)”) %>)¶ ↑

        f.hidden_field(:<%= object_select_name %>, <%= tag_options(value: “#{singular_table_name}.#{object_select_name}”, name: “name_for_input_tag(:#{object_select_name}, prefix)”) %>)¶ ↑

    Validate

    Generated by RDoc 6.3.2.

    Based on Darkfish by Michael Granger.