Sha256: b7188433ccbd30f8ef69d549915ea68a3bf2a558a87f3cec57a0ea5134edd302
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
<%= form_for(@subject) do |f| -%> <%= f.error_messages -%> <div class="field"> <%= f.label t('activerecord.models.subject_type') -%> <%= f.select(:subject_type_id, @subject_types.collect{|s| [s.display_name.localize, s.id]}) -%> </div> <div class="field"> <%= f.label :term -%><br /> <%= f.text_field :term -%> </div> <div class="field"> <%= f.label :term_transcription -%><br /> <%= f.text_field :term_transcription -%> </div> <div class="field"> <%= f.label :note -%><br /> <%= f.text_area :note -%> </div> <%- if @subject_heading_type -%> <div class="field"> <%= f.label t('activerecord.models.subject_heading_type') -%> <%= link_to @subject_heading_type.display_name.localize, @subject_heading_type -%> <%= f.hidden_field :subject_heading_type_id -%> </div> <%- else -%> <div class="field"> <%= f.label t('activerecord.models.subject_heading_type') -%> <%= f.select(:subject_heading_type_id, @subject_heading_types.collect{|s| [s.display_name.localize, s.id]}) -%> </div> <%- end -%> <%- if @classification -%> <div class="field"> <%= f.label t('activerecord.models.classification') -%> <%= link_to @classification.category, @classification -%> <%= f.hidden_field :classification_id -%> </div> <%- end -%> <div class="actions"> <%= f.submit %> </div> <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_trunk_subject-1.0.4 | app/views/subjects/_form.html.erb |