mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
19 lines
678 B
Plaintext
19 lines
678 B
Plaintext
- if spree_current_user.admin?
|
|
= render 'spree/admin/shared/configuration_menu'
|
|
|
|
- content_for :page_title do
|
|
= t(".title")
|
|
|
|
.admin-current-terms-of-service
|
|
- if @current_file
|
|
%p= t(".current_terms_html", tos_link: link_to(t(".terms_of_service"), @current_file.attachment), datetime: @current_file.updated_at)
|
|
%p= link_to t(".delete"), main_app.admin_terms_of_service_files_path, data: { method: :delete, "ujs-navigate": "false", confirm: t(".confirm_delete") }
|
|
- else
|
|
%p
|
|
= t(".no_files")
|
|
|
|
= form_for [main_app, :admin, @new_file] do |f|
|
|
= f.label :attachment, t(".attachment")
|
|
= f.file_field :attachment
|
|
= f.submit t(".create_terms_of_service")
|