Sha256: 3aec1403a5211fd0207b75ff3afcf28f055a9969d64e6b288ffcf724d3c291e5

Contents?: true

Size: 1.94 KB

Versions: 2

Compression:

Stored size: 1.94 KB

Contents

<%= form_with model: bling_account, url: form_url do |form| %>
  <h6>Dados da conta</h6>
  <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 style="margin: 10px 0">
    <h6>Métodos de Pagamento</h6>
    <%= form.fields_for :payment_methods do |payment_form| %>
      <div>
        <%= payment_form.select :spree_payment_method_id, @payment_methods %>
        <%= payment_form.text_field :external_id %>
      </div>
    <% end %>
  </div>

  <div style="margin: 10px 0">
    <h6>Métodos de Envio</h6>
    <%= form.fields_for :shipping_methods do |shipping_form| %>
      <div>
        <%= shipping_form.select :spree_shipping_method_id, @shipping_methods %>
        <%= shipping_form.text_field :alias %>
      </div>
    <% end %>
  </div>

  <div style="margin: 10px 0">
    <h6>Vendedores</h6>
    <% 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

2 entries across 2 versions & 1 rubygems

Version Path
solidus_bling-2.0.5 app/views/spree/admin/accounts/_form.html.erb
solidus_bling-2.0.4 app/views/spree/admin/accounts/_form.html.erb