bullet_train-super_scaffolding 1.1.5 → 1.1.7

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: 9241b913f0e0e5258325f8243d76d5ed2e8fe98515322f929222ca74c107d117
4
- data.tar.gz: ecb16b7eda756f5e07f0f91d05299cf01eca768c0b98d454602872ffb3e5b8c0
3
+ metadata.gz: 0f560b6ee92c6f1ac338add5358fff80f4a9a24197197faf63797887518ebe79
4
+ data.tar.gz: 108b6bf7570f40b13a319ef4577aa77eed003bec2e15877946786f3c683dc057
5
5
  SHA512:
6
- metadata.gz: '0391bce1d85831074245c72dbb257f1d3d5b21acdcf8ad56b15cece967406e6defd60f97192ba68c4232ea623e10b5b72b2b91ba5ddaeb6e015d7bdf905f4920'
7
- data.tar.gz: 26b0ade2177b7204a9c7d9ebc21fee387c0d6653f90d07cd08e47a52151ca7d0d252bc62919912f20b2cadccced3f588b406b8ccff745fb16f8a6037ffbddc53
6
+ metadata.gz: 2a4d3987fe60c64c63c6594cc32619cc7da55370c238ee7c00622e4bdd84483984b3270f34e67c26c57ff0af94f6f88f63551cad81f0a446bed677ce6c99ed88
7
+ data.tar.gz: 599379c337cacd95d01cdb6e54b05423dfc62b247a4aac8b4c64fc0e556e1440482fd7d9a96eae4d9369a840b2356a04e9ac494abf5dc4cfb6305918cbdf62fd
@@ -1,18 +1,20 @@
1
1
  <%= form_with model: [:account, (@team unless creative_concept.persisted?), creative_concept], local: true, class: 'form' do |form| %>
2
- <%= render 'account/shared/forms/errors', form: form %>
2
+ <%= render "shared/limits/form", form: form, cancel_path: [:account, @team, :scaffolding, :absolutely_abstract, :creative_concepts] do %>
3
+ <%= render 'account/shared/forms/errors', form: form %>
3
4
 
4
- <% with_field_settings form: form do %>
5
- <%= render 'shared/fields/text_field', method: :name, options: {autofocus: true} %>
6
- <%= render 'shared/fields/text_area', method: :description %>
7
- <%# 🚅 super scaffolding will insert new fields above this line. %>
8
- <% end %>
9
-
10
- <div class="buttons">
11
- <%= form.submit (form.object.persisted? ? t('.buttons.update') : t('.buttons.create')), class: "button" %>
12
- <% if form.object.persisted? %>
13
- <%= link_to t('global.buttons.cancel'), [:account, creative_concept], class: "button-secondary" %>
14
- <% else %>
15
- <%= link_to t('global.buttons.cancel'), [:account, @team, :scaffolding, :absolutely_abstract, :creative_concepts], class: "button-secondary" %>
5
+ <% with_field_settings form: form do %>
6
+ <%= render 'shared/fields/text_field', method: :name, options: {autofocus: true} %>
7
+ <%= render 'shared/fields/text_area', method: :description %>
8
+ <%# 🚅 super scaffolding will insert new fields above this line. %>
16
9
  <% end %>
17
- </div>
10
+
11
+ <div class="buttons">
12
+ <%= form.submit (form.object.persisted? ? t('.buttons.update') : t('.buttons.create')), class: "button" %>
13
+ <% if form.object.persisted? %>
14
+ <%= link_to t('global.buttons.cancel'), [:account, creative_concept], class: "button-secondary" %>
15
+ <% else %>
16
+ <%= link_to t('global.buttons.cancel'), [:account, @team, :scaffolding, :absolutely_abstract, :creative_concepts], class: "button-secondary" %>
17
+ <% end %>
18
+ </div>
19
+ <% end %>
18
20
  <% end %>
@@ -7,6 +7,7 @@
7
7
  <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
8
8
  <% p.content_for :description do %>
9
9
  <%= t(".contexts.#{context.class.name.underscore}.#{creative_concepts.any? ? 'description' : 'description_empty'}") %>
10
+ <%= render "shared/limits/index", model: creative_concepts.model %>
10
11
  <% end %>
11
12
 
12
13
  <% if creative_concepts.any? %>
@@ -1,65 +1,64 @@
1
+ <% cancel_path ||= tangible_thing.persisted? ? [:account, tangible_thing] : [:account, @absolutely_abstract_creative_concept, :completely_concrete_tangible_things] %>
2
+
1
3
  <%= form_with model: tangible_thing, url: (tangible_thing.persisted? ? [:account, tangible_thing] : [:account, @absolutely_abstract_creative_concept, :completely_concrete_tangible_things]), local: true, class: 'form' do |form| %>
