mumuki-laboratory 9.19.0 → 9.20.0

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: 74909716a7b8701adb5f410a2fded18a19779547b107635965361cf2247c7595
4
- data.tar.gz: ac32359e5add8298400567f10d1d1fcf191db92eeacaa258d33387b6d9433de9
3
+ metadata.gz: de7e211f8a772b15e0018a75d15c69f1fd455bf4794362235e236c06bc125d06
4
+ data.tar.gz: 91b6b7564068e6fac29130c62639a17c277d0954fbf3900e07e947ae3cdc6da0
5
5
  SHA512:
6
- metadata.gz: 33cac73574865ca539d574765c2b85c57da593b11078e92f2c17cd47b51382f33840083458c396893ac3ed0227f068fdfab9e1fc83ab7556186ca901c2c6ba50
7
- data.tar.gz: dae03d18dfd66681d899d3546bc98aa36b88e1d85947202f032f1a7972c8cc3adb33e4cda12795a46719445530fb1aeff4d2783cae4234836f234f163a45cacf
6
+ metadata.gz: 63dc960e1d91bd05a534d8ded2bfb9cfd13801ee2d3dfcb44da781642bcfa626f0bf80c7df642216bb7915a1ff2f32515668c6bb81b7615221e23ae44a3cd627
7
+ data.tar.gz: 7011fe8f2abadae8c93ac60192c0caa200a475a229183c257ccd74c0818291c9ced49507a75fc15f092405d9c10d8cad269b6723be45eac41dc022a120c7bd6e
@@ -34,14 +34,6 @@
34
34
  background-image: none;
35
35
  }
36
36
 
37
- .alert {
38
- margin: 10px 50px 10px 15px;
39
- }
40
-
41
- .alert-danger a {
42
- color: greenyellow;
43
- }
44
-
45
37
  .exercise-search-box {
46
38
  width: 263px;
47
39
  position: fixed
@@ -7,6 +7,7 @@
7
7
 
8
8
  .mu-profile-actions {
9
9
  margin-left: auto;
10
+ text-align: center;
10
11
 
11
12
  .btn {
12
13
  width: 150px;
@@ -18,15 +19,6 @@
18
19
  border-color: lighten($mu-color-complementary, 15%);
19
20
  }
20
21
  }
21
-
22
- &.mobile {
23
- text-align: center;
24
- margin: 20px 5px -20px -10px;
25
-
26
- .btn {
27
- width: calc(50% - 20px);
28
- }
29
- }
30
22
  }
31
23
 
