Sha256: b2bfc063a65ea07684033674e3fd0554f114e2df99e5a7e79f960f42b135c0e1

Contents?: true

Size: 801 Bytes

Versions: 2

Compression:

Stored size: 801 Bytes

Contents

<li id="<%= attribute_id %>">
  <%= form.label attribute, label_text %>
  <% if related_items.any? %>
    <%= hidden_field_tag related_ids %>
    <%= select_tag related_ids,
                   options_from_collection_for_select(related_items, "id", "to_label", values.map(&:id)),
                   html_options.merge(:multiple => true,
                                      :id => "#{@resource.name.downcase}_#{attribute}",
                                      :class => "chzn-select",
                                      :style => "width: 550px;",
                                      "data-placeholder" => Typus::I18n.t("Select Some Options")) %>
  <% else %>
    <%= Typus::I18n.t("No %{resources} found.", :resources => related_klass.model_name.human.downcase.pluralize) %>
  <% end %>
</li>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typus-3.1.0 app/views/admin/templates/_has_and_belongs_to_many.html.erb
typus-3.1.0.rc19 app/views/admin/templates/_has_and_belongs_to_many.html.erb