diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-09 14:23:17 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-09 14:23:17 +0200 |
| commit | 44b503f5289705727f0c06392813face855f60f4 (patch) | |
| tree | c498d9e2d7cbda7e91586a2b5cbfe2c96f5ae3d6 /app/views | |
| parent | 616a0d2d2ba15a7e176938ee829d60366fb6a9c2 (diff) | |
Give the attach picker and the create-page action their own rows
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/assets/show.html.erb | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb index f31d34e1..60d63290 100644 --- a/app/views/assets/show.html.erb +++ b/app/views/assets/show.html.erb | |||
| @@ -44,19 +44,28 @@ | |||
| 44 | <% else %> | 44 | <% else %> |
| 45 | <%= t(".not_attached") %> | 45 | <%= t(".not_attached") %> |
| 46 | <% end %> | 46 | <% end %> |
| 47 | <%= link_to new_node_path(:asset_id => @asset.id), :class => "action_button" do %> | 47 | </div> |
| 48 | <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> <%= t(".new_page_with_attachment") %> | 48 | |
| 49 | <% end %> | 49 | <div class="layout_row_label"><%= t("assets.form.attach_to_page") %></div> |
| 50 | <div class="layout_row_content"> | ||
| 50 | <%= form_tag attach_to_node_asset_path(@asset), :class => "asset_attach_form" do %> | 51 | <%= form_tag attach_to_node_asset_path(@asset), :class => "asset_attach_form" do %> |
| 51 | <div class="restore_picker"> | 52 | <div class="restore_picker"> |
| 52 | <%= text_field_tag :asset_node_search_term, nil, | 53 | <%= text_field_tag :asset_node_search_term, nil, |
| 53 | :placeholder => t("assets.form.attach_search_placeholder"), :autocomplete => "off" %> | 54 | :placeholder => t("assets.form.attach_search_placeholder"), :autocomplete => "off" %> |
| 54 | <div id="asset_node_search_results" class="search_results" style="display: none"></div> | 55 | <div id="asset_node_search_results" class="search_results" style="display: none"></div> |
| 55 | </div> | 56 | </div> |
| 56 | <%= hidden_field_tag :node_id, nil %> | ||
| 57 | <label><%= check_box_tag :headline, "1" %> <%= t("assets.form.as_headline") %></label> | 57 | <label><%= check_box_tag :headline, "1" %> <%= t("assets.form.as_headline") %></label> |
| 58 | <%= submit_tag t(".attach_button") %> | 58 | <%= button_tag :type => "submit", :class => "action_button" do %> |
| 59 | <span class="field_hint"><%= t("assets.form.attach_hint") %></span> | 59 | <%= icon("paperclip", library: "tabler", "aria-hidden": true) %> <%= t(".attach_button") %> |
| 60 | <% end %> | ||
| 61 | <span class="field_hint"><%= t(".attach_hint") %></span> | ||
| 62 | <% end %> | ||
| 63 | </div> | ||
| 64 | |||
| 65 | <div class="layout_row_label"><%= t(".new_page") %></div> | ||
| 66 | <div class="layout_row_content"> | ||
| 67 | <%= link_to new_node_path(:asset_id => @asset.id), :class => "action_button" do %> | ||
| 68 | <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> <%= t(".new_page_with_attachment") %> | ||
| 60 | <% end %> | 69 | <% end %> |
| 61 | </div> | 70 | </div> |
| 62 | 71 | ||
