mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 19:44:09 +00:00
* Add data enrichment * Make data enrichment optional for self-hosters * Add categories to data enrichment * Only update category and merchant if nil * Fix name overrides * Lint fixes
19 lines
841 B
Plaintext
19 lines
841 B
Plaintext
<div class="space-y-4">
|
|
<div class="flex items-center justify-between">
|
|
<div class="space-y-1">
|
|
<p class="text-sm"><%= t(".title") %></p>
|
|
<p class="text-gray-500 text-sm"><%= t(".description") %></p>
|
|
</div>
|
|
|
|
<%= styled_form_with model: Setting.new,
|
|
url: settings_hosting_path,
|
|
method: :patch,
|
|
data: { controller: "auto-submit-form", "auto-submit-form-trigger-event-value": "blur" } do |form| %>
|
|
<div class="relative inline-block select-none">
|
|
<%= form.check_box :data_enrichment_enabled, class: "sr-only peer", "data-auto-submit-form-target": "auto", "data-autosubmit-trigger-event": "input" %>
|
|
<%= form.label :data_enrichment_enabled, " ".html_safe, class: "maybe-switch" %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|