effective_mentorships 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/effective_mentorships_registration.rb +1 -1
- data/app/views/effective/mentorship_registrations/_fields.html.haml +7 -7
- data/app/views/effective/mentorship_registrations/_form.html.haml +0 -3
- data/app/views/effective/mentorships/_dashboard.html.haml +0 -6
- data/db/migrate/101_create_effective_mentorships.rb +1 -2
- data/lib/effective_mentorships/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: 171010bae5f93974f5ba6044bd82f880f2b552bd913c7ca0137122b362859262
|
4
|
+
data.tar.gz: cffbb49649eff6aba7a73456241ef7a8e86e3521225144230534bdbba6955b31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6e1290b4d9b47a3518db1d17e22cb003ffe6bb1e5fdb5e3453671c2fe006b4d0c32f239f6df299b88932b2f30884c9a2e5e24a21c78282effa16ef805784d9b
|
7
|
+
data.tar.gz: 599848b64d0f1c77f2141a6de91d748443c9f00c18531fb2c27c0e9fa86236e92280842394013da0d41b37e1578addaab5162f23fde71ab485430900568be1ab
|
@@ -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')}?"
|
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
|
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
|
-
=
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2024-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|