Browse Source

removed redundant specific forms

pull/608/head
JG 3 years ago
parent
commit
7b65d73829
  1. 16
      app/components/log_search_component.html.erb
  2. 9
      app/components/log_search_component.rb

16
app/components/log_search_component.html.erb

@ -1,16 +0,0 @@
<%= form_with model: @case_logs, url: "/logs", method: "get", local: true do |f| %>
<div class="app-search govuk-!-margin-bottom-4">
<div class="govuk-form-group app-search__form-group">
<label class="govuk-label govuk-!-margin-bottom-2" for="search-field">
<%= label %>
</label>
<input class="govuk-input app-search__input" id="search-field" name="search-field" type="search" autocomplete="off">
</div>
<button class="govuk-button app-search__button undefined" data-module="govuk-button">
Search
</button>
</div>
<% end %>

9
app/components/log_search_component.rb

@ -1,9 +0,0 @@
class LogSearchComponent < ViewComponent::Base
attr_reader :current_user, :label
def initialize(current_user:, label:)
@current_user = current_user
@label = label
super
end
end
Loading…
Cancel
Save