mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
17 lines
600 B
Plaintext
17 lines
600 B
Plaintext
- 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.url), datetime: @current_file.updated_at)
|
|
%p= link_to t(".delete"), main_app.admin_terms_of_service_files_path, method: "delete", data: { confirm: t(".confirm_delete") }
|
|
- else
|
|
%p
|
|
= t(".no_files")
|
|
= t(".using_default_terms_html", tos_link: link_to_platform_terms)
|
|
|
|
= form_for [main_app, :admin, @new_file] do |f|
|
|
= f.label :attachment
|
|
= f.file_field :attachment
|
|
= f.submit
|