worker-field-nested_has_many 0.3.0 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa47374ad070ae5bff56a8da43f40b0ffb2234394a748442e4ffde79344460f7
4
- data.tar.gz: 23c5152494aac336e9a0373df516fb15361b462b9a75524ffc27df927fbb2ca4
3
+ metadata.gz: 15098b415d70ab23fe17257daf1fcf7dd9539c356899fcee522e960d435c3a8c
4
+ data.tar.gz: 56fdb9468b552e1b788ecd85c2aa4279b3669a53ca13e433cdc53605058c5d1d
5
5
  SHA512:
6
- metadata.gz: 9cf7de26afab56e347435fd4b73b2ca5ed3adc1e3c24c3525d57b60aa9be4f4ddcd2fbe1342ad9ab9c9c1f599f5aa36aa7051a178c29116baa8626257021b504
7
- data.tar.gz: edf241b80cc3ab6bb51c13590e1338f15f4286d3041cf3a59b195d9781aa501c288ebfc97ec1c7a90db805aa3d428a9401db6b1e84c7622d4dbf35caba8534c7
6
+ metadata.gz: 6ee721323c1d225438cb2edd29569534ba3090ddec05f8b05d7b6cab54271fdff00da40369791124f3f3d8567b925ddfaa7f5558ee19d9a4806db35b6ddfddf3
7
+ data.tar.gz: 9064fa5fadee7cc04ad14cb888248e9d66f55a77f2532c3338ba1333b50c3c99da76b3ca2fcd0e0167424c89ca075ae61388fe48f859708830cd3803f55b6fb8
data/README.md CHANGED
@@ -9,13 +9,13 @@ The original and the 99,99997 % is not my
9
9
 
10
10
  This awesome Gem is from :
11
11
 
12
- ![@nickcharlton](https://github.com/nickcharlton)
13
- ![@baldursson](https://github.com/baldursson)
14
- ![@pablobm](https://github.com/pablobm)
15
- ![@graysonwright](https://github.com/graysonwright)
16
- ![@okuramasafumi](https://github.com/okuramasafumi)
17
- ![@badosu](https://github.com/badosu)
18
12
 
13
+ [nickcharlton][nickcharlton].
14
+ [baldursson][baldursson].
15
+ [pablobm][pablobm].
16
+ [graysonwright][graysonwright].
17
+ [okuramasafumi][okuramasafumi].
18
+ [badosu][badosu].
19
19
 
20
20
  🙏🏼 🙏🏼 🙏🏼 🙏🏼 🙏🏼 🙏🏼 🙏🏼
21
21
 
@@ -88,4 +88,11 @@ https://github.com/nickcharlton/administrate-field-nested_has_many
88
88
  ```ruby
89
89
  gem "administrate-field-nested_has_many"
90
90
  ```
91
- [demo]: https://staging-worker-worker.herokuapp.com/
91
+
92
+
93
+ [badosu]: https://github.com/badosu
94
+ [okuramasafumi]: https://github.com/okuramasafumi
95
+ [pablobm]: https://github.com/pablobm
96
+ [baldursson]: https://github.com/baldursson
97
+ [nickcharlton]: https://github.com/nickcharlton
98
+ [graysonwright]: https://github.com/graysonwright
@@ -35,7 +35,7 @@
35
35
  width: 43%;
36
36
  border: 1px solid #a8a8a83d;
37
37
  margin: 1rem;
38
- padding: 1rem;
38
+ padding: 1rem 1rem 4rem 1rem;
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  justify-content: space-between;
@@ -45,9 +45,17 @@
45
45
  width: calc(15% - 1rem);
46
46
  }
47
47
  }
48
+ &.line_items{
49
+ position: relative;
50
+ min-height: 580px;
51
+ }
48
52
  }
49
53
 
50
54
  .remove_fields, .add_fields {
51
55
  float: right;
52
56
  }
53
57
  }
58
+
59
+ .executer-button{
60
+ display: none;
61
+ }
@@ -35,16 +35,21 @@
35
35
  <div class="specialite">réseau</div>
36
36
  <%# end %>
37
37
  </div> -->
38
- <% if field.attribute.to_s == "line_items"%>
39
- <div class="button remove-field remove-field__option_buton executer-button disabled" >
40
- <span>Ajouter des options</span>
41
- <!-- <div class="specialite">Ajouter des options</div> -->
42
- </div>
43
- <% end %>
44
- <!-- <a href='#' id='executer-button' class='btn btn-default'>Executer</a> -->
45
- <div class="button remove-field">
46
- <%= link_to_remove_association I18n.t("administrate.fields.nested_has_many.remove", resource: field.associated_class_name.titleize), f %>
38
+ <div class="lineItem_button_action">
39
+ <div class="sophieTolouba_<%= field.attribute.to_s %>">
40
+ <% if field.attribute.to_s == "line_items"%>
41
+ <div class="button remove-field__option_buton executer-button" >
42
+ <span>Ajouter des options</span>
43
+ <!-- <div class="specialite">Ajouter des options</div> -->
44
+ </div>
45
+ <% end %>
46
+ <!-- <a href='#' id='executer-button' class='btn btn-default'>Executer</a> -->
47
+ <div class="button remove-field">
48
+ <%= link_to_remove_association I18n.t("administrate.fields.nested_has_many.remove", resource: field.associated_class_name.titleize), f %>
49
+
50
+ </div>
47
51
 
52
+ </div>
48
53
  </div>
49
54
  </div>
50
55
  <% else %>
@@ -3,5 +3,5 @@ en:
3
3
  administrate:
4
4
  fields:
5
5
  nested_has_many:
6
- add: Add %{resource}
7
- remove: Remove %{resource}
6
+ add: + %{resource}
7
+ remove: X %{resource}
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "worker-field-nested_has_many"
5
5
  # gem.version = Worker::Field::NestedHasMany::VERSION
6
- gem.version = "0.3.0"
6
+ gem.version = "0.4.0"
7
7
  gem.authors = ["v baxter"]
8
8
  gem.email = ["vincent.viricel@gmail.com"]
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worker-field-nested_has_many
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - v baxter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-06 00:00:00.000000000 Z
11
+ date: 2019-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate