Browse Source

Merge pull request #68 from lexintegritastech/feature-enhance-ui

Add fields for search
pull/69/head
Alexander D. Bondoc 4 years ago committed by GitHub
parent
commit
dea6f7228f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 44
      app/components/document_advanced_search_component/document_advanced_search_component.html.erb

44
app/components/document_advanced_search_component/document_advanced_search_component.html.erb

@ -1,30 +1,46 @@
<%= form_tag(documents_path, method: :get) do %>
<div class="mb-3">
<%= text_field_tag :q, params[:q], placeholder: 'Full text search', class: "form-control" %>
<div class="mb-2">
<%= text_field_tag :q, params[:q], placeholder: 'Full text search', class: "form-control mb-0" %>
</div>
<hr class="simple">
<div class="mb-3">
<hr class="simple mb-0">
<div class="mb-2">
<label for="exampleFormControlInput1" class="form-label text-white">G.R. Number</label>
<%= text_field_tag :reference_number, params[:reference_number], class: "form-control" %>
<%= text_field_tag :reference_number, params[:reference_number], class: "form-control mb-0" %>
</div>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label text-white">Short title</label>
<%= text_field_tag :title, params[:short_title], class: "form-control" %>
<div class="mb-2">
<label for="exampleFormControlInput1" class="form-label text-white">Title</label>
<%= text_field_tag :title, params[:short_title], class: "form-control mb-0" %>
</div>
<div class="mb-3">
<div class="mb-2">
<label for="exampleFormControlInput1" class="form-label text-white">Ponente</label>
<%= text_field_tag :title, params[:short_title], class: "form-control mb-0" %>
</div>
<div class="mb-2">
<label for="exampleFormControlInput1" class="form-label text-white">Syllabus</label>
<%= text_field_tag :title, params[:short_title], class: "form-control mb-0" %>
</div>
<div class="d-flex align-items-end">
<div class="mb-2 w-100 pe-2">
<label for="exampleFormControlInput1" class="form-label text-white">Year</label>
<%= select_tag :year, options_for_select(years, params[:year]), class: "form-select", include_blank: true %>
</div>
<div class="mb-3">
<div class="mb-2 w-100 ps-2">
<%= select_tag :year, options_for_select(years, params[:year]), class: "form-select", include_blank: true %>
</div>
</div>
<hr class="simple mb-0">
<div class="mb-2">
<label for="exampleFormControlInput1" class="form-label text-white">Citation Finder</label>
<%= text_field_tag :citation_finder, params[:citation_finder], class: "form-control" %>
<%= text_field_tag :citation_finder, params[:citation_finder], class: "form-control mb-0" %>
</div>
<div class="d-flex justify-content-end mt-5">
<button type="button" class="btn btn-success me-2 mb-3">Refresh</button>
<button type="submit" class="btn btn-danger mb-3">Search</button>
<div class="d-flex justify-content-end mt-3">
<button type="reset" class="btn btn-success me-2 mb-2"><i class="fas fa-sync"></i> Refresh</button>
<button type="submit" class="btn btn-danger mb-2">Search</button>
</div>
<% end %>

Loading…
Cancel
Save