mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
I considered adding a request spec, but figured it still doesnt' test the form, so better to use a full system spec.
23 lines
605 B
Plaintext
23 lines
605 B
Plaintext
= render :partial => 'spree/admin/shared/configuration_menu'
|
|
|
|
- content_for :page_title do
|
|
= t('.title')
|
|
|
|
= form_tag main_app.admin_connected_app_settings_path, :method => :put do
|
|
|
|
%fieldset
|
|
%legend= t('.enabled_legend')
|
|
|
|
= t('.info_html')
|
|
|
|
.field
|
|
- ConnectedApp::TYPES.each do |type|
|
|
%label
|
|
= check_box_tag("preferences[connected_apps_enabled][]", type,
|
|
Spree::Config.connected_apps_enabled&.split(',')&.include?(type))
|
|
= t('.connected_apps_enabled.' + type)
|
|
%br
|
|
|
|
.form-buttons
|
|
= button t(:update), 'icon-refresh'
|