symphonia 3.2.1 → 3.2.2

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: 6b48c59788b2e00b86be3e0db6b90f15833b9b26668673aa56c41a676ebca438
4
- data.tar.gz: 3fa0287a83b8463b1e2a630ce39dd0ad49d7810ed7aefafbaffce517219bea3c
3
+ metadata.gz: d333a60e811eafab34bc7cf19131425076712d3f3b20ab9fee7ddb8fd9f94898
4
+ data.tar.gz: 38f357ed23b77df8e7dee365b11da243394242f3b2f06895b78d03dae245b9b6
5
5
  SHA512:
6
- metadata.gz: c588275faf8d81e32e22b71fc9cf0cbbdb66ee3b6f328aa83540d0129b513368f51294813535eda0432ae6c8681497cbd83484f2d9947b48985b5408dece2b99
7
- data.tar.gz: f5a33405a69db155dda2ef9fa8527f066d5bf995b3618baad9d465936943fc379320a28c1a468077a882ced2f4e9a875bbc32a855eb0f1bf9fe78da754e4575a
6
+ metadata.gz: 9c5ba3f62d587b04eb5a61623149960a5192b1f86ee18e9c8aa6376bd777dbcce204f12d70296c8792c25223af987bfbad549a30a0b5713cd2626d6ad7160667
7
+ data.tar.gz: 878e92fc583be0808d9647602adf067f0338824bc5ea8f45073fc02681812d9d845fdf81f2b0ab70bdfdd874d9ddab64516cb7b931eaeb2edc8b087fcc7120cc
@@ -80,7 +80,7 @@ module Symphonia
80
80
  format.any(:json, :xml) { head :no_content }
81
81
  else
82
82
  format.html do
83
- @roles = Symphonia::Role.all
83
+ @roles = Symphonia::Role.sorted
84
84
  render action: 'edit'
85
85
  end
86
86
  format.xml { render xml: @user.errors, status: :unprocessable_entity }
@@ -1,9 +1,20 @@
1
- <div class="row">
2
- <!-- <div class="col-xs-12 col-sm-6 col-md-3"><%#= f.text_field :login, required: true %></div>-->
3
- <div class="col-xs-12 col-sm-6 col-md-3"><%= f.email_field :mail, required: true %></div>
4
- <div class="col-xs-12 col-sm-6 col-md-3"><%= f.text_field :first_name, required: true %></div>
5
- <div class="col-xs-12 col-sm-6 col-md-3"><%= f.text_field :last_name, required: true %></div>
6
- <% if f.object.external_id.blank? %>
7
- <div class="col-xs-12 col-sm-6 col-md-3"><%= f.password_field :password, required: f.object.new_record?, prepend: icon('key') %></div>
8
- <% end %>
1
+ <div class="row justify-content-center">
2
+ <div class="col-lg-8">
3
+ <%= f.email_field :email, required: true %>
4
+ </div>
5
+ <div class="col-lg-8">
6
+ <%= f.text_field :first_name, required: true %>
7
+
8
+ </div>
9
+ <div class="col-lg-8">
10
+ <%= f.text_field :last_name, required: true %>
11
+
12
+ </div>
13
+ <div class="col-lg-8">
14
+ <% if f.object.external_id.blank? %>
15
+ <%= f.password_field :password, required: f.object.new_record?, prepend: icon('key') %>
16
+ <% end %>
17
+ </div>
9
18
  </div>
19
+
20
+
@@ -1,6 +1,6 @@
1
1
  <%= title(@user.name) %>
2
- <%= symphonia_form_for(@user, :url => {:action => 'update'}) do |f| %>
3
- <%= render(:partial => @user.form_path, :locals => {:f => f}) %>
2
+ <%= symphonia_form_for(@user, url: { action: 'update' }) do |f| %>
3
+ <%= render(partial: @user.form_path, locals: { f: f }) %>
4
4
 
5
5
  <div class="buttons">
6
6
  <%= link_to_back %>
