diff --git a/app/javascript/src/application/table.scss b/app/javascript/src/application/table.scss new file mode 100644 index 0000000..140840b --- /dev/null +++ b/app/javascript/src/application/table.scss @@ -0,0 +1,8 @@ + +.table > :not(:first-child) { + border-top: none !important; +} + +thead tr { + border-bottom: 2px solid #782525 +} diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb index 18ba62a..962f839 100644 --- a/app/views/documents/index.html.erb +++ b/app/views/documents/index.html.erb @@ -1,23 +1,22 @@ -
-
- <%= form_tag(documents_path, method: :get) do %> -
-
- <%= text_field_tag :q, params[:q], class: "form-control" %> -
-
- <%= submit_tag "Search", class: "btn btn-primary text-dark" %> - +
+ <%= form_tag(documents_path, method: :get) do %> +
+
+ <%= text_field_tag :q, params[:q], placeholder: 'Full text search', class: "form-control" %> +
- - -
- <% if @search_params.present? %> -
<%= render PaginationComponent.new(data: @jurisprudences) %>
- - - - - - + + + <% end %> + + +<% if @search_params.present? %> +
<%= render PaginationComponent.new(data: @jurisprudences) %>
+
+
+
+
+
Reference No. Title Date
+ + + + + - - <%= render(DocumentIndexTableComponent.with_collection(@jurisprudences, current_user: current_user, opts: {})) %> - -
Reference No. Title Date
- <% end %> + + <%= render(DocumentIndexTableComponent.with_collection(@jurisprudences, current_user: current_user, opts: {})) %> + + +
+
-
+<% end %> \ No newline at end of file diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ae1eb79..3012ab6 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -20,7 +20,7 @@
<% end %> -