Adds styles to admin site customization documents
This commit is contained in:
@@ -14,8 +14,8 @@ class Admin::SiteCustomization::DocumentsController < Admin::SiteCustomization::
|
|||||||
notice = t("admin.documents.create.success_notice")
|
notice = t("admin.documents.create.success_notice")
|
||||||
redirect_to admin_site_customization_documents_path, notice: notice
|
redirect_to admin_site_customization_documents_path, notice: notice
|
||||||
else
|
else
|
||||||
notice = t("admin.documents.create.unable_notice")
|
flash.now[:error] = t("admin.documents.create.unable_notice")
|
||||||
redirect_to new_admin_site_customization_document_path, notice: notice
|
render :new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
<%= link_to t("admin.shared.delete"),
|
<%= link_to t("admin.shared.delete"),
|
||||||
admin_site_customization_document_path(document),
|
admin_site_customization_document_path(document),
|
||||||
method: :delete,
|
method: :delete,
|
||||||
|
class: "button hollow alert",
|
||||||
data: { confirm: t("admin.actions.confirm") } %>
|
data: { confirm: t("admin.actions.confirm") } %>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<h2><%= t("admin.documents.new.title") %></h2>
|
<h2><%= t("admin.documents.new.title") %></h2>
|
||||||
|
|
||||||
<%= form_for @document,
|
<%= form_for @document,
|
||||||
url: admin_site_customization_documents_path,
|
url: admin_site_customization_documents_path do |f| %>
|
||||||
multipart: true do |f| %>
|
<%= f.file_field 'attachment', label: t("admin.documents.new.label_attachment") %>
|
||||||
|
|
||||||
<%= f.file_field 'attachment', { label: false } %>
|
<div class="margin-top">
|
||||||
<%= f.submit t("admin.documents.new.submit_button") %>
|
<%= f.submit t("admin.documents.new.submit_button"), class: "button success" %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user