SpeciesFileGroup/taxonworks

View on GitHub
app/views/descriptors/_form.html.erb

Summary

Maintainability
Test Coverage

<p> A <%= link_to('New descriptor task', new_descriptor_task_path) -%> exists and should be used. </p>
<%= form_for(@descriptor.metamorphosize) do |f| %>
  <%= render 'shared/errors', object: @descriptor %>

  <div class="field">
    <%= f.label :name %><br>
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :short_name %><br>
    <%= f.text_field :short_name %>
  </div>

  <div class="field">
    <%= f.label :type %><br>
    <%= f.select :type, options_for_select(DESCRIPTOR_TYPES.invert.to_a, selected: f.object.type), include_blank: true %>
  </div>
 <div class="actions">
    <%= f.submit %>
  </div>
<% end %>