Sha256: a3fe3529da9e9d0e84a9a6609377572fedfcebc54cf5692c2fed32752383dcee

Contents?: true

Size: 937 Bytes

Versions: 7

Compression:

Stored size: 937 Bytes

Contents

<%= form_for(@record) do |f| -%>
  <h2>Title</h2>
  <div class="row">
      <%= f.label :title, "Title" %>
      <%= f.text_area :title, :value=>@record.title, :required => true %>
  </div>

  <h2>Abstract and keywords</h2>

  <div class="row">
    <%= f.label :abstract %>
    <%= f.text_area :abstract, :value=>@record.abstract.first, :required=>true %>
  </div>

  <div class="row">
    <%= label_tag("hydrus_item_keywords", "Keywords") %>
    <%= text_field_tag("hydrus_item_keywords", @record.descMetadata.subject.topic.join(", ")) -%>
    <div class="help">separate keywords with commas</div>
  </div>

  <h2>Citations</h2>
  <div class="row">
    <%= f.label :preferred_citation, "Preferred citation for this object", :class => "hidden-tablet" %>
    <%= f.text_area :preferred_citation, :value=>@record.preferred_citation %>
  </div>

  <input type="submit" class="btn btn-small save-edits" name="save" id="save" />

<% end %>


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hydra-tutorial-0.0.7 or_templates/wiring_it_into_rails/_form.html.erb
hydra-tutorial-0.0.6 or_templates/wiring_it_into_rails/_form.html.erb
hydra-tutorial-0.0.5 or_templates/wiring_it_into_rails/_form.html.erb
hydra-tutorial-0.0.4 or_templates/wiring_it_into_rails/_form.html.erb
hydra-tutorial-0.0.3 or_templates/wiring_it_into_rails/_form.html.erb
hydra-tutorial-0.0.2 or_templates/wiring_it_into_rails/_form.html.erb
hydra-tutorial-0.0.1 or_templates/wiring_it_into_rails/_form.html.erb