|
1 |
| -<%= render 'shared/modal', header: @header do %> |
2 |
| - <div |
3 |
| - data-controller="snippets" |
4 |
| - data-snippets-selected-folder-id="<%= @current_folder_id %>" |
5 |
| - data-snippets-original-folder-id="<%= @current_folder_id %>" |
6 |
| - data-snippets-confirm-path="<%= file_snippet_path(@snippet) %>" |
7 |
| - > |
8 |
| - <input data-action="keyup->snippets#modal_search" class="move-snippet--search" type="search" placeholder="Find a folder..."> |
9 |
| - <div class="move-snippet--list" data-target="snippets.list"> |
10 |
| - <% @folders.each do |folder| %> |
11 |
| - <div |
12 |
| - data-action="click->snippets#select_folder" |
13 |
| - data-folder-id="<%= folder.id %>" |
14 |
| - data-target="snippets.listItem" |
15 |
| - data-filter-key="<%= folder.name %>" |
16 |
| - class="<%= folder.id == @current_folder_id ? 'move-snippet--item-selected' : 'move-snippet--item' %>" |
17 |
| - > |
18 |
| - <span><%= folder.name %></span> |
19 |
| - <% if folder.id == @current_folder_id %> |
20 |
| - <img id="selected-checkmark" src="/icons/checked.svg" width="14"> |
21 |
| - <% end %> |
22 |
| - </div> |
23 |
| - <% end %> |
24 |
| - </div> |
25 |
| - <div class="move-snippet--buttons"> |
26 |
| - <button data-action="click->modal#close" class="button--cta-cancel">CANCEL</button> |
27 |
| - <button |
28 |
| - data-action="click->snippets#file" |
29 |
| - data-target="snippets.moveButton" |
30 |
| - class="button--cta-disabled" |
31 |
| - disabled |
| 1 | +<div |
| 2 | + data-controller="snippets" |
| 3 | + data-snippets-selected-folder-id="<%= @current_folder_id %>" |
| 4 | + data-snippets-original-folder-id="<%= @current_folder_id %>" |
| 5 | + data-snippets-confirm-path="<%= file_snippet_path(@snippet) %>" |
| 6 | +> |
| 7 | + <input data-action="keyup->snippets#modal_search" class="move-snippet--search" type="search" placeholder="Find a folder..."> |
| 8 | + <div class="move-snippet--list" data-target="snippets.list"> |
| 9 | + <% @folders.each do |folder| %> |
| 10 | + <div |
| 11 | + data-action="click->snippets#select_folder" |
| 12 | + data-folder-id="<%= folder.id %>" |
| 13 | + data-target="snippets.listItem" |
| 14 | + data-filter-key="<%= folder.name %>" |
| 15 | + class="<%= folder.id == @current_folder_id ? 'move-snippet--item-selected' : 'move-snippet--item' %>" |
32 | 16 | >
|
33 |
| - <%= @header.upcase %> |
34 |
| - </button> |
35 |
| - </div> |
| 17 | + <span><%= folder.name %></span> |
| 18 | + <% if folder.id == @current_folder_id %> |
| 19 | + <img id="selected-checkmark" src="/icons/checked.svg" width="14"> |
| 20 | + <% end %> |
| 21 | + </div> |
| 22 | + <% end %> |
36 | 23 | </div>
|
37 |
| -<% end %> |
| 24 | + <div class="move-snippet--buttons"> |
| 25 | + <button data-action="click->modal#close" class="button--cta-cancel">CANCEL</button> |
| 26 | + <button |
| 27 | + data-action="click->snippets#file" |
| 28 | + data-target="snippets.moveButton" |
| 29 | + class="button--cta-disabled" |
| 30 | + disabled |
| 31 | + > |
| 32 | + <%= @header.upcase %> |
| 33 | + </button> |
| 34 | + </div> |
| 35 | +</div> |
0 commit comments