2
- <%= render 'account/shared/forms/errors', form: form %>
4
+ <%= render "shared/limits/form", form: form, cancel_path: cancel_path do %>
5
+ <%= render 'account/shared/forms/errors', form: form %>
3
6
 
4
- <% with_field_settings form: form do %>
5
- <%# 🚅 skip this section when scaffolding. %>
6
- <%= render 'shared/fields/text_field', method: :text_field_value, options: {autofocus: true} %>
7
+ <% with_field_settings form: form do %>
8
+ <%# 🚅 skip this section when scaffolding. %>
9
+ <%= render 'shared/fields/text_field', method: :text_field_value, options: {autofocus: true} %>
7
10
 
8
- <%= render 'shared/fields/buttons', method: :boolean_button_value %>
11
+ <%= render 'shared/fields/buttons', method: :boolean_button_value %>
9
12
 
10
- <div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-2">
11
- <div class="sm:col-span-1">
12
- <%= render 'shared/fields/buttons', method: :button_value %>
13
- </div>
13
+ <div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-2">
14
+ <div class="sm:col-span-1">
15
+ <%= render 'shared/fields/buttons', method: :button_value %>
16
+ </div>
14
17
 
15
- <div class="sm:col-span-1">
16
- <%= render 'shared/fields/buttons', method: :multiple_button_values, multiple: true %>
18
+ <div class="sm:col-span-1">
19
+ <%= render 'shared/fields/buttons', method: :multiple_button_values, multiple: true %>
20
+ </div>
17
21
  </div>
18
- </div>
19
22
 
20
- <%= render 'shared/fields/color_picker', method: :color_picker_value, options: {color_picker_options: t('scaffolding/completely_concrete/tangible_things.fields.color_picker_value.options')} %>
21
- <%= render 'shared/fields/cloudinary_image', method: :cloudinary_image_value %>
22
- <%= render 'shared/fields/date_field', method: :date_field_value %>
23
- <%= render 'shared/fields/date_and_time_field', method: :date_and_time_field_value %>
24
- <%= render 'shared/fields/email_field', method: :email_field_value %>
25
- <%= render 'shared/fields/file_field', method: :file_field_value %>
23
+ <%= render 'shared/fields/color_picker', method: :color_picker_value, options: {color_picker_options: t('scaffolding/completely_concrete/tangible_things.fields.color_picker_value.options')} %>
24
+ <%= render 'shared/fields/cloudinary_image', method: :cloudinary_image_value %>
25
+ <%= render 'shared/fields/date_field', method: :date_field_value %>
26
+ <%= render 'shared/fields/date_and_time_field', method: :date_and_time_field_value %>
27
+ <%= render 'shared/fields/email_field', method: :email_field_value %>
28
+ <%= render 'shared/fields/file_field', method: :file_field_value %>
26
29
 
27
- <div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-2">
28
- <div class="sm:col-span-1 pr-0 sm:pr-10">
29
- <%= render 'shared/fields/options', method: :option_value %>
30
- </div>
30
+ <div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-2">
31
+ <div class="sm:col-span-1 pr-0 sm:pr-10">
32
+ <%= render 'shared/fields/options', method: :option_value %>
33
+ </div>
31
34
 
32
- <div class="sm:col-span-1 pr-0 sm:pr-10">
33
- <%= render 'shared/fields/options', method: :multiple_option_values, multiple: true %>
35
+ <div class="sm:col-span-1 pr-0 sm:pr-10">
36
+ <%= render 'shared/fields/options', method: :multiple_option_values, multiple: true %>
37
+ </div>
34
38
  </div>
35
- </div>
36
39
 
37
- <%= render 'shared/fields/password_field', method: :password_field_value %>
38
- <%= render 'shared/fields/phone_field', method: :phone_field_value %>
40
+ <%= render 'shared/fields/password_field', method: :password_field_value %>
41
+ <%= render 'shared/fields/phone_field', method: :phone_field_value %>
39
42
 
40
- <div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-2">
41
- <div class="sm:col-span-1">
42
- <%= render 'shared/fields/super_select', method: :super_select_value, other_options: {search: true} %>
43
- </div>
43
+ <div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-2">
44
+ <div class="sm:col-span-1">
45
+ <%= render 'shared/fields/super_select', method: :super_select_value, other_options: {search: true} %>
46
+ </div>
44
47
 
