Sha256: f0ef64fff57fc1ef1d40bd61e498cae4e807369b19cdce92e7504d2eb9738062

Contents?: true

Size: 1.16 KB

Versions: 28

Compression:

Stored size: 1.16 KB

Contents

<div id="content_detail" class="ui-corner-all">
<h1 class="title"><%= t('page.new', :model => t('activerecord.models.work_has_subject')) -%></h1>
<div id="content_list">

<%= form_for(@work_has_subject) do |f| -%>
  <%= f.error_messages -%>

  <div class="field">
    <%= f.label :work -%><br />
    <%- if @work_has_subject.work -%>
      <%= link_to @work_has_subject.work.original_title, @work_has_subject.work -%>
      <%= f.hidden_field :work_id -%>
    <%- else -%>
      <%= f.text_field :work_id -%>
    <%- end -%>
  </div>
  <div class="field">
    <%= f.label :subject -%><br />
    <%- if @work_has_subject.subject -%>
      <%= link_to @work_has_subject.subject.term, @work_has_subject.subject -%>
      <%= f.hidden_field :subject_id -%>
    <%- else -%>
      <%= f.text_field :subject_id -%>
    <%- end -%>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<%- end -%>

</div>
</div>

<div id="submenu" class="ui-corner-all">
  <ul>
    <%- if @work -%>
      <li><%= link_to t('page.listing', :model => t('activerecord.models.work')), work_subjects_path(@work) -%></li>
    <%- else -%>
      <li><%= back_to_index -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
enju_trunk_subject-1.0.4 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre13 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre12 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre11 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre10 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre9 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre8 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre7 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre6 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre5 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre4 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre3 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre2 app/views/work_has_subjects/new.html.erb
enju_subject-0.1.0.pre app/views/work_has_subjects/new.html.erb
enju_subject-0.0.18 app/views/work_has_subjects/new.html.erb
enju_subject-0.0.17 app/views/work_has_subjects/new.html.erb
enju_subject-0.0.16 app/views/work_has_subjects/new.html.erb
enju_subject-0.0.15 app/views/work_has_subjects/new.html.erb
enju_subject-0.0.14 app/views/work_has_subjects/new.html.erb
enju_subject-0.0.13 app/views/work_has_subjects/new.html.erb