Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
645: Gems and dockerfile updates test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Boeira committed Dec 11, 2023
1 parent 0361edc commit b6fd388
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions app/views/new_admin/users/_punches.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@
</p>
<% end %>
</div>

<div class="flex-auto w-20">
<div class="px-2 py-2 w-fit h-40 max-w-sm dark:bg-gray-800 rounded">
<div class="px-2 py-2 w-fit h-40 max-w-sm dark:bg-gray-800 rounded">
<h3 class="mb-2 text-sm text-gray-600 dark:text-gray-400 font-semibold">
<%= t ('punches_filter.filter') %>
</h3>
</h3>
<%= form_with url: new_admin_admin_user_path(@user, anchor: "user_punches"), method: :get do |form| %>
<h4 class="mb-2 text-xs font-semibold tracking-wide text-left text-gray-500 uppercase" >
<%= t ('punches_filter.range') %>
Expand All @@ -103,13 +103,13 @@
to = params.dig(:punch, :to)
%>
<div class="input_container mb-4">
<%= form.date_field :from, value: :from, class: "mr-2 bg-gray-100 font-semibold rounded-lg text-gray-600 text-sm dark:bg-slate-700 dark:text-gray-400" %>
<%= form.date_field :to, value: :to, class: "bg-gray-100 font-semibold rounded-lg text-gray-600 text-sm dark:bg-slate-700 dark:text-gray-400" %>
<%= form.date_field :from, value: from, class: "mr-2 bg-gray-100 font-semibold rounded-lg text-gray-600 text-sm dark:bg-slate-700 dark:text-gray-400" %>
<%= form.date_field :to, value: to, class: "bg-gray-100 font-semibold rounded-lg text-gray-600 text-sm dark:bg-slate-700 dark:text-gray-400" %>
</div>
<%= form.submit "#{t('punches_filter.to_filter')}", formmethod: :get, class: "px-4 py-2 mr-2 cursor-pointer font-semibold text-sm text-white transition-colors duration-150 rounded-lg bg-primary-600 hover:bg-primary-700" %>
<%= link_to "#{t('punches_filter.clean_filter')}", new_admin_admin_user_path(@user, anchor: "user_punches"), class: "px-4 py-2 cursor-pointer font-semibold text-sm text-white transition-colors duration-150 rounded-lg bg-slate-700 hover:bg-gray-600" %>
<%= link_to "#{t('punches_filter.clean_filter')}", new_admin_admin_user_path(@user, anchor: "user_punches"), class: "px-4 py-2 cursor-pointer font-semibold text-sm text-white transition-colors duration-150 rounded-lg bg-slate-700 hover:bg-gray-600" %>
<% end %>
</div>
</div>
<div class="py-4">
<%= link_to "#{t('punches_filter.download_xls')}", '#', class: "inline-flex items-center w-full text-sm font-semibold text-gray-400 duration-150 underline hover:no-underline dark:hover:text-gray-200" %>
<%= link_to "#{t('punches_filter.all_punches')}", '#', class: "inline-flex items-center w-full text-sm font-semibold text-gray-400 duration-150 underline hover:no-underline dark:hover:text-gray-200" %>
Expand Down
4 changes: 2 additions & 2 deletions spec/features/admin/evaluations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
within '#filters_sidebar_section' do
expect(page).to have_css('label', text: 'Criado em')

fill_in 'q_created_at_gteq_datetime', with: 9.months.ago
fill_in 'q_created_at_lteq_datetime', with: 7.months.ago
fill_in 'q_created_at_gteq', with: 9.months.ago
fill_in 'q_created_at_lteq', with: 7.months.ago

click_button 'Filtrar'
end
Expand Down

0 comments on commit b6fd388

Please sign in to comment.