2 changed files with 31 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||||||
|
class DocumentAdvancedSearhComponent < BaseComponent |
||||||
|
attr_reader :opts |
||||||
|
|
||||||
|
def initialize(current_user: opts: {}) |
||||||
|
@opts = opts |
||||||
|
end |
||||||
|
end |
||||||
@ -0,0 +1,24 @@ |
|||||||
|
<%= form_tag(documents_path, method: :get) do %> |
||||||
|
<div class="row"> |
||||||
|
<%= text_field_tag :q, params[:q], placeholder: 'Full text search', class: "form-control" %> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="row"> |
||||||
|
<%= text_field_tag :reference_number, params[:reference_number], placeholder: 'G.R. Number', class: "form-control" %> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="row"> |
||||||
|
<%= text_field_tag :title, params[:short_title], placeholder: 'short_title', class: "form-control" %> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="row"> |
||||||
|
<div class="col-sm-12 p-2"> |
||||||
|
<%= text_field_tag :citation_finder, params[:citation_finder], class: "form-control", placeholder: "Citation Finder" %> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div class="row"> |
||||||
|
<button type="submit" class="btn btn-primary">Search</button> |
||||||
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> |
||||||
|
</div> |
||||||
|
<% end %> |
||||||
Loading…
Reference in new issue