Sha256: 0b7c867049a633b9f2cb37cad81b0baec93eeedac30fb58b6bf301461801c197

Contents?: true

Size: 1.92 KB

Versions: 23

Compression:

Stored size: 1.92 KB

Contents

<%-
# TODO: Change Concept.labeling_classes to Collection.labeling_classes (in model
# too). If those two settings differ (e.g. in spez) don't forget to add
# migrations to update existing data.
-%>
<fieldset>
  <legend>Labelings</legend>
  <ol>
    <%- Iqvoc::Concept.labeling_classes.each do |labeling_class, languages| -%>
      <%- languages.each do |language| -%>
        <%= render labeling_class.edit_partial_name(@collection), :f => f,
          :concept => @collection, :klass => labeling_class, :language => language %>
      <%- end -%>
    <%- end -%>
  </ol>
</fieldset>

<%- # TODO: Add a Collection config for Note classes. %>
<% [ Note::SKOS::Definition ].each do |klass| %>
  <%= render :partial => klass.edit_partial_name(@collection),
    :locals => { :owner_klass => @collection, :assoc_klass => klass, :f => f } %>
<% end %>

<fieldset>
  <legend><%= Iqvoc::Concept.base_class.model_name.human(:count => 2) %></legend>
  <%= text_field_tag "concept[inline_member_concept_origins]",
    @collection.inline_member_concept_origins.join(Iqvoc::InlineDataHelper::Joiner),
    :class => "entity_select",
    :"data-query-url" => concepts_path(:format => :json),
    :"data-entity-uri" => concept_path(:id => "{id}"),
    :"data-entities" => @collection.inline_member_concepts.
    map { |c| concept_widget_data(c) }.to_json %>
</fieldset>

<fieldset>
  <legend><%= Iqvoc::Collection.base_class.model_name.human(:count => 2) %></legend>
  <%= text_field_tag "concept[inline_member_collection_origins]",
    @collection.inline_member_collection_origins.join(Iqvoc::InlineDataHelper::Joiner),
    :class => "entity_select",
    :"data-query-url" => collections_path(:format => :json),
    :"data-entity-uri" => collection_path(:id => "{id}"),
    :"data-exclude" => @collection.origin,
    :"data-entities" => @collection.inline_member_collections.
    map { |c| collection_widget_data(c) }.to_json %>
</fieldset>

<%= f.submit t("txt.common.save") %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
iqvoc-3.2.11 app/views/collections/_form.html.erb
iqvoc-3.2.10 app/views/collections/_form.html.erb
iqvoc-3.2.9 app/views/collections/_form.html.erb
iqvoc-3.2.8 app/views/collections/_form.html.erb
iqvoc-3.5.7 app/views/collections/_form.html.erb
iqvoc-3.5.6 app/views/collections/_form.html.erb
iqvoc-3.5.5 app/views/collections/_form.html.erb
iqvoc-3.5.4 app/views/collections/_form.html.erb
iqvoc-3.2.7 app/views/collections/_form.html.erb
iqvoc-3.5.3 app/views/collections/_form.html.erb
iqvoc-3.5.2 app/views/collections/_form.html.erb
iqvoc-3.5.1 app/views/collections/_form.html.erb
iqvoc-3.5.0 app/views/collections/_form.html.erb
iqvoc-3.4.0 app/views/collections/_form.html.erb
iqvoc-3.3.4 app/views/collections/_form.html.erb
iqvoc-3.3.3 app/views/collections/_form.html.erb
iqvoc-3.3.2 app/views/collections/_form.html.erb
iqvoc-3.3.1 app/views/collections/_form.html.erb
iqvoc-3.3.0 app/views/collections/_form.html.erb
iqvoc-3.2.6 app/views/collections/_form.html.erb