|
22 | 22 | .form-group |
23 | 23 | = f.label :name |
24 | 24 | = f.text_field :name, class: 'form-control', placeholder: 'Your name', autofocus: true |
| 25 | + = f.input :bio, as: :text, input_html: {rows: 7, maxlength: 500, placeholder: 'Enter your bio'}, hint: 'Bio is limited to 500 characters.' |
| 26 | + |
| 27 | + .widget |
| 28 | + .widget-header |
| 29 | + %i.bi.bi-image |
| 30 | + %h3 Profile Icon Image |
| 31 | + .widget-content |
25 | 32 | %p |
26 | | - = f.label :bio |
27 | | - = f.text_area :bio, class: 'form-control', placeholder: 'Enter your bio', rows: 7, maxlength: 500 |
28 | | - %p.help-block Bio is limited to 500 characters. |
| 33 | + Add or change your profile icon image by visiting |
| 34 | + = link_to('Gravatar', 'https://en.gravatar.com/connect/', target: "_blank") |
29 | 35 |
|
30 | 36 | %fieldset.col-md-6 |
31 | 37 | .widget |
|
61 | 67 | %i{class: "bi bi-#{provider}"} |
62 | 68 | = "Connect #{name}" |
63 | 69 |
|
64 | | - %fieldset.col-md-6 |
65 | | - .widget |
66 | | - .widget-header |
67 | | - %i.bi.bi-lock |
68 | | - %h3 Profile Icon Image |
69 | | - .widget-content |
70 | | - %p |
71 | | - Add or change your profile icon image by visiting |
72 | | - = link_to('Gravatar', 'https://en.gravatar.com/connect/', target: "_blank") |
73 | | - |
74 | | - - if current_user.teammates.present? |
| 70 | + - if current_user.teammates.loaded? ? current_user.teammates.any? : current_user.teammates.exists? |
75 | 71 | .widget |
76 | 72 | .widget-header |
77 | 73 | %i.bi.bi-envelope-fill |
78 | | - %h3 |
79 | | - Notifications |
80 | | - %span.ms-2{role: 'button', data: {bs_toggle: 'popover', bs_placement: 'left', bs_content: notification_preferences_tooltip, bs_html: 'true'}} |
81 | | - %i.bi.bi-question-circle |
| 74 | + %h3 Notifications |
82 | 75 | .widget-content |
83 | | - = f.simple_fields_for :teammates do |fields| |
84 | | - - teammate = fields.object |
85 | | - %b= teammate.event.name |
86 | | - = fields.input :notification_preference, |
87 | | - collection: Teammate::NOTIFICATION_PREFERENCES.invert, |
88 | | - as: :radio_buttons, wrapper: 'horizontal_radio_and_checkboxes', label: false |
| 76 | + %p |
| 77 | + = link_to 'Manage notification preferences', notifications_profile_path |
89 | 78 |
|
90 | 79 | .row |
91 | 80 | .col-md-12.form-submit |
|
0 commit comments