|
94 | 94 | <h3 class="mb-2 text-sm text-gray-600 dark:text-gray-400 font-semibold"> |
95 | 95 | <%= t ('punches_filter.filter') %> |
96 | 96 | </h3> |
97 | | - <%= form_with url: new_admin_show_user_path(@user, anchor: "user_punches"), method: :get do |form| %> |
| 97 | + <%= form_with url: new_admin_admin_user_path(@user, anchor: "user_punches"), method: :get do |form| %> |
98 | 98 | <h4 class="mb-2 text-xs font-semibold tracking-wide text-left text-gray-500 uppercase" > |
99 | 99 | <%= t ('punches_filter.range') %> |
100 | 100 | </h4> |
|
103 | 103 | to = params.dig(:punch, :to) |
104 | 104 | %> |
105 | 105 | <div class="input_container mb-4"> |
106 | | - <%= 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" %> |
107 | | - <%= 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" %> |
| 106 | + <%= 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" %> |
| 107 | + <%= 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" %> |
108 | 108 | </div> |
109 | 109 | <%= 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" %> |
110 | | - <%= link_to "#{t('punches_filter.clean_filter')}", new_admin_show_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" %> |
| 110 | + <%= 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" %> |
111 | 111 | <% end %> |
112 | 112 | </div> |
113 | 113 | <div class="py-4"> |
|
0 commit comments