@@ -1,13 +1,13 @@
1
- <%= render(partial: 'symphonia/accounts/form', locals: {f: f}) %>
2
- <div class="row">
3
- <% if Symphonia::User.current.admin? %>
4
- <div class="col-sm-6">
1
+ <%= render(partial: 'symphonia/accounts/form', locals: { f: f }) %>
2
+ <% if Symphonia::User.current.admin? %>
3
+ <div class="row justify-content-center">
4
+ <div class="col-8">
5
5
  <%= f.check_box :admin, id: 'user_admin', layout: :inline %>
6
6
  </div>
7
7
  <% if @roles.any? %>
8
- <div class="col-sm-6">
8
+ <div class="col-9">
9
9
  <%= f.select(:role_id, options_from_collection_for_select(@roles, :id, :name, selected: @user.role_id), include_blank: true, layout: :horizontal) %>
10
10
  </div>
11
11
  <% end -%>
12
- <% end %>
13
- </div>
12
+ </div>
13
+ <% end %>
@@ -4,22 +4,24 @@
4
4
  <%= render(partial: 'form', locals: { f: f }) %>
5
5
 
6
6
  <% if @user && !@user.new_record? && Symphonia::User.current.logged_in? && (prefs = Symphonia::EmailPreference.visible.to_a).any? %>
7
- <%= hidden_field_tag 'user[preference_ids][]' %>
8
- <fieldset id="users-notifications-map" class="clearfix">
9
- <%= content_tag(:legend, t(:label_user_notifications)) %>
10
- <div class="row">
11
- <% prefs.each do |pref| %>
12
- <div class="col-md-3 col-sm-6">
13
- <div class="form-check">
14
- <label class="form-check-label">
15
- <%= check_box_tag('user[preference_ids][]', pref.id, @user.preference_ids.include?(pref.id), class: 'form-check-input') %>
16
- <%= t(pref.name, scope: :preferences) %>
17
- </label>
7
+ <div class="row justify-content-center">
8
+ <%= hidden_field_tag 'user[preference_ids][]' %>
9
+ <fieldset id="users-notifications-map" class="col-8">
10
+ <%= content_tag(:legend, t(:label_user_notifications)) %>
11
+ <div class="row">
12
+ <% prefs.each do |pref| %>
13
+ <div class="col-6">
14
+ <div class="form-check">
15
+ <label class="form-check-label">
16
+ <%= check_box_tag('user[preference_ids][]', pref.id, @user.preference_ids.include?(pref.id), class: 'form-check-input') %>
17
+ <%= t(pref.name, scope: :preferences) %>
18
+ </label>
19
+ </div>
18
20
  </div>
19
- </div>
20
- <% end %>
21
- </div>
22
- </fieldset>
21
+ <% end %>
22
+ </div>
23
+ </fieldset>
24
+ </div>
23
25
  <% end %>
24
26
 
25
27
  <%= f.primary unless request.xhr? %>
@@ -1,7 +1,7 @@
1
1
  <%= title(t(:label_user_new), back: true) %>
2
2
 
3
- <%= symphonia_form_for(@user, html: {novalidate: true}) do |f| %>
4
- <%= render(partial: 'form', locals: {f: f}) %>
3
+ <%= symphonia_form_for(@user, html: { novalidate: true }) do |f| %>
4
+ <%= render(partial: 'form', locals: { f: f }) %>
5
5
  <%= f.form_group do %>
6
6
  <%= f.primary(t(:button_create)) %>
7
7
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Symphonia
2
- VERSION = '3.2.1'
2
+ VERSION = '3.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: symphonia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Pokorny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-01 00:00:00.000000000 Z
11
+ date: 2020-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -282,14 +282,14 @@ dependencies:
282
282
  requirements:
283
283
  - - "~>"
284
284
  - !ruby/object:Gem::Version
285
- version: '5.2'
285
+ version: 6.0.7
286
286
  type: :runtime
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - "~>"
291
291
  - !ruby/object:Gem::Version
292
- version: '5.2'
292
+ version: 6.0.7
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: mini_racer
295
295
  requirement: !ruby/object:Gem::Requirement