bullet_train-integrations-stripe 1.2.20 → 1.2.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/account/integrations/stripe_installations/_index.html.erb +6 -8
- data/app/views/account/integrations/stripe_installations/_list.html.erb +4 -6
- data/app/views/account/integrations/stripe_installations/_menu_item.html.erb +1 -1
- data/app/views/account/integrations/stripe_installations/edit.html.erb +5 -10
- data/app/views/account/integrations/stripe_installations/index.html.erb +3 -5
- data/app/views/account/integrations/stripe_installations/new.html.erb +5 -10
- data/app/views/account/integrations/stripe_installations/show.html.erb +8 -8
- data/app/views/account/oauth/stripe_accounts/_index.html.erb +6 -6
- data/app/views/account/oauth/stripe_accounts/_menu_item.html.erb +1 -1
- data/app/views/account/oauth/stripe_accounts/edit.html.erb +5 -10
- data/app/views/account/oauth/stripe_accounts/index.html.erb +3 -5
- data/app/views/account/oauth/stripe_accounts/show.html.erb +6 -8
- data/lib/bullet_train/integrations/stripe/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcbc798709fa4ce059b1d956c957f2351fcf8a2b396db56c95d67fa4c68bb31f
|
4
|
+
data.tar.gz: 0061c4a4d567b86100565626db0b42c54cf4a60d19edf4dd44125895d0a0ad5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db9d6ed6138fe51c3a9b7583ab36c0e6c558d0075c6e6f3231d326b581f71703d246eab3616ac113a4935a81c318da70128e8a533dc814d801cc7d1699eafe0d
|
7
|
+
data.tar.gz: 8286cb8ca9de1b4572eadaa5af31cddd574a8ef9aec21c6517288c623f845a5eb36b6ce421c0e68ed483157ee80238da355410e0ff6267a62a508bdf85f2903b
|
@@ -4,13 +4,11 @@
|
|
4
4
|
<% hide_actions ||= false %>
|
5
5
|
<% hide_back ||= false %>
|
6
6
|
|
7
|
-
<%= render 'account/shared/box' do |
|
8
|
-
<%
|
9
|
-
<%
|
10
|
-
<%= t(".contexts.#{context.class.name.underscore}.description") %>
|
11
|
-
<% end %>
|
7
|
+
<%= render 'account/shared/box' do |box| %>
|
8
|
+
<% box.title t(".contexts.#{context.class.name.underscore}.header") %>
|
9
|
+
<% box.description t(".contexts.#{context.class.name.underscore}.description") %>
|
12
10
|
|
13
|
-
<%
|
11
|
+
<% box.body do %>
|
14
12
|
<% if stripe_installations.any? %>
|
15
13
|
<div class="space-y-0 border border-slate-200 shadow-sm rounded-md divide-y divide-slate-200">
|
16
14
|
<% stripe_installations.each do |stripe_installation| %>
|
@@ -35,7 +33,7 @@
|
|
35
33
|
<% end %>
|
36
34
|
<% end %>
|
37
35
|
|
38
|
-
<%
|
36
|
+
<% box.actions do %>
|
39
37
|
<% unless hide_actions %>
|
40
38
|
<% if context == team %>
|
41
39
|
<% if can? :create, Integrations::StripeInstallation.new(team: team) %>
|
@@ -53,7 +51,7 @@
|
|
53
51
|
<% end %>
|
54
52
|
<% end %>
|
55
53
|
|
56
|
-
<%
|
54
|
+
<% box.footer do %>
|
57
55
|
<%= raw t(".contexts.team.authentication_note", authentication_url: url_for([:edit, :account, current_user])) %>
|
58
56
|
<% end %>
|
59
57
|
<% end %>
|
@@ -1,13 +1,11 @@
|
|
1
1
|
<% context ||= @user %>
|
2
2
|
<% collection ||= :integrations_stripe_installations %>
|
3
3
|
|
4
|
-
<%= render 'account/shared/box' do |
|
5
|
-
<%
|
6
|
-
<%
|
7
|
-
<%= t(".contexts.#{context.class.name.underscore}.description") %>
|
8
|
-
<% end %>
|
4
|
+
<%= render 'account/shared/box' do |box| %>
|
5
|
+
<% box.title t(".contexts.#{context.class.name.underscore}.header") %>
|
6
|
+
<% box.description t(".contexts.#{context.class.name.underscore}.description") %>
|
9
7
|
|
10
|
-
<%
|
8
|
+
<% box.body do %>
|
11
9
|
<% if stripe_installations.any? %>
|
12
10
|
<div class="space-y-0 border border-slate-200 shadow-sm rounded-md divide-y divide-slate-200">
|
13
11
|
<% stripe_installations.each do |stripe_installation| %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
url: main_app.polymorphic_path([:account, current_team, :integrations_stripe_installations]),
|
4
4
|
label: t('integrations/stripe_installations.navigation.label'),
|
5
5
|
} do |p| %>
|
6
|
-
<% p.
|
6
|
+
<% p.icon do %>
|
7
7
|
<i class="<%= t('integrations/stripe_installations.navigation.icon') %>"></i>
|
8
8
|
<% end %>
|
9
9
|
<% end %>
|
@@ -1,12 +1,7 @@
|
|
1
|
-
<%= render 'account/shared/page' do |
|
2
|
-
<%
|
3
|
-
<%
|
4
|
-
|
5
|
-
|
6
|
-
<% p.content_for :description, t('.description') %>
|
7
|
-
<% p.content_for :body do %>
|
8
|
-
<%= render 'form', stripe_installation: @stripe_installation %>
|
9
|
-
<% end %>
|
10
|
-
<% end %>
|
1
|
+
<%= render 'account/shared/page' do |page| %>
|
2
|
+
<% page.title t('.section') %>
|
3
|
+
<% page.body.render 'account/shared/box', divider: true do |box| %>
|
4
|
+
<% box.t :description, title: '.header' %>
|
5
|
+
<% box.body.render 'form', stripe_installation: @stripe_installation %>
|
11
6
|
<% end %>
|
12
7
|
<% end %>
|
@@ -1,6 +1,4 @@
|
|
1
|
-
<%= render 'account/shared/page' do |
|
2
|
-
<%
|
3
|
-
<%
|
4
|
-
<%= render 'index', stripe_installations: @stripe_installations %>
|
5
|
-
<% end %>
|
1
|
+
<%= render 'account/shared/page' do |page| %>
|
2
|
+
<% page.title t('.section') %>
|
3
|
+
<% page.body.render 'index', stripe_installations: @stripe_installations %>
|
6
4
|
<% end %>
|
@@ -1,12 +1,7 @@
|
|
1
|
-
<%= render 'account/shared/page' do |
|
2
|
-
<%
|
3
|
-
<%
|
4
|
-
|
5
|
-
|
6
|
-
<% p.content_for :description, t('.description') %>
|
7
|
-
<% p.content_for :body do %>
|
8
|
-
<%= render 'form', stripe_installation: @stripe_installation %>
|
9
|
-
<% end %>
|
10
|
-
<% end %>
|
1
|
+
<%= render 'account/shared/page' do |page| %>
|
2
|
+
<% page.title t('.section') %>
|
3
|
+
<% page.body.render 'account/shared/box', divider: true do |box| %>
|
4
|
+
<% box.t :description, title: '.header' %>
|
5
|
+
<% box.body.render 'form', stripe_installation: @stripe_installation %>
|
11
6
|
<% end %>
|
12
7
|
<% end %>
|
@@ -1,21 +1,21 @@
|
|
1
|
-
<%= render 'account/shared/page' do |
|
2
|
-
<%
|
3
|
-
<%
|
4
|
-
<%= render 'account/shared/box', divider: true do |
|
5
|
-
<%
|
6
|
-
<%
|
1
|
+
<%= render 'account/shared/page' do |page| %>
|
2
|
+
<% page.title t('.section') %>
|
3
|
+
<% page.body do %>
|
4
|
+
<%= render 'account/shared/box', divider: true do |box| %>
|
5
|
+
<% box.title t('.header') %>
|
6
|
+
<% box.description do %>
|
7
7
|
<%= t('.description') %>
|
8
8
|
<%= t('.manage_description') if can? :manage, @stripe_installation %>
|
9
9
|
<% end %>
|
10
10
|
|
11
|
-
<%
|
11
|
+
<% box.body do %>
|
12
12
|
<% with_attribute_settings object: @stripe_installation, strategy: :label do %>
|
13
13
|
<%= render 'shared/attributes/text', attribute: :name %>
|
14
14
|
<%# 🚅 super scaffolding will insert new fields above this line. %>
|
15
15
|
<% end %>
|
16
16
|
<% end %>
|
17
17
|
|
18
|
-
<%
|
18
|
+
<% box.actions do %>
|
19
19
|
<%= link_to t('.buttons.edit'), [:edit, :account, @stripe_installation], class: first_button_primary if can? :edit, @stripe_installation %>
|
20
20
|
<%= button_to t('.buttons.destroy'), [:account, @stripe_installation], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@stripe_installation)) } if can? :destroy, @stripe_installation %>
|
21
21
|
<%= link_to t('global.buttons.back'), [:account, @team, :integrations_stripe_installations], class: first_button_primary %>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<% context ||= @user %>
|
2
2
|
<% hide_actions ||= false %>
|
3
3
|
|
4
|
-
<%= render 'account/shared/box' do |
|
5
|
-
<%
|
6
|
-
<%
|
4
|
+
<%= render 'account/shared/box' do |box| %>
|
5
|
+
<% box.title t(".contexts.#{context.class.name.underscore}.header") %>
|
6
|
+
<% box.description do %>
|
7
7
|
<%= raw t(".contexts.#{context.class.name.underscore}.#{stripe_accounts.any? ? 'description' : 'description_empty'}") %>
|
8
8
|
<% end %>
|
9
9
|
|
10
|
-
<%
|
10
|
+
<% box.body do %>
|
11
11
|
<% if stripe_accounts.any? %>
|
12
12
|
<div class="space-y-0 border border-slate-200 shadow-sm rounded-md divide-y divide-slate-200">
|
13
13
|
<% stripe_accounts.each do |stripe_account| %>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<% end %>
|
34
34
|
|
35
35
|
<% unless hide_actions %>
|
36
|
-
<%
|
36
|
+
<% box.actions do %>
|
37
37
|
<% if can? :create, Oauth::StripeAccount.new(user: @user) %>
|
38
38
|
<span data-turbo="false">
|
39
39
|
<%= button_to user_stripe_connect_omniauth_authorize_path, class: "#{first_button_primary(:integrations_stripe_installation)} new" do %>
|
@@ -44,7 +44,7 @@
|
|
44
44
|
<% end %>
|
45
45
|
<% end %>
|
46
46
|
|
47
|
-
<%
|
47
|
+
<% box.footer do %>
|
48
48
|
<% if current_team %>
|
49
49
|
<%= raw t(".contexts.user.integration_note", integration_url: url_for([:account, current_team, :integrations_stripe_installations])) %>
|
50
50
|
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
url: main_app.polymorphic_path([:account, current_user, :oauth_stripe_accounts]),
|
4
4
|
label: t('oauth/stripe_accounts.navigation.label'),
|
5
5
|
} do |p| %>
|
6
|
-
<% p.
|
6
|
+
<% p.icon do %>
|
7
7
|
<i class="<%= t('oauth/stripe_accounts.navigation.icon') %>"></i>
|
8
8
|
<% end %>
|
9
9
|
<% end %>
|
@@ -1,12 +1,7 @@
|
|
1
|
-
<%= render 'account/shared/page' do |
|
2
|
-
<%
|
3
|
-
<%
|
4
|
-
|
5
|
-
|
6
|
-
<% p.content_for :description, t('.description') %>
|
7
|
-
<% p.content_for :body do %>
|
8
|
-
<%= render 'form', stripe_account: @stripe_account %>
|
9
|
-
<% end %>
|
10
|
-
<% end %>
|
1
|
+
<%= render 'account/shared/page' do |page| %>
|
2
|
+
<% page.title t('.section') %>
|
3
|
+
<% page.body.render 'account/shared/box', divider: true do |box| %>
|
4
|
+
<% box.t :description, title: '.header' %>
|
5
|
+
<% box.body.render 'form', stripe_account: @stripe_account %>
|
11
6
|
<% end %>
|
12
7
|
<% end %>
|
@@ -1,6 +1,4 @@
|
|
1
|
-
<%= render 'account/shared/page' do |
|
2
|
-
<%
|
3
|
-
<%
|
4
|
-
<%= render 'index', stripe_accounts: @stripe_accounts %>
|
5
|
-
<% end %>
|
1
|
+
<%= render 'account/shared/page' do |page| %>
|
2
|
+
<% page.title t('.section') %>
|
3
|
+
<% page.body.render 'index', stripe_accounts: @stripe_accounts %>
|
6
4
|
<% end %>
|
@@ -1,11 +1,9 @@
|
|
1
|
-
<%= render 'account/shared/page' do |
|
2
|
-
<%
|
3
|
-
<%
|
4
|
-
<%= render 'account/shared/box' do |
|
5
|
-
<%
|
6
|
-
<%
|
7
|
-
|
8
|
-
<% p.content_for :actions do %>
|
1
|
+
<%= render 'account/shared/page' do |page| %>
|
2
|
+
<% page.title t('.section') %>
|
3
|
+
<% page.body do %>
|
4
|
+
<%= render 'account/shared/box' do |box| %>
|
5
|
+
<% box.t :description, title: '.header' %>
|
6
|
+
<% box.actions do %>
|
9
7
|
<%= link_to t('.buttons.edit'), [:edit, :account, @stripe_account], class: first_button_primary if can? :edit, @stripe_account %>
|
10
8
|
<%= button_to t('.buttons.destroy'), [:account, @stripe_account], method: :delete, class: first_button_primary, data: { confirm: t('.buttons.confirmations.destroy', model_locales(@stripe_account)) } if can? :destroy, @stripe_account %>
|
11
9
|
<%= link_to t('global.buttons.back'), [:account, @user, :oauth_stripe_accounts], class: first_button_primary %>
|