% @page_title = t('views.materials.new.page_title') %>
<%= link_to t('views.materials.back'), :back, class:'link_btn' %>
<%= form_for @material do |form| %> <%= form.fields_for :entry do |e| %> <%= e.hidden_field :id %> <% end %>| <%= form.label :uploaded_file %> | <%= form.file_field :uploaded_file%> <% if @material.id %> <%= material_image_tag @material, "JPG", width: "100%" %> <% end %> |
|---|---|
| <%= imgf.label :uploaded_file %> |
<%= imgf.file_field :uploaded_file %>
<% if !imgf.object.new_record? && imgf.object.errors.empty? %>
<%= material_image_tag @material, "JPG", width: "100%" %>
<%= imgf.check_box :_destroy %>
<%= imgf.label :_destroy %>
<%= imgf.hidden_field :id %>
<% end %>
|
| <%= form.label :links %> | <%= form.text_field :links%> |
| <%= form.label :sites %> | <%= form.text_area :sites,size: "40"%> |
| <%= form.label :publish_flg %> | |
| <%= form.label :dl_condition %> | <%= form.select :dl_condition,[ [t('views.materials.form.dl_cond1'),"public"], [t('views.materials.form.dl_cond2'),"member_only"], [t('views.materials.form.dl_cond3'),"prevate"] ] %> |
| <%= form.label :dl_description %> |
|
| <%= form.label :email %> | <%= form.text_field :email %> |
| <%= form.label :category %> | <%= form.text_field :category %> |
| <%= t('views.materials.edit.in_japanese')%> | |
| <%= form.label :title %> | <%= form.text_field :title%> |
| <%= form.label :description %> | <%= form.text_area :description, {class: "tinymce",id: "editor"}%> <%= tinymce %> |
| <%= form.label :keyword %> | <%= form.text_field :keyword0 ,size: 10%> <%= form.text_field :keyword1 ,size: 10%> <%= form.text_field :keyword2 ,size: 10%> <%= form.text_field :keyword3 ,size: 10%> <%= form.text_field :keyword4 ,size: 10%> |
| <%= form.label :full_name %> |
<%= form.label :name_sei %> <%= form.text_field :name_sei ,size: 10%> <%= form.label :name_mei %> <%= form.text_field :name_mei ,size: 10%> |
| <%= form.label :organization %> | <%= form.text_field :organization %> |
| <%= form.label :department %> | <%= form.text_field :department %> |
| <%= form.label :regard_fields %> | <%= form.text_field :regard_fields %> |
| <%= t('views.materials.edit.in_english')%> | |
| <%= form.label :title_en %> | <%= form.text_field :title_en%> |
| <%= form.label :description_en %> | <%= form.text_area :description_en, {class: "tinymce",id: "editor2"}%> |
| <%= form.label :keyword %> | <%= form.text_field :keyword0_en ,size: 10%> <%= form.text_field :keyword1_en ,size: 10%> <%= form.text_field :keyword2_en ,size: 10%> <%= form.text_field :keyword3_en ,size: 10%> <%= form.text_field :keyword4_en ,size: 10%> |
| <%= form.label :full_name %> |
<%= form.label :name_first %> <%= form.text_field :name_first ,size: 10%> <%= form.label :name_family %> <%= form.text_field :name_family ,size: 10%> <%= form.label :name_other %> <%= form.text_field :name_other ,size: 10%> |
| <%= form.label :organization_en %> | <%= form.text_field :organization_en %> |
| <%= form.label :department_en %> | <%= form.text_field :department_en %> |
| <%= form.label :regard_fields_en %> | <%= form.text_field :regard_fields_en %> |
<%= form.submit(class: "commit") %>
<% end %>