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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ff0eca269eba409e84bbbfb5a9cd0ba5f86a600ab5ee9b9e796fe20de0f9204
4
- data.tar.gz: 5f26fce151b679fd5799a0b3a609bcb662cc5de9539498ebb3ee60d338168b8f
3
+ metadata.gz: dcbc798709fa4ce059b1d956c957f2351fcf8a2b396db56c95d67fa4c68bb31f
4
+ data.tar.gz: 0061c4a4d567b86100565626db0b42c54cf4a60d19edf4dd44125895d0a0ad5d
5
5
  SHA512:
6
- metadata.gz: 902eb52ce1f186cfce9b9dbc5ef9534cbbe921266267172156172a68c9ee03b63ffa269eb20355be552d5ed7755d973644579c9691e37a4e114f38173fdbe0c1
7
- data.tar.gz: 663e16d7c11cdfedfe2a186a9ed95def73007c06e00bf57970b4c7c6382fac4175d1da5d496d303df3ba961f765a6e22713ec783ebf0d5e849225682d209731c
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 |p| %>
8
- <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
9
- <% p.content_for :description do %>
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
- <% p.content_for :body do %>
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
- <% p.content_for :actions do %>
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
- <% p.content_for :footer do %>
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 |p| %>
5
- <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
6
- <% p.content_for :description do %>
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
- <% p.content_for :body do %>
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.content_for :icon do %>
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 |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
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 |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
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 |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
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 |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description do %>
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
- <% p.content_for :body do %>
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
- <% p.content_for :actions do %>
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 |p| %>
5
- <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
6
- <% p.content_for :description do %>
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
- <% p.content_for :body do %>
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
- <% p.content_for :actions do %>
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
- <% p.content_for :footer do %>
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.content_for :icon do %>
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 |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box', divider: true do |p| %>
5
- <% p.content_for :title, t('.header') %>
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 |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
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 |p| %>
2
- <% p.content_for :title, t('.section') %>
3
- <% p.content_for :body do %>
4
- <%= render 'account/shared/box' do |p| %>
5
- <% p.content_for :title, t('.header') %>
6
- <% p.content_for :description, t('.description') %>
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 %>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Integrations
3
3
  module Stripe
4
- VERSION = "1.2.20"
4
+ VERSION = "1.2.21"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-integrations-stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.20
4
+ version: 1.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver