Sha256: 353691564cff18b4800265b4577cef6cacf48963f276834ba0feea3fc8145161
Contents?: true
Size: 778 Bytes
Versions: 2
Compression:
Stored size: 778 Bytes
Contents
<li id="<%= attribute_id %>_field"> <%= 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 => attribute_id, :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.2 | app/views/admin/templates/_has_and_belongs_to_many.html.erb |
typus-3.1.1 | app/views/admin/templates/_has_and_belongs_to_many.html.erb |