summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/assets/show.html.erb21
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