45
- <div class="sm:col-span-1">
46
- <%= render 'shared/fields/super_select', method: :multiple_super_select_values, other_options: {search: true}, html_options: {multiple: true} %>
48
+ <div class="sm:col-span-1">
49
+ <%= render 'shared/fields/super_select', method: :multiple_super_select_values, other_options: {search: true}, html_options: {multiple: true} %>
50
+ </div>
47
51
  </div>
48
- </div>
49
-
50
- <%= render 'shared/fields/text_area', method: :text_area_value %>
51
- <%= render 'shared/fields/trix_editor', method: :action_text_value %>
52
- <%# 🚅 stop any skipping we're doing now. %>
53
- <%# 🚅 super scaffolding will insert new fields above this line. %>
54
- <% end %>
55
52
 
56
- <div class="buttons">
57
- <%= form.submit (form.object.persisted? ? t('.buttons.update') : t('.buttons.create')), class: "button" %>
58
- <% if form.object.persisted? %>
59
- <%= link_to t('global.buttons.cancel'), [:account, tangible_thing], class: "button-secondary" %>
60
- <% else %>
61
- <%= link_to t('global.buttons.cancel'), [:account, @absolutely_abstract_creative_concept, :completely_concrete_tangible_things], class: "button-secondary" %>
53
+ <%= render 'shared/fields/text_area', method: :text_area_value %>
54
+ <%= render 'shared/fields/trix_editor', method: :action_text_value %>
55
+ <%# 🚅 stop any skipping we're doing now. %>
56
+ <%# 🚅 super scaffolding will insert new fields above this line. %>
62
57
  <% end %>
63
- </div>
64
58
 
59
+ <div class="buttons">
60
+ <%= form.submit (form.object.persisted? ? t('.buttons.update') : t('.buttons.create')), class: "button" %>
61
+ <%= link_to t('global.buttons.cancel'), cancel_path, class: "button-secondary" %>
62
+ </div>
63
+ <% end %>
65
64
  <% end %>
@@ -13,6 +13,7 @@
13
13
  <% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
14
14
  <% p.content_for :description do %>
15
15
  <%= t(".contexts.#{context.class.name.underscore}.description#{"_empty" unless tangible_things.any?}") %>
16
+ <%= render "shared/limits/index", model: tangible_things.model %>
16
17
  <% end %>
17
18
 
18
19
  <% p.content_for :table do %>
@@ -45,7 +45,7 @@
45
45
  content:
46
46
  application/json:
47
47
  schema:
48
- $ref: "#/components/schemas/Scaffolding::CompletelyConcrete::TangibleThing::Attributes"
48
+ $ref: "#/components/schemas/Scaffolding::CompletelyConcrete::TangibleThing::Parameters"
49
49
  /scaffolding/completely_concrete/tangible_things/{id}:
50
50
  get:
51
51
  tags:
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.1.5"
3
+ VERSION = "1.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-super_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-08 00:00:00.000000000 Z
11
+ date: 2022-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -128,7 +128,6 @@ files:
128
128
  - app/views/account/scaffolding/completely_concrete/tangible_things/index.html.erb
129
129
  - app/views/account/scaffolding/completely_concrete/tangible_things/new.html.erb
130
130
  - app/views/account/scaffolding/completely_concrete/tangible_things/show.html.erb
131
- - app/views/api/v1/open_api/index.yaml.erb
132
131
  - app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_components.yaml.erb
133
132
  - app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_paths.yaml.erb
134
133
  - app/views/api/v1/scaffolding/completely_concrete/tangible_things/_tangible_thing.json.jbuilder
@@ -1,29 +0,0 @@
1
- openapi: 3.1.0
2
- info:
3
- title: Bullet Train API
4
- description: |
5
- The baseline API of a new Bullet Train application.
6
- license:
7
- name: MIT
8
- url: https://opensource.org/licenses/MIT
9
- version: "<%= @version.upcase %>"
10
- servers:
11
- - url: <%= ENV["BASE_URL"] %>/api/<%= @version %>
12
- components:
13
- schemas:
14
- <%= components_for Team %>
15
- <%= components_for User %>
16
- <%= components_for Scaffolding::CompletelyConcrete::TangibleThing unless scaffolding_things_disabled? %>
17
- <%# 🚅 super scaffolding will insert new components above this line. %>
18
- parameters:
19
- id:
20
- name: id
21
- in: path
22
- required: true
23
- schema:
24
- type: string
25
- paths:
26
- <%= paths_for Team %>
27
- <%= paths_for User %>
28
- <%= paths_for Scaffolding::CompletelyConcrete::TangibleThing unless scaffolding_things_disabled? %>
29
- <%# 🚅 super scaffolding will insert new paths above this line. %>