bullet_train-super_scaffolding 1.1.6 → 1.1.7
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/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/lib/bullet_train/super_scaffolding/version.rb +1 -1
- metadata +2 -2
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 %>
|
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
|