32
24
  .mu-profile-info {
@@ -13,5 +13,4 @@ $da-font-path: asset-path('assets');
13
13
  @import "application/invitations";
14
14
  @import "application/modules";
15
15
  @import "application/errors";
16
- @import "application/alerts";
17
16
  @import "application/codemirror-themes";
@@ -129,7 +129,6 @@ class ApplicationController < ActionController::Base
129
129
  def validate_user_profile!
130
130
  unless current_user.profile_completed?
131
131
  save_location_before! :profile_completion
132
- flash[:info] = I18n.t :please_fill_profile_data
133
132
  redirect_to edit_user_path
134
133
  end
135
134
  end
@@ -4,7 +4,7 @@ module ProfileHelper
4
4
  end
5
5
 
6
6
  def cancel_edit_profile_button
7
- link_to t(:cancel), :user, class: 'btn btn-secondary' if current_user.profile_completed?
7
+ link_to t(:cancel), :user, class: 'btn btn-outline-complementary' if current_user.profile_completed?
8
8
  end
9
9
 
10
10
  def save_edit_profile_button(form)
@@ -1,19 +1,23 @@
1
- <fieldset>
2
- <div><%= form.label(t :first_name) %></div>
3
- <div><%= form.text_field :first_name, required: true, class: 'form-control' %></div>
4
- </fieldset>
5
- <fieldset>
6
- <div><%= form.label(t :last_name) %></div>
7
- <div><%= form.text_field :last_name, required: true, class: 'form-control' %></div>
8
- </fieldset>
9
- <fieldset>
10
- <div><%= form.label(t :gender) %></div>
11
- <div><%= form.select :gender, options_for_select(User.genders.map { |gender, _| [t(gender), gender] }, @user.gender), {}, required: true, class: 'form-control form-select' %></div>
12
- </fieldset>
13
- <fieldset>
14
- <div><%= form.label(t :birthdate) %></div>
15
- <div><%= form.date_field :birthdate, min: Date.new(1900), max: 3.years.ago.end_of_year, required: true, class: 'form-control' %></div>
16
- </fieldset>
1
+ <div class="row">
2
+ <fieldset class="col-lg-6">
3
+ <div><%= form.label(t :first_name) %></div>
4
+ <div><%= form.text_field :first_name, required: true, class: 'form-control' %></div>
5
+ </fieldset>
6
+ <fieldset class="col-lg-6">
7
+ <div><%= form.label(t :last_name) %></div>
8
+ <div><%= form.text_field :last_name, required: true, class: 'form-control' %></div>
9
+ </fieldset>
10
+ </div>
11
+ <div class="row">
12
+ <fieldset class="col-lg-4">
13
+ <div><%= form.label(t :birthdate) %></div>
14
+ <div><%= form.date_field :birthdate, min: Date.new(1900), max: 3.years.ago.end_of_year, required: true, class: 'form-control' %></div>
15
+ </fieldset>
16
+ <fieldset class="col-lg-4 offset-lg-2">
17
+ <div><%= form.label(t :gender) %></div>
18
+ <div><%= form.select :gender, options_for_select(User.genders.map { |gender, _| [t(gender), gender] }, @user.gender), {}, required: true, class: 'form-control form-select' %></div>
19
+ </fieldset>
20
+ </div>
17
21
  <fieldset>
18
22
  <div><%= form.label(t :email) %></div>
19
23
  <div><%= form.text_field :email, readonly: true, class: 'form-control' %></div>
@@ -1,22 +1,24 @@
1
1
  <%= form_for :user, url: user_path, :html => { id: 'mu-user-form', class: 'mu-form' }, method: :put do |f| %>
2
2
  <div class="mu-user-header">
3
3
  <h1><%= t(:edit_profile) %></h1>
4
- <div class="mu-profile-actions d-none d-md-block">
5
- <%= cancel_edit_profile_button %>
6
- <%= save_edit_profile_button f %>
7
- </div>
8
4
  </div>
9
5
  <div class="row mu-tab-body">
10
- <div class="col-md-6 col-lg-4 mu-user-avatar-container">
6
+ <div class="col-md-6 col-lg-4 mu-user-avatar-container mb-3">
11
7
  <%= profile_picture_for(@user, id: 'mu-user-avatar', class: 'mu-user-avatar') %>
12
8
  <button class="fas fa-pencil-alt fa-2x btn mu-edit-avatar" type="button" data-bs-toggle="modal" data-bs-target="#mu-avatar-picker" tabindex="0"></button>
13
9
  </div>
14
- <div class="col-md-6 col-lg-8">
10
+ <div class="col-md-6 col-lg-8 mb-4">
11
+ <% unless current_user.profile_completed? %>
12
+ <div class="alert alert-info alert-dismissible fade show" role="alert">
13
+ <%= fa_icon 'info-circle', class: 'fa-lg me-2 align-middle', text: t(:please_fill_profile_data) %>
14
+ <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
15
+ </div>
16
+ <% end %>
15
17
  <%= render partial: 'profile_fields', locals: {form: f} %>
16
18
  <%= render partial: 'layouts/terms_acceptance_disclaimer', locals: {user: @user} %>
17
19
  </div>
18
20
  </div>
19
- <div class="mu-profile-actions mobile d-block d-md-none">
21
+ <div class="mu-profile-actions">
20
22
  <%= cancel_edit_profile_button %>
21
23
  <%= save_edit_profile_button f %>
22
24
  </div>
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '9.19.0'
3
+ VERSION = '9.20.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-laboratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.19.0
4
+ version: 9.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-19 00:00:00.000000000 Z
11
+ date: 2021-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -438,7 +438,6 @@ files:
438
438
  - app/assets/javascripts/mumuki_laboratory/application/upload.js
439
439
  - app/assets/javascripts/mumuki_laboratory/application/user.js
440
440
  - app/assets/stylesheets/mumuki_laboratory/application.scss
441
- - app/assets/stylesheets/mumuki_laboratory/application/_alerts.scss
442
441
  - app/assets/stylesheets/mumuki_laboratory/application/_codemirror-themes.scss
443
442
  - app/assets/stylesheets/mumuki_laboratory/application/_errors.scss
444
443
  - app/assets/stylesheets/mumuki_laboratory/application/_fonts.scss
@@ -1,3 +0,0 @@
1
- .alert {
2
- margin-right: 15px;
3
- }