hackathon_manager 0.5.8 → 0.5.9

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
  SHA1:
3
- metadata.gz: ea3d1e2d6c44af3db8248c0c9443fafadfabfe33
4
- data.tar.gz: 3ad9180c711134eecc531902e983ab62d53236bf
3
+ metadata.gz: b2e21c09fe4f13fff062eb78c01cca1a70f528ea
4
+ data.tar.gz: e3358739189286f47332e13d7a835fad10db34d1
5
5
  SHA512:
6
- metadata.gz: ed2920085d911996ab927d7f21e00395e8539bbab5503e929ea805bc2d4ca73ad938bd32c4873a7b7bf9d1930258b56838fb199150b5cccbe87b616465f6a48b
7
- data.tar.gz: 8be287e281566f72a828af7418facafc065b0358f493df85f663c71b0e96deb3399b5057cabc08b670364fca735accf54b66cbc2f89b0dddae97240e1b39cb12
6
+ metadata.gz: b247e8aca8d851af7b9eb59865f9fe690fdbdcff20835e6c0f575952192321867381e74523c955be90b55b0e8fccfe955ee95343806d2c530cc19ca25c2628de
7
+ data.tar.gz: 063cc9f56440ca9f82bcca75585bd1b077fb425f92dfa197eb226c23c727309b2304325849cb5ff54156cbb1646b20791abf45935201cb50cf310d1347b21a1d
@@ -105,7 +105,7 @@ label
105
105
  text-align: left
106
106
 
107
107
  // all form input types
108
- input[type=text], input[type=email], input[type=tel], input[type=date], input[type="url"], input[type=password], input[type=file], input[type=checkbox], textarea, select
108
+ input[type=text], input[type=email], input[type=tel], input[type=date], input[type="url"], input[type=password], input[type=file], input[type=checkbox], input[type=radio], textarea, select
109
109
  background: $input--background
110
110
  color: $input--text
111
111
  font-family: $font-body-family
@@ -180,6 +180,28 @@ input[type=checkbox]
180
180
  .radio
181
181
  min-width: 170px
182
182
 
183
+ // checkbox
184
+ input[type=radio]
185
+ @include appearance(none)
186
+ width: 22px
187
+ height: 22px
188
+ padding: 1px
189
+ margin: 0 10px 0 0
190
+ @include border-radius(50%)
191
+ &:hover
192
+ background: #eee
193
+ &:checked
194
+ &::after
195
+ content: ""
196
+ background: $primary
197
+ display: block
198
+ width: 100%
199
+ height: 100%
200
+ transform: scale(0.8)
201
+ @include border-radius(50%)
202
+ &:focus
203
+ padding: 0
204
+
183
205
  input[type=radio]
184
206
  margin-right: 10px
185
207
 
@@ -11,9 +11,9 @@ class Questionnaire < ApplicationRecord
11
11
  validates_presence_of :code_of_conduct_accepted, message: "Must accept"
12
12
  validates_presence_of :data_sharing_accepted, message: "Must accept"
13
13
 
14
- if HackathonManager.field_enabled?(:why_attend)
15
- validates_presence_of :why_attend
16
- end
14
+ # if HackathonManager.field_enabled?(:why_attend)
15
+ # validates_presence_of :why_attend
16
+ # end
17
17
 
18
18
  has_attached_file :resume
19
19
  validates_attachment_content_type :resume, content_type: %w[application/pdf], message: "Invalid file type"
@@ -1,7 +1,7 @@
1
1
  - if HackathonManager.field_enabled?(:why_attend)
2
2
  %p
3
3
  %b Why #{Rails.configuration.hackathon['name']}?
4
- %p= @questionnaire.why_attend
4
+ %p= @questionnaire.why_attend.presence || "(not provided)"
5
5
  %p
6
6
  %b Experience:
7
7
  = Questionnaire::POSSIBLE_EXPERIENCES[@questionnaire.experience]
@@ -13,10 +13,8 @@
13
13
  - if @questionnaire.acc_status == "rsvp_confirmed"
14
14
  %p
15
15
  Congratulations! You're all set to attend #{Rails.configuration.hackathon['name']}!
16
- %p
17
- Expect an email closer to February 11th with additional logistics & travel info.
18
- %br
19
- %br
16
+ - if Rails.configuration.hackathon['thanks_for_rsvp']
17
+ = markdown(Rails.configuration.hackathon['thanks_for_rsvp'])
20
18
  %p.center
21
19
  = btn_link_to "Change RSVP", rsvp_path
22
20
  - else
@@ -10,9 +10,9 @@
10
10
  ALL SET TO ATTEND & RIDE THE BUS!
11
11
  - else
12
12
  ALL SET TO ATTEND!
13
- %br
14
- %br
15
- Expect an email closer to February 11th with additional logistics & travel info.
13
+ - if Rails.configuration.hackathon['thanks_for_rsvp']
14
+ %br
15
+ = markdown(Rails.configuration.hackathon['thanks_for_rsvp'])
16
16
  - else
17
17
  %strong= current_user.questionnaire.verbal_status.upcase
18
18
  - if @questionnaire.acc_status == "rsvp_denied"
@@ -1,3 +1,3 @@
1
1
  module HackathonManager
2
- VERSION = '0.5.8'.freeze
2
+ VERSION = '0.5.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackathon_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Olivera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-08 00:00:00.000000000 Z
11
+ date: 2018-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails