Sha256: 8d07ec49cf9d75e76bdc6a6282fc7e3592ef1e6903b1cca20167fc2edce08dae

Contents?: true

Size: 1.11 KB

Versions: 3

Compression:

Stored size: 1.11 KB

Contents

<%= content_tag :div, :class => "translation", :lang => language || nil do %>
  <%- fieldname = "concept[labelings_by_id][#{klass.name.to_relation_name}][#{language}]" -%>
  <%- label = klass.model_name.human(:count => 2) -%>

  <%= f.label label %>
  <%= f.input fieldname, :wrapper => :prepend, :label => false do %>
    <span class="add-on"><%= language %></span><%= text_field_tag "concept[labelings_by_id][#{klass.name.to_relation_name}][#{language}]",
            concept.labelings_by_id(klass.name.to_relation_name, language),
            :id => "#{klass.name.to_relation_name}_#{language}",
            :class => "entity_select",
            :"data-query-url" => labels_path(:format => :json, :language => language),
            :"data-entity-uri" => label_path("{id}"),
            :"data-entities" => Iqvoc::XLLabel.base_class.editor_selectable.
                by_language(language).by_origin(concept.labelings_by_id(
                    klass.name.to_relation_name, language).
                    split(Iqvoc::InlineDataHelper::SPLITTER)).
                map { |l| label_widget_data(l) }.to_json %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iqvoc_skosxl-2.3.1 app/views/partials/labeling/skosxl/_edit_base.html.erb
iqvoc_skosxl-2.3.0 app/views/partials/labeling/skosxl/_edit_base.html.erb
iqvoc_skosxl-2.1.0 app/views/partials/labeling/skosxl/_edit_base.html.erb