Sha256: 60cb9d9e984f85b09e50f84b67de14db533b501b1efa478e986fb37f409b418d

Contents?: true

Size: 1.24 KB

Versions: 9

Compression:

Stored size: 1.24 KB

Contents

<%= form_for(mautic_connection.becomes(Mautic::Connection)) do |form| %>
  <% if mautic_connection.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(mautic_connection.errors.count, "error") %> prohibited this mautic_connection from being
        saved:</h2>

      <ul>
        <% mautic_connection.errors.full_messages.each do |message| %>
          <li><%= message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= form.label :type %>
    <%= form.select :type, %w(Mautic::Connections::Oauth2) %>
  </div>

  <div class="field">
    <%= form.label :url %>
    <%= form.text_field :url, id: :mautic_connection_url %>
  </div>
  <% if form.object.persisted? %>
    <div class="field">
      <label>Now generate pair of tokens with this callback url:</label>
      <pre><%= @mautic_connection.send :callback_url, controller %></pre>
    </div>

    <div class="field">
      <%= form.label :client_id %>
      <%= form.text_field :client_id, id: :mautic_connection_client_id %>
    </div>

    <div class="field">
      <%= form.label :secret %>
      <%= form.text_field :secret, id: :mautic_connection_secret %>
    </div>

  <% end %>
  <div class="actions">
    <%= form.submit %>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mautic-3.1.0 app/views/mautic/connections/_form.html.erb
mautic-3.0.0 app/views/mautic/connections/_form.html.erb
mautic-2.6.1 app/views/mautic/connections/_form.html.erb
mautic-2.6.0 app/views/mautic/connections/_form.html.erb
mautic-2.5.0 app/views/mautic/connections/_form.html.erb
mautic-2.4.0 app/views/mautic/connections/_form.html.erb
mautic-2.3.11 app/views/mautic/connections/_form.html.erb
mautic-2.3.10 app/views/mautic/connections/_form.html.erb
mautic-2.3.9 app/views/mautic/connections/_form.html.erb