From e60480a4be82dfe48aa2251c58e41864d7d04e26 Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Fri, 16 Nov 2012 15:33:31 +0800 Subject: [PATCH] add.html convert to add.html.erb done --- app/views/desktop/journal_pages/add.html.erb | 53 ++++++++++---------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/app/views/desktop/journal_pages/add.html.erb b/app/views/desktop/journal_pages/add.html.erb index 73c68114..cede3c17 100644 --- a/app/views/desktop/journal_pages/add.html.erb +++ b/app/views/desktop/journal_pages/add.html.erb @@ -1,7 +1,8 @@ +<%= form_for @writing_journal, url: desktop_publications_journal_p_add_path do |f| %>
- - + <%= 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" %>
Entry Year
@@ -44,7 +45,6 @@
- <%= form_for @writing_journal, url: desktop_publications_journal_p_add_path do |f| %>
  • @@ -56,15 +56,14 @@
  • - <%= f.label :level_type ,t("personal_journal.level_type")%> + <%= label_tag("", "Journal Level") %>
      <% @level_types.each_with_index do |level_type, i| %>
    • <%= 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}", '' %>
    • <% end %> @@ -86,42 +85,35 @@
    • - <%= 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"%>
    • - <%= 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"%>
    • - <%= 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"%>
    • - <%= 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"%>
    • - <%= 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"%>
    • - <%= 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"%>
    • - <%= 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"%> +
    • @@ -145,12 +137,16 @@
    • - <%= 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"%>
    • - <%= 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"%> +
    • + +
    • + <%= f.text_field :tag, size: "20", value: "Tag", class: "s_grid_6 s_grid"%> +
    • @@ -160,19 +156,24 @@
    • <%= label_tag("", "Full Text", class: "s_grid_2 s_grid") %> +
    • +
    • <%= f.file_field :file, size: "20", class: "s_grid_4 s_grid"%>
    • + +
    • + <%= f.text_area :note, size: "20x2", value: "Note", class: "s_grid_6 s_grid"%> +
      - <%= f.text_area :abstract, size: "20x10", class: "s_grid_6 s_grid"%>
    • <%= f.text_area :abstract, size: "20x26", value: "Abstract", class: "s_grid_6 s_grid"%>
    - <%end%>
+<%end%>