unepwcmc/SAPI

View on GitHub
app/views/admin/nomenclature_changes/build/_new_parent.html.erb

Summary

Maintainability
Test Coverage
<div class="control-group">
  <label class="control-label">New taxon parent:</label>
  <div class="controls">
    <%= ff.text_field :new_parent_id, {
      class: 'taxon-concept parent-taxon',
      :'data-name' => ff.object.new_parent.try(:full_name),
      :'data-name-status' => ff.object.new_parent.try(:name_status),
      :'data-name-status-filter' => ['A'].to_json,
      :'data-taxonomy-id' => @taxonomy.id,
      :'data-rank-id' => ff.object.new_rank_id,
      :'data-rank-scope' => 'parent'
    } %>
  </div>
</div>