add.html convert to add.html.erb done

This commit is contained in:
Rueshyna 2012-11-16 15:33:31 +08:00
parent b51397d2e2
commit e60480a4be
1 changed files with 27 additions and 26 deletions

View File

@ -1,7 +1,8 @@
<%= form_for @writing_journal, url: desktop_publications_journal_p_add_path do |f| %>
<div class="toolbar hh2">
<div class="fn_g hp">
<button class="fn_btn hh2 thmc2 thmtxt">Save</button>
<button class="fn_btn hh2 admbg2">Cancel</button>
<%= button_tag "Save", name: "commit", value: "Save", class: "fn_btn hh2 thmc2 thmtxt" %>
<%= button_tag "Cancel", name: "commit", value: "Cancel", class: "fn_btn hh2 thmc2 thmtxt" %>
</div>
<div class="hh2 hp sdm">
<div class="sdm_t hh2">Entry Year</div>
@ -44,7 +45,6 @@
<div class="scrollbar sb_h vp"><div class="track"><div class="thumb thmc2"><div class="end"></div></div></div></div>
<div class="viewport">
<div class="overview">
<%= form_for @writing_journal, url: desktop_publications_journal_p_add_path do |f| %>
<div class="s_grid_con s_form">
<ul>
<li class="s_grid_row">
@ -56,15 +56,14 @@
</li>
<li class="s_grid_row">
<div class="check_box_g">
<%= f.label :level_type ,t("personal_journal.level_type")%>
<%= label_tag("", "Journal Level") %>
<ul>
<% @level_types.each_with_index do |level_type, i| %>
<li>
<%= check_box_tag "field-#{i}",
level_type.id,
@writing_journal.journal_level_type_ids.include?(level_type.id)
%>
<%= label_tag("field-#{i}", level_type.title) %>
%><%= label_tag("field-#{i}", level_type.title) %>
<%= hidden_field_tag "field-#{i}", '' %>
</li>
<% end %>
@ -86,42 +85,35 @@
</li>
<li class="s_grid_row">
<%= label_tag("", "ISSN(ISBN)", class: "s_grid_2 s_grid") %>
<%= f.text_field :isbn, size: "15" ,value: "829872987", class: "s_grid_4 s_grid"%>
<%= label_tag("", "ISSN(ISBN)", class: "s_grid_2 s_grid") %><%= f.text_field :isbn, size: "20" ,value: "829872987", class: "s_grid_4 s_grid"%>
</li>
<li class="s_grid_row">
<%= label_tag("", "ISI No.", class: "s_grid_2 s_grid") %>
<%= f.text_field :isi, size: "20" ,value: "829872987", class: "s_grid_4 s_grid"%>
<%= label_tag("", "Volume No.", class: "s_grid_2 s_grid") %><%= f.text_field :vol_no, size: "20" ,value: "829872987", class: "s_grid_4 s_grid"%>
</li>
<li class="s_grid_row">
<%= label_tag("", "Volume No.", class: "s_grid_2 s_grid") %>
<%= f.text_field :vol_no, size: "20" ,value: "829872987", class: "s_grid_4 s_grid"%>
<%= label_tag("", "Issue No.", class: "s_grid_2 s_grid") %><%= f.text_field :issue_no, size: "20" ,value: "829872987", class: "s_grid_4 s_grid"%>
</li>
<li class="s_grid_row">
<%= label_tag("", "Issue No.", class: "s_grid_2 s_grid") %>
<%= f.text_field :issue_no, size: "20" ,value: "829872987", class: "s_grid_4 s_grid"%>
<%= label_tag("", "Total Pages", class: "s_grid_2 s_grid") %><%= f.text_field :total_pages, size: "20" ,value: "20", class: "s_grid_4 s_grid"%>
</li>
<li class="s_grid_row">
<%= label_tag("", "Pages", class: "s_grid_2 s_grid") %>
<%= f.text_field :form_to_start, size: "10" ,value: "1", class: "s_grid_1 s_grid"%>
<%= label_tag("", "to", class: "s_grid_1 s_grid") %>
<%= f.text_field :form_to_end, size: "10" ,value: "20", class: "s_grid_1 s_grid"%>
<%= label_tag("", "Pages", class: "s_grid_2 s_grid") %><%= label_tag("", "from", class: "s_grid_1 s_grid") %><%= f.text_field :form_to_start, size: "10" ,value: "1", class: "s_grid_1 s_grid"%><%= label_tag("", "to", class: "s_grid_1 s_grid") %><%= f.text_field :form_to_end, size: "10" ,value: "20", class: "s_grid_1 s_grid"%>
</li>
<li class="s_grid_row">
<%= label_tag("", "Reference URL", class: "s_grid_2 s_grid") %>
<%= f.text_field :url, size: "20" ,value: "www.sample.com", class: "s_grid_4 s_grid"%>
<%= label_tag("", "Reference URL", class: "s_grid_2 s_grid") %><%= f.text_field :url, size: "20" ,value: "www.sample.com", class: "s_grid_4 s_grid"%>
</li>
</ul>
</div>
<div class="s_grid_con s_form">
<ul>
<li class="s_grid_row">
<%= f.text_area :authors, size: "20x2", value: "Author", class: "s_grid_6 s_grid"%>
<%= f.text_area :authors, size: "20x2", value: "Authors", class: "s_grid_6 s_grid"%>
<span class="icon-plus input_append"></span>
</li>
<li class="s_grid_row">
@ -145,12 +137,16 @@
</li>
<li class="s_grid_row">
<%= label_tag("", "Date of Publication", class: "s_grid_2 s_grid") %>
<%= f.text_field :url, size: "20", value: "2012 / 05 / 01", class: "s_grid_4 s_grid"%>
<%= label_tag("", "Date of Publication", class: "s_grid_2 s_grid") %><%= f.text_field :publication_date, size: "20", value: "2012 / 05 / 01", class: "s_grid_4 s_grid"%>
</li>
<li class="s_grid_row">
<%= f.text_area :keyword, size: "20x10", value: "May Keywords", class: "s_grid_6 s_grid"%>
<%= f.text_field :keyword, size: "20", value: "Keywords", class: "s_grid_6 s_grid"%>
</li>
<li class="s_grid_row">
<%= f.text_field :tag, size: "20", value: "Tag", class: "s_grid_6 s_grid"%>
<span class="icon-plus input_append"></span>
</li>
<li class="s_grid_row">
@ -160,19 +156,24 @@
<li class="s_grid_row">
<%= label_tag("", "Full Text", class: "s_grid_2 s_grid") %>
</li>
<li class="s_grid_row">
<%= f.file_field :file, size: "20", class: "s_grid_4 s_grid"%>
</li>
<li class="s_grid_row">
<%= f.text_area :note, size: "20x2", value: "Note", class: "s_grid_6 s_grid"%>
</li>
</ul>
</div>
<div class="s_grid_con s_form">
<ul>
<%= f.text_area :abstract, size: "20x10", class: "s_grid_6 s_grid"%>
<li class="s_grid_row">
<%= f.text_area :abstract, size: "20x26", value: "Abstract", class: "s_grid_6 s_grid"%>
</li>
</ul>
</div>
<%end%>
</div>
</div>
</div>
<%end%>