You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
1.0 KiB

<div class="card mt-2 g-3">
<div class="card-header mt-1 col-sm-12">
<%= form_tag(documents_path, method: :get) do %>
<div class="row">
<div class="col-sm-8 p-2">
<div class="form-floating">
<%= text_field_tag :q, params[:q], class: "form-control" %>
</div>
</div>
<div class="col-sm-4 p-2">
<%= submit_tag "Search", class: "btn btn-primary text-dark" %>
<button class="btn btn-info"> Advanced Search </button>
</div>
</div>
<% end %>
</div>
<div class="card-body col-sm-12 tableFixHead p-0 mt-1">
<table class="table table-striped table-hover mb-0">
<thead>
<th class="bg-light"> Reference No. </th>
<th class="bg-light"> Title </th>
<th class="bg-light"> Date </th>
<th class="bg-light"> Subject </th>
</thead>
<tbody>
<%= render(DocumentIndexTableComponent.with_collection(@jurisprudences, current_user: current_user)) %>
</tbody>
</table>
</div>
</div>