User Settings
<%= render 'settings/navigation' %>
<%= form_for :settings, url: settings_path, method: :patch, data: { turbo_method: :patch, turbo: false } do |f| %>
Immich Integration
<%= f.label :immich_url, class: 'label' do %>
Immich URL
<% end %>
<%= f.url_field :immich_url, value: current_user.safe_settings.immich_url, class: "input input-bordered w-full pr-10", placeholder: 'http://192.168.0.1:2283' %>
The base URL of your Immich instance
<%#
%>
<%= icon 'mail', class: "text-primary mr-2" %> Email Preferences
<% unless DawarichSettings.self_hosted? || current_user.provider.blank? %>
<%= icon 'link', class: "text-primary mr-1" %> Connected Accounts
You've connected your account using the following OAuth provider:
<%= current_user.provider.capitalize %>
<% end %>
<%= f.submit "Save changes", class: "btn btn-primary" %>
<% end %>