summaryrefslogtreecommitdiff
path: root/app/views/assets
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/assets')
-rw-r--r--app/views/assets/edit.html.erb17
-rw-r--r--app/views/assets/show.html.erb11
2 files changed, 11 insertions, 17 deletions
diff --git a/app/views/assets/edit.html.erb b/app/views/assets/edit.html.erb
index 5214e082..610ae20a 100644
--- a/app/views/assets/edit.html.erb
+++ b/app/views/assets/edit.html.erb
@@ -36,23 +36,6 @@
36 ) %> 36 ) %>
37 </div> 37 </div>
38 38
39 <div class="layout_row_label"><%= t("assets.form.attach_to_page") %></div>
40 <div class="layout_row_content">
41 <div class="restore_picker">
42 <%= text_field_tag :asset_node_search_term, @attach_node&.title,
43 :placeholder => t("assets.form.attach_search_placeholder"), :autocomplete => "off" %>
44 <div id="asset_node_search_results" class="search_results" style="display: none"></div>
45 </div>
46 <%= hidden_field_tag :node_id, @attach_node&.id %>
47 <span class="field_hint"><%= t("assets.form.attach_hint") %></span>
48 </div>
49
50 <div class="layout_row_label"></div>
51 <div class="layout_row_content">
52 <label><%= check_box_tag :headline, "1" %> <%= t("assets.form.as_headline") %></label>
53 <span class="field_hint"><%= t("assets.form.headline_hint") %></span>
54 </div>
55
56 <div class="layout_row_label"><%= t("admin.columns.actions") %></div> 39 <div class="layout_row_label"><%= t("admin.columns.actions") %></div>
57 <div class="layout_row_content info_group"> 40 <div class="layout_row_content info_group">
58 <div class="info_group_items"> 41 <div class="info_group_items">
diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb
index d76d312b..f31d34e1 100644
--- a/app/views/assets/show.html.erb
+++ b/app/views/assets/show.html.erb
@@ -47,6 +47,17 @@
47 <%= link_to new_node_path(:asset_id => @asset.id), :class => "action_button" do %> 47 <%= link_to new_node_path(:asset_id => @asset.id), :class => "action_button" do %>
48 <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> <%= t(".new_page_with_attachment") %> 48 <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> <%= t(".new_page_with_attachment") %>
49 <% end %> 49 <% end %>
50 <%= form_tag attach_to_node_asset_path(@asset), :class => "asset_attach_form" do %>
51 <div class="restore_picker">
52 <%= text_field_tag :asset_node_search_term, nil,
53 :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>
56 <%= hidden_field_tag :node_id, nil %>
57 <label><%= check_box_tag :headline, "1" %> <%= t("assets.form.as_headline") %></label>
58 <%= submit_tag t(".attach_button") %>
59 <span class="field_hint"><%= t("assets.form.attach_hint") %></span>
60 <% end %>
50 </div> 61 </div>
51 62
52 <div class="layout_row_label"><%= t(".public_path") %></div> 63 <div class="layout_row_label"><%= t(".public_path") %></div>