unepwcmc/SAPI

View on GitHub
app/views/admin/nomenclature_changes/status_to_synonym/primary_output.html.erb

Summary

Maintainability
Test Coverage
<h2>New status change to synonym</h2>
<%= nomenclature_change_form do |f| %>
  <%= render 'admin/nomenclature_changes/build/event_selector', :f => f %>
    <%= f.fields_for :primary_output do |ff| %>
    <div class="control-group">
      <label class="control-label">Taxon concept to change:</label>
      <div class="controls">
        <%= ff.text_field :taxon_concept_id, {
          :class => 'taxon-concept',
          :'data-name' => ff.object.taxon_concept.try(:full_name),
          :'data-name-status' => ff.object.taxon_concept.try(:name_status),
          :'data-name-status-filter' => ['N', 'T'].to_json,
          :'data-taxonomy-id' => @taxonomy.id
        } %>
      </div>
    </div>
    <% end %>

<% end %>