26 lines
1.2 KiB
Plaintext
26 lines
1.2 KiB
Plaintext
|
|
<section class="sessions shadow">
|
|
<div class="content">
|
|
<h2><%= @token.client_application.user.username %> CARTO</h2>
|
|
<p class="margin15 light"><%= @token.client_application.user.username %> wants to connect to your CARTO database. This means that <%= @token.client_application.user.username %> will be able to modify, create and delete fields from your database.</p>
|
|
|
|
<%= form_tag authorize_url do %>
|
|
<%= hidden_field_tag "oauth_token", @token.token %>
|
|
<%- if params[:oauth_callback] -%>
|
|
<%= hidden_field_tag "oauth_callback", params[:oauth_callback] %>
|
|
<%- end -%>
|
|
<div class="field border margin20">
|
|
<p class="light center margin10"><%= check_box_tag 'authorize' %>Authorize access</p>
|
|
</div>
|
|
<%= submit_tag 'Allow connection', :class => "button green border sessions margin20" %>
|
|
<% end %>
|
|
</div>
|
|
<div class="footer">
|
|
<p class="center light"><%= link_to "Forgot password?",forget_password_url %> · <%= link_to "Create an account", "https://carto.com/signup" %></p>
|
|
</div>
|
|
</section>
|
|
|
|
<footer class="short">
|
|
<h1><%= link_to 'CARTO', CartoDB.path(self, 'root'), :class => "cartodb" %></h1>
|
|
</footer>
|