From 456c698d317e5ce9f601d5f6b52a8f3670defa20 Mon Sep 17 00:00:00 2001 From: Ruling-Mac Date: Wed, 21 Oct 2015 15:13:08 +0800 Subject: [PATCH] remove form from views --- app/views/digital_archives/index.html.erb | 23 ------------------- .../digital_archive/application.html.erb | 14 ----------- 2 files changed, 37 deletions(-) delete mode 100644 app/views/layouts/digital_archive/application.html.erb diff --git a/app/views/digital_archives/index.html.erb b/app/views/digital_archives/index.html.erb index e330dc0..648b75c 100644 --- a/app/views/digital_archives/index.html.erb +++ b/app/views/digital_archives/index.html.erb @@ -1,24 +1 @@ -<%= form_tag "/zh_tw/DigitalArchive", :method => 'get' do %> -

- - <%= text_field_tag :title, params[:title] %> -
- - <%= text_field_tag :character, params[:character] %> -
- - <%= text_field_tag :location, params[:location] %> -
- - <%= text_field_tag :description, params[:description] %> -
- - <%= date_field_tag :item_date_low, params[:item_date_low]%> - - <%= date_field_tag :item_date_high, params[:item_date_high]%> -

- <%= submit_tag "Search", :name => nil , :class => "btn btn-primary"%> -

-<% end %> - <%= render_view %> \ No newline at end of file diff --git a/app/views/layouts/digital_archive/application.html.erb b/app/views/layouts/digital_archive/application.html.erb deleted file mode 100644 index a697aa8..0000000 --- a/app/views/layouts/digital_archive/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DigitalArchive - <%= stylesheet_link_tag "digital_archive/application", media: "all" %> - <%= javascript_include_tag "digital_archive/application" %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - -