bullet_train-super_scaffolding 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/account/scaffolding/absolutely_abstract/creative_concepts/_form.html.erb +16 -14
- data/app/views/account/scaffolding/absolutely_abstract/creative_concepts/_index.html.erb +1 -0
- data/app/views/account/scaffolding/completely_concrete/tangible_things/_form.html.erb +46 -47
- data/app/views/account/scaffolding/completely_concrete/tangible_things/_index.html.erb +1 -0
- data/app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_paths.yaml.erb +1 -1
- data/lib/bullet_train/super_scaffolding/version.rb +1 -1
- metadata +2 -3
- data/app/views/api/v1/open_api/index.yaml.erb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f560b6ee92c6f1ac338add5358fff80f4a9a24197197faf63797887518ebe79
|
4
|
+
data.tar.gz: 108b6bf7570f40b13a319ef4577aa77eed003bec2e15877946786f3c683dc057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
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
|
4
|
+
<%= render "shared/limits/form", form: form, cancel_path: cancel_path do %>
|
5
|
+
<%= render 'account/shared/forms/errors', form: form %>
|
3
6
|
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
11
|
+
<%= render 'shared/fields/buttons', method: :boolean_button_value %>
|
9
12
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
-
|
16
|
-
|
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
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
33
|
-
|
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
|
-
|
38
|
-
|
40
|
+
<%= render 'shared/fields/password_field', method: :password_field_value %>
|
41
|
+
<%= render 'shared/fields/phone_field', method: :phone_field_value %>
|
39
42
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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
|
-
|
46
|
-
|
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
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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 %>
|
data/app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_paths.yaml.erb
CHANGED
@@ -45,7 +45,7 @@
|
|
45
45
|
content:
|
46
46
|
application/json:
|
47
47
|
schema:
|
48
|
-
$ref: "#/components/schemas/Scaffolding::CompletelyConcrete::TangibleThing::
|
48
|
+
$ref: "#/components/schemas/Scaffolding::CompletelyConcrete::TangibleThing::Parameters"
|
49
49
|
/scaffolding/completely_concrete/tangible_things/{id}:
|
50
50
|
get:
|
51
51
|
tags:
|
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.
|
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-
|
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. %>
|