mirror of https://github.com/docusealco/docuseal
parent
b498291b62
commit
e1cd62ff40
|
After Width: | Height: | Size: 357 B |
|
After Width: | Height: | Size: 395 B |
|
After Width: | Height: | Size: 474 B |
|
After Width: | Height: | Size: 647 B |
@ -0,0 +1,32 @@
|
||||
<% dashboard_templates_order = cookies.permanent[:dashboard_templates_order] || 'creation_date' %>
|
||||
<form action="<%= root_path %>" method="get" class="dropdown dropdown-top">
|
||||
<label tabindex="0" class="btn btn-sm h-10">
|
||||
<%= svg_icon('arrow_sort', class: 'w-5 h-5') %>
|
||||
</label>
|
||||
<ul tabindex="0" class="dropdown-content z-[10] menu p-2 shadow bg-base-100 rounded-box mb-1 min-w-48">
|
||||
<toggle-cookies data-value="name" data-key="dashboard_templates_order">
|
||||
<li>
|
||||
<button class="<%= 'bg-base-200' if dashboard_templates_order == 'name' %>">
|
||||
<%= svg_icon('sort_ascending_letters', class: 'w-4 h-4') %>
|
||||
<span class="whitespace-nowrap"><%= t('name_a_z') %></span>
|
||||
</button>
|
||||
</li>
|
||||
</toggle-cookies>
|
||||
<toggle-cookies data-value="recently_used" data-key="dashboard_templates_order">
|
||||
<li>
|
||||
<button class="<%= 'bg-base-200' if dashboard_templates_order == 'recently_used' %>">
|
||||
<%= svg_icon('sort_descending_small_big', class: 'w-4 h-4') %>
|
||||
<span class="whitespace-nowrap"><%= t('recently_used') %></span>
|
||||
</button>
|
||||
</li>
|
||||
</toggle-cookies>
|
||||
<toggle-cookies data-value="creation_date" data-key="dashboard_templates_order">
|
||||
<li>
|
||||
<button class="<%= 'bg-base-200' if dashboard_templates_order == 'creation_date' %>">
|
||||
<%= svg_icon('sort_descending_numbers', class: 'w-4 h-4') %>
|
||||
<span class="whitespace-nowrap"><%= t('creation_date') %></span>
|
||||
</button>
|
||||
</li>
|
||||
</toggle-cookies>
|
||||
</ul>
|
||||
</form>
|
||||
Loading…
Reference in new issue