lato 0.1.61 → 0.1.63

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: dbce0bed99f54a95994491e950789841725ef0b4b5a87ecbee747de28a5b3357
4
- data.tar.gz: 575538c21152ddf54ab612ca622c0d584fb0748841f2f9721bce38c23a6549b6
3
+ metadata.gz: ebff18ee45c08496943efe4f8ae6a980baec6ef080a0914eb19a414d78192723
4
+ data.tar.gz: b6baed60b96368fa0c08c23fcd15f2b4d7b178019039f6ab25ab7f3ff446f450
5
5
  SHA512:
6
- metadata.gz: 8d8c26a8af596b210841401c2b9c25cd1c3a5a83120b61f8fb30dda9d8e6d748cd1381425f8c4597e55ba0e97b01060e79179c1c879faa8e377f9d8e2b83d928
7
- data.tar.gz: eb835a122d3e94d51efda3cae33865eaf9e37bdc6d1819469f24c097fefad04a5e4d3de5520a1fe07664f07b46d644678d7d6169b7013ee7dfc7db15b1fc7abe
6
+ metadata.gz: dbe7a26743c51c95658691e502eeb7763cef6281ca81001c0c15804fa7b8a76dfe93008d557e94863c6ece7b54cdda5e93619377b4815cf0d2f2ea43fd9f65ad
7
+ data.tar.gz: ebc68bd91fec65856bf13d17aa55144777c307971573e713350bb0c4649ebe5fe6ebcc155b31bf60568cb774c4111f6fe11b8a6560b7072272d85c058363bc4a
@@ -6,42 +6,13 @@ export default class extends Controller {
6
6
  'input'
7
7
  ]
8
8
 
9
- /**
10
- * Stimulus
11
- */
12
-
13
- connect() {
14
- this.originalFormData = this.loadFormData()
15
- this.disableSubmit()
16
- }
9
+ // NOTE: This controller is free for be used in future form improvements.
17
10
 
18
11
  /**
19
- * Functions
12
+ * Stimulus
20
13
  */
21
14
 
22
- disableSubmit() {
23
- // if (!this.hasSubmitTarget) return
24
- // this.submitTarget.setAttribute('disabled', true)
25
- }
26
-
27
- enableSubmit() {
28
- // if (!this.hasSubmitTarget) return
29
- // this.submitTarget.removeAttribute('disabled')
30
- }
31
-
32
- loadFormData() {
33
- const formData = {}
34
-
35
- this.inputTargets.forEach((input) => {
36
- if (input.type == 'checkbox') {
37
- formData[input.name] = input.checked
38
- } else {
39
- formData[input.name] = input.value
40
- }
41
- })
42
-
43
- return formData
44
- }
15
+ connect() {}
45
16
 
46
17
  /**
47
18
  * Actions
@@ -49,12 +20,5 @@ export default class extends Controller {
49
20
 
50
21
  onInputChange(e) {
51
22
  e.target.classList.remove('is-invalid')
52
-
53
- const formData = this.loadFormData()
54
- if (JSON.stringify(formData) != JSON.stringify(this.originalFormData)) {
55
- this.enableSubmit()
56
- } else {
57
- this.disableSubmit()
58
- }
59
23
  }
60
24
  }
@@ -32,6 +32,6 @@ email_readonly ||= false
32
32
  </div>
33
33
 
34
34
  <div class="mb-3 text-muted" style="font-size: 14px;">
35
- <%= lato_form_item_input_check form, :accepted_privacy_policy_version, I18n.t('lato.privacy_policy_checkbox', link: link_to(I18n.t('lato.privacy_policy'), Lato.config.legal_privacy_policy_url)), required: true %>
36
- <%= lato_form_item_input_check form, :accepted_terms_and_conditions_version, I18n.t('lato.terms_and_conditions_checkbox', link: link_to(I18n.t('lato.terms_and_conditions'), Lato.config.legal_terms_and_conditions_url)), required: true %>
35
+ <%= lato_form_item_input_check form, :accepted_privacy_policy_version, I18n.t('lato.privacy_policy_checkbox', link: link_to(I18n.t('lato.privacy_policy'), Lato.config.legal_privacy_policy_url), target: '_blank'), required: true %>
36
+ <%= lato_form_item_input_check form, :accepted_terms_and_conditions_version, I18n.t('lato.terms_and_conditions_checkbox', link: link_to(I18n.t('lato.terms_and_conditions'), Lato.config.legal_terms_and_conditions_url), target: '_blank'), required: true %>
37
37
  </div>
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.61"
2
+ VERSION = "0.1.63"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-27 00:00:00.000000000 Z
11
+ date: 2023-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails