Sha256: 451836481258245a9100b6a05663556b9e306762dded9f9f05a36554f6a01e08

Contents?: true

Size: 1.88 KB

Versions: 4

Compression:

Stored size: 1.88 KB

Contents

<%= form_with model: bling_account, url: form_url do |form| %>
  <div>
    <%= form.label :app_name, "Nome do Aplicativo: " %>
    <%= form.text_field :app_name %>
  </div>

  <div>
    <%= form.label :client_id, "Client ID: " %>
    <%= form.text_field :client_id %>
  </div>

  <div>
    <%= form.label :client_secret, "Client Secret: " %>
    <%= form.text_field :client_secret %>
  </div>

  <div>
    <%= form.label :refresh_token, "Refresh Token: " %>
    <%= form.text_field :refresh_token %>
  </div>

  <div>
    <%= form.label :api_base_url, "API URL: " %>
    <%= form.text_field :api_base_url %>
  </div>

  <div>
    <%= form.label :external_store_id, "ID da Loja no Bling: " %>
    <%= form.text_field :external_store_id %>
  </div>

  <div>
    <%= form.label :incoming_category_id, "ID da Categoria de Receita: " %>
    <%= form.text_field :incoming_category_id %>
  </div>

  <div>
    <% bling_account.payment_methods.each do |payment_method| %>
      <%= form.fields_for :payment_methods do |payment_form| %>
        <%= payment_form.select :spree_payment_method_id, @payment_methods %>
        <%= payment_form.text_field :external_id %>
      <% end %>
    <% end %>
  </div>

  <div>
    <% bling_account.shipping_methods.each do |shipping_method| %>
      <%= form.fields_for :shipping_methods do |shipping_form| %>
        <%= shipping_form.select :spree_shipping_method_id, @shipping_methods %>
        <%= shipping_form.text_field :alias %>
      <% end %>
    <% end %>
  </div>

  <div>
    <% bling_account.sellers.each do |seller| %>
      <%= form.fields_for :sellers do |seller_form| %>
        <%= seller_form.label :name, "Nome do Vendedor: " %>
        <%= seller_form.text_field :name %>

        <%= seller_form.label :external_id, "ID do Vendedor: " %>
        <%= seller_form.text_field :external_id %>
      <% end %>
    <% end %>
  </div>

  <%= form.submit "Salvar" %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_bling-2.0.3 app/views/spree/admin/accounts/_form.html.erb
solidus_bling-2.0.2 app/views/spree/admin/accounts/_form.html.erb
solidus_bling-2.0.1 app/views/spree/admin/accounts/_form.html.erb
solidus_bling-2.0.0 app/views/spree/admin/accounts/_form.html.erb