%= form_with url: admin_melhor_envio_path("melhor_envio"), method: :put do |form| %>
Melhor Envio
<%= form.label :postal_code_from, "CEP de Origem: " %>
<%= form.text_field :postal_code_from, value: @me_preferences[:postal_code_from] %>
Serviços Disponíveis: <%= @me_preferences[:services]&.join(", ") %>
<%= form.label :client_id, "Client ID: " %>
<%= form.text_field :client_id, value: @me_preferences[:client_id] %>
<%= form.label :client_secret, "Client Secret: " %>
<%= form.text_field :client_secret, value: @me_preferences[:client_secret] %>
<%= form.label :access_token, "Access Token: " %>
<%= form.text_field :access_token, value: @me_preferences[:access_token] %>
<%= form.label :refresh_token, "Refresh Token: " %>
<%= form.text_field :refresh_token, value: @me_preferences[:refresh_token] %>
Expiração do token: <%= @me_preferences[:token_expires_in] %>
<%= form.submit "Salvar", style: "margin-top: 10px;" %>
<% end %>