effective_mentorships 0.1.0 → 0.2.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: af5b8d49906510d97169771e8f5985984e994bda968cabe721bb32a59ccf689b
4
- data.tar.gz: 79c113198b921e58b0f1347765586681ff2a918286ddd323fda9a35261136139
3
+ metadata.gz: 171010bae5f93974f5ba6044bd82f880f2b552bd913c7ca0137122b362859262
4
+ data.tar.gz: cffbb49649eff6aba7a73456241ef7a8e86e3521225144230534bdbba6955b31
5
5
  SHA512:
6
- metadata.gz: 7b84f6d4bfc332fdd2c03e71b5a88c02715447f08ecb458e729b16f17f556e686720e7fa8e6d682d9be3d24424417007ea09359b22a64ed77a88316b7baff11c
7
- data.tar.gz: df7d47bbfffd6e6916012dacfee9339bb193fd716721be7c722949fbf84ebfd48d56dbccc363621b265bdb3ddb76b92066e9c468cb7f81e4f526cc046a7c1247
6
+ metadata.gz: e6e1290b4d9b47a3518db1d17e22cb003ffe6bb1e5fdb5e3453671c2fe006b4d0c32f239f6df299b88932b2f30884c9a2e5e24a21c78282effa16ef805784d9b
7
+ data.tar.gz: 599848b64d0f1c77f2141a6de91d748443c9f00c18531fb2c27c0e9fa86236e92280842394013da0d41b37e1578addaab5162f23fde71ab485430900568be1ab
@@ -29,7 +29,7 @@ module EffectiveMentorshipsRegistration
29
29
  end
30
30
 
31
31
  def venues
32
- ['virtual', 'in person', 'either']
32
+ ['Virtual', 'In-person', 'Either']
33
33
  end
34
34
  end
35
35
 
@@ -1,19 +1,20 @@
1
1
  - unless local_assigns[:namespace] == :admin
2
2
  = f.hidden_field :mentorship_cycle_id
3
3
 
4
- = f.radios :opt_in, :boolean, label: "Do you wish to register in the #{f.object.mentorship_cycle || et('effective_mentorships.name')}?", inline: true
4
+ = f.radios :opt_in, :boolean, label: "Do you wish to register in the #{f.object.mentorship_cycle || et('effective_mentorships.name')}?"
5
5
 
6
6
  = f.hide_if(:opt_in, false) do
7
- = f.radios :mentorship_role, mentorship_roles_collection(), label: "Register as", required: true, inline: true
7
+ = f.radios :mentorship_role, mentorship_roles_collection(), label: "Register as a:", required: true
8
8
 
9
9
  = f.show_if(:mentorship_role, 'mentor') do
10
- = card(mentorships_mentor_label) do
11
- = f.radios :mentor_multiple_mentees, :boolean, label: "Are you willing to #{mentorships_mentor_label.downcase} more than one #{mentorships_mentee_label.downcase}?", required: true, inline: true
12
- = f.number_field :mentor_multiple_mentees_limit, label: "Please indicate how many #{mentorships_mentee_label.downcase.pluralize} you could accommodate", required: true
10
+ = f.radios :mentor_multiple_mentees_limit, [1, 2, 3, 4, 5], label: "How many #{mentorships_mentee_label.downcase.pluralize} are you willing to #{mentorships_mentor_label.downcase}?"
13
11
 
14
12
  = f.select :category, f.object.class.categories(), required: true
15
13
  = f.select :location, f.object.class.locations(), required: true
16
- = f.radios :venue, f.object.class.venues(), required: true, inline: true
14
+ = f.radios :venue, f.object.class.venues(), required: true
15
+
16
+ - if mentorship_cycle.rich_text_registration_content.present?
17
+ .my-4= mentorship_cycle.rich_text_registration_content
17
18
 
18
19
  = f.check_box :accept_declaration, label: "Yes, I accept the #{et('effective_mentorships.name')} agreement", required: true
19
20
 
@@ -21,4 +22,3 @@
21
22
  = f.article_editor :rich_text_comments, label: "Comments"
22
23
  - else
23
24
  = f.rich_text_area :rich_text_comments, label: "Comments"
24
-
@@ -6,9 +6,6 @@
6
6
  = card do
7
7
  %h2= et('effective_mentorships.name')
8
8
 
9
- - if mentorship_cycle.rich_text_registration_content.present?
10
- .mt-4= mentorship_cycle.rich_text_registration_content
11
-
12
9
  = effective_form_with(model: mentorship_registration, url: url) do |f|
13
10
  = f.hidden_field :user_id, value: current_user.id
14
11
  = render('effective/mentorship_registrations/fields', f: f)
@@ -6,21 +6,15 @@
6
6
  - if groups.present?
7
7
  %p You are a member of the following #{mentorship_groups_label.downcase}:
8
8
  = render_datatable(groups, simple: true)
9
- - else
10
- %p You are not a member of any #{mentorship_groups_label.downcase}. When you are, we'll show them here.
11
-
12
- %hr
13
9
 
14
10
  -# Available Registrations
15
11
  - registered = EffectiveResources.best('EffectiveMentorshipsRegistrationsDatatable').new(self, namespace: :effective)
16
12
  - available = EffectiveResources.best('EffectiveMentorshipsAvailableCyclesDatatable').new(self, namespace: :effective)
17
13
 
18
14
  - if registered.present?
19
- %p You have registered for the following #{etsd(Effective::MentorshipCycle)}:
20
15
  = render_datatable(registered, simple: true)
21
16
 
22
17
  - if available.present?
23
- %p You can register for the following #{etsd(Effective::MentorshipCycle)}:
24
18
  = render_datatable(available, simple: true)
25
19
 
26
20
  - if available.blank? && registered.blank?
@@ -59,7 +59,7 @@ class CreateEffectiveMentorships < ActiveRecord::Migration[6.0]
59
59
 
60
60
  t.string :title
61
61
 
62
- t.boolean :opt_in
62
+ t.boolean :opt_in, default: false
63
63
  t.boolean :accept_declaration, default: false
64
64
 
65
65
  t.string :mentorship_role
@@ -68,7 +68,6 @@ class CreateEffectiveMentorships < ActiveRecord::Migration[6.0]
68
68
  t.string :venue
69
69
  t.string :location
70
70
 
71
- t.boolean :mentor_multiple_mentees
72
71
  t.integer :mentor_multiple_mentees_limit
73
72
 
74
73
  t.string :token
@@ -1,3 +1,3 @@
1
1
  module EffectiveMentorships
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_mentorships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-22 00:00:00.000000000 Z
11
+ date: 2024-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails