wobauth 5.1.3 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/app/views/devise/sessions/new.html.erb +1 -1
- data/app/views/wobauth/ad_users/index.html.erb +2 -2
- data/app/views/wobauth/authorities/index.html.erb +2 -2
- data/app/views/wobauth/authorities/show.html.erb +7 -7
- data/app/views/wobauth/groups/_group_memberships.html.erb +1 -1
- data/app/views/wobauth/groups/_group_roles.html.erb +1 -1
- data/app/views/wobauth/groups/index.html.erb +2 -2
- data/app/views/wobauth/memberships/index.html.erb +2 -2
- data/app/views/wobauth/memberships/show.html.erb +3 -3
- data/app/views/wobauth/roles/_role_authorities.html.erb +2 -2
- data/app/views/wobauth/roles/index.html.erb +2 -2
- data/app/views/wobauth/shared/_accounting.html.erb +3 -3
- data/app/views/wobauth/shared/_admin.html.erb +2 -2
- data/app/views/wobauth/users/_user_groups.html.erb +1 -1
- data/app/views/wobauth/users/_user_roles.html.erb +1 -1
- data/app/views/wobauth/users/index.html.erb +2 -2
- data/config/initializers/simple_form_bootstrap.rb +12 -12
- data/lib/templates/erb/scaffold/index.html.erb +1 -1
- data/lib/wobauth/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94799c687b140c37cdbf5358d2f13f9ef3c0798767b2e3dd319806ba0ebbfc13
|
4
|
+
data.tar.gz: 292bb7095b2d67fd2be1a757b9c9296280e3c82e0c3bb8ccc13bcb057bde4fa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c1181fccfea759cd6fedd3cbc9f358fd2ca7451505226334da6989deb963d349e4081270234125cd9484ec148dbb69bf3c5bbcc7d32714541164a64034ea1e3
|
7
|
+
data.tar.gz: ffcf32bf7ece533043f814bbc50a6e2eb82567ba827881f660553c5e1f51cfa4612896a72157cd4e89caa8ce6b9f7d09dc8859124a97e081d360ef2a9cf7f000
|
data/README.md
CHANGED
@@ -30,27 +30,29 @@ wobauth 3.x uses bootstrap v4 and font-awesome, starting with Rails 5.1
|
|
30
30
|
(may work with Rails 5.0, but not tested)
|
31
31
|
wobauth 4.x works with sprockets v4.
|
32
32
|
wobauth 5.x works with rails 6.x and is designed for autoloading via zeitwerk.
|
33
|
+
wobauth 6.x works with rails >= 6.1 and uses bootstrap v5.
|
33
34
|
|
34
35
|
Requirements
|
35
36
|
------------
|
36
37
|
|
37
38
|
### Rails >= 6.0; autoload = :zeitwerk; webpacker; stimulusjs
|
38
39
|
|
39
|
-
|
|
40
|
+
| version | rails | ruby | bootstrap | icons | wobapphelpers |
|
40
41
|
|------------|-------|--------|-----------|-----------------|---------------|
|
41
|
-
|
|
42
|
+
| master(6.x)| >=6.1 | >= 2.7 | v5 | fontawesome 5.x | master (5.x) |
|
43
|
+
| 5-1-stable | >=6.0 | >= 2.6 | v4 | fontawesome 5.x | 4-stable |
|
42
44
|
|
43
45
|
### Rails >= 6.0, autoload = :zeitwerk
|
44
46
|
|
45
|
-
|
|
47
|
+
| version | rails | ruby | bootstrap | icons | wobapphelpers |
|
46
48
|
|------------|-------|--------|-----------|-----------------|---------------|
|
47
|
-
| 5-stable | >=6.0 | >= 2.6 | v4 | fontawesome 5.x |
|
49
|
+
| 5-stable | >=6.0 | >= 2.6 | v4 | fontawesome 5.x | 4-stable |
|
48
50
|
|
49
51
|
### Rails <= 5.2, autoload = :classic
|
50
52
|
|
51
53
|
| branch | rails | ruby | bootstrap | icons | wobapphelpers |
|
52
54
|
|------------|-------|--------|-----------|-----------------|---------------|
|
53
|
-
| 4-0-stable | >=5.1 | >= 2.3 | v4 | fontawesome 5.x |
|
55
|
+
| 4-0-stable | >=5.1 | >= 2.3 | v4 | fontawesome 5.x | 4-stable |
|
54
56
|
| 3-0-stable | >=5.1 | >= 2.3 | v4 | fontawesome 4.7 | 3-0-stable |
|
55
57
|
| 2-0-stable | 5.0 | >= 2.2 | v3 | glyphicons | 2-0-stable |
|
56
58
|
| 1-0-stable | 4.2 | >= 2.0 | v3 | glyphicons | 1-0-stable |
|
@@ -63,13 +65,13 @@ Installation
|
|
63
65
|
Add wobauth to your Gemfile:
|
64
66
|
|
65
67
|
```ruby
|
68
|
+
gem 'wobauth', git: 'https://github.com/swobspace/wobauth.git', branch: 'master'
|
66
69
|
gem 'wobauth', '~> 5.0.0'
|
67
70
|
gem 'wobauth', '~> 4.0.0'
|
68
71
|
gem 'wobauth', '~> 3.4.8'
|
69
72
|
gem 'wobauth', git: 'https://github.com/swobspace/wobauth.git', branch: '3-0-stable'
|
70
73
|
gem 'wobauth', git: 'https://github.com/swobspace/wobauth.git', branch: '2-0-stable'
|
71
74
|
gem 'wobauth', git: 'https://github.com/swobspace/wobauth.git', branch: '1-0-stable'
|
72
|
-
|
73
75
|
```
|
74
76
|
Starting with v3.4 gems are published to rubygems.org.
|
75
77
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="card-body p-1 m-1">
|
3
3
|
<%= form_tag( url_for(:action => 'index'),
|
4
4
|
:class => "") do -%>
|
5
|
-
<div class="
|
5
|
+
<div class="mb-3">
|
6
6
|
<label>Name, Vorname oder E-Mail-Adresse:</label>
|
7
7
|
<%= text_field_tag :query, '', class: 'form-control'-%>
|
8
8
|
</div>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<%= content_tag :table, id: :adusers, role: :woauth_datatable,
|
16
16
|
class: "table table-bordered table-striped",
|
17
17
|
data: {
|
18
|
-
target: '
|
18
|
+
"datatables-target": 'datatable',
|
19
19
|
} do %>
|
20
20
|
<thead>
|
21
21
|
<tr>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= content_tag :table, id: :wobauth_authorities, role: :wobauth_datatable,
|
5
5
|
class: "table table-bordered table-striped",
|
6
6
|
data: {
|
7
|
-
target: '
|
7
|
+
"datatables-target": 'datatable',
|
8
8
|
} do %>
|
9
9
|
|
10
10
|
<thead>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<tbody>
|
23
23
|
|
24
24
|
<% @authorities.each do |authority| %>
|
25
|
-
<%= content_tag(:tr, dom_id(authority)) do %>
|
25
|
+
<%= content_tag(:tr, id: dom_id(authority), class: dom_class(authority)) do %>
|
26
26
|
<td><%= authority.authorizable %></td>
|
27
27
|
<td><%= authority.authorizable_type %></td>
|
28
28
|
<td><%= authority.role %></td>
|
@@ -5,31 +5,31 @@
|
|
5
5
|
<div class="card-body">
|
6
6
|
<table class="table table-sm table-borderless">
|
7
7
|
<tr>
|
8
|
-
<th class="w-25 text-
|
8
|
+
<th class="w-25 text-end"><%= t('attributes.authorizable')%>:</th>
|
9
9
|
<td><%= @authority.authorizable %></td>
|
10
10
|
</tr>
|
11
11
|
<tr>
|
12
|
-
<th class="w-25 text-
|
12
|
+
<th class="w-25 text-end"><%= t('attributes.authorizable_type')%>:</th>
|
13
13
|
<td><%= @authority.authorizable_type %></td>
|
14
14
|
</tr>
|
15
15
|
<tr>
|
16
|
-
<th class="w-25 text-
|
16
|
+
<th class="w-25 text-end"><%= t('attributes.role')%>:</th>
|
17
17
|
<td><%= @authority.role %></td>
|
18
18
|
</tr>
|
19
19
|
<tr>
|
20
|
-
<th class="w-25 text-
|
20
|
+
<th class="w-25 text-end"><%= t('attributes.authorized_for')%>:</th>
|
21
21
|
<td><%= @authority.authorized_for %></td>
|
22
22
|
</tr>
|
23
23
|
<tr>
|
24
|
-
<th class="w-25 text-
|
24
|
+
<th class="w-25 text-end"><%= t('attributes.authorized_for_type')%>:</th>
|
25
25
|
<td><%= @authority.authorized_for_type %></td>
|
26
26
|
</tr>
|
27
27
|
<tr>
|
28
|
-
<th class="w-25 text-
|
28
|
+
<th class="w-25 text-end"><%= t('attributes.valid_from')%>:</th>
|
29
29
|
<td><%= @authority.valid_from %></td>
|
30
30
|
</tr>
|
31
31
|
<tr>
|
32
|
-
<th class="w-25 text-
|
32
|
+
<th class="w-25 text-end"><%= t('attributes.valid_until')%>:</th>
|
33
33
|
<td><%= @authority.valid_until %></td>
|
34
34
|
</tr>
|
35
35
|
</table>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
</thead>
|
9
9
|
<tbody>
|
10
10
|
<% group.memberships.each do |membership| %>
|
11
|
-
<%= content_tag(:tr, dom_id(membership)) do %>
|
11
|
+
<%= content_tag(:tr, id: dom_id(membership), class: dom_class(membership)) do %>
|
12
12
|
<td><%= link_to membership.user, wobauth.user_path(membership.user) %></td>
|
13
13
|
<td><%= membership.auto %></td>
|
14
14
|
<td class="nowrap">
|
@@ -9,7 +9,7 @@
|
|
9
9
|
</thead>
|
10
10
|
<tbody>
|
11
11
|
<% group.authorities.each do |authority| %>
|
12
|
-
<%= content_tag(:tr, dom_id(authority)) do %>
|
12
|
+
<%= content_tag(:tr, id: dom_id(authority), class: dom_id(authority)) do %>
|
13
13
|
<td><%= link_to authority.role, wobauth.role_path(authority.role) %></td>
|
14
14
|
<td><%= authorized_for_link(authority.authorized_for) %></td>
|
15
15
|
<td><%= authority.authorized_for_type %></td>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= content_tag :table, id: :wobauth_groups, role: :wobauth_datatable,
|
6
6
|
class: "table table-bordered table-striped",
|
7
7
|
data: {
|
8
|
-
target: '
|
8
|
+
"datatables-target": 'datatable',
|
9
9
|
} do %>
|
10
10
|
<thead>
|
11
11
|
<tr>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<tbody>
|
18
18
|
|
19
19
|
<% @groups.each do |group| %>
|
20
|
-
<%= content_tag(:tr, dom_id(group)) do %>
|
20
|
+
<%= content_tag(:tr, id: dom_id(group), class: dom_class(group)) do %>
|
21
21
|
<td><%= group.name %></td>
|
22
22
|
<td><%= group.description %></td>
|
23
23
|
<td class="nowrap">
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= content_tag :table, id: :wobauth_memberships, role: :wobauth_datatable,
|
5
5
|
class: "table table-bordered table-striped dataTable",
|
6
6
|
data: {
|
7
|
-
target: '
|
7
|
+
"datatables-target": 'datatable',
|
8
8
|
} do %>
|
9
9
|
<thead>
|
10
10
|
<tr>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<tbody>
|
18
18
|
|
19
19
|
<% @memberships.each do |membership| %>
|
20
|
-
<%= content_tag(:tr, id: dom_id(membership)) do %>
|
20
|
+
<%= content_tag(:tr, id: dom_id(membership), class: dom_class(membership)) do %>
|
21
21
|
<td><%= membership.user %></td>
|
22
22
|
<td><%= membership.group %></td>
|
23
23
|
<td><%= membership.auto %></td>
|
@@ -5,15 +5,15 @@
|
|
5
5
|
<div class="card-body">
|
6
6
|
<table class="table table-sm table-borderless ">
|
7
7
|
<tr>
|
8
|
-
<th class="w-25 text-
|
8
|
+
<th class="w-25 text-end"><%= t('attributes.user')%>:</th>
|
9
9
|
<td><%= @membership.user %></td>
|
10
10
|
</tr>
|
11
11
|
<tr>
|
12
|
-
<th class="w-25 text-
|
12
|
+
<th class="w-25 text-end"><%= t('attributes.group')%>:</th>
|
13
13
|
<td><%= @membership.group %></td>
|
14
14
|
</tr>
|
15
15
|
<tr>
|
16
|
-
<th class="w-25 text-
|
16
|
+
<th class="w-25 text-end"><%= t('attributes.auto')%>:</th>
|
17
17
|
<td><%= @membership.auto %></td>
|
18
18
|
</tr>
|
19
19
|
</table>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%= content_tag :table, id: :wobauth_role_authorities, role: :wobauth_datatable,
|
3
3
|
class: "table table-sm table-bordered",
|
4
4
|
data: {
|
5
|
-
target: '
|
5
|
+
"datatables-target": 'datatable',
|
6
6
|
} do %>
|
7
7
|
|
8
8
|
<thead>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
</thead>
|
16
16
|
<tbody>
|
17
17
|
<% authorities.valid(Date.today).each do |authority| %>
|
18
|
-
<%= content_tag(:tr, dom_id(authority)) do %>
|
18
|
+
<%= content_tag(:tr, id: dom_id(authority), class: dom_class(authority)) do %>
|
19
19
|
<td><%= link_to authority.authorizable, polymorphic_path([wobauth, authority.authorizable]) %></td>
|
20
20
|
<td><%= authority.authorizable_type %></td>
|
21
21
|
<td><%= authorized_for_link(authority.authorized_for) %></td>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= content_tag :table, id: :wobauth_roles, role: :wobauth_datatable,
|
6
6
|
class: "table table-bordered table-striped",
|
7
7
|
data: {
|
8
|
-
target: '
|
8
|
+
"datatables-target": 'datatable',
|
9
9
|
} do %>
|
10
10
|
<thead>
|
11
11
|
<tr>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<tbody>
|
17
17
|
|
18
18
|
<% @roles.each do |role| %>
|
19
|
-
<%= content_tag(:tr, dom_id(role)) do %>
|
19
|
+
<%= content_tag(:tr, id: dom_id(role), class: dom_id(role)) do %>
|
20
20
|
<td><%= role.name %></td>
|
21
21
|
<td class="nowrap">
|
22
22
|
<%= show_link [wobauth, role] %>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<ul class="navbar-nav
|
1
|
+
<ul class="navbar-nav">
|
2
2
|
<li class="nav-item dropdown">
|
3
|
-
<a href="#" class="nav-link dropdown-toggle" role="button" id="accountNavDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
3
|
+
<a href="#" class="nav-link dropdown-toggle" role="button" id="accountNavDropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
4
4
|
<% if user_signed_in? %>
|
5
5
|
Account
|
6
6
|
<% else %>
|
7
7
|
Login
|
8
8
|
<% end %>
|
9
9
|
</a>
|
10
|
-
<div class="dropdown-menu dropdown-menu-
|
10
|
+
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="accountNavDropdown">
|
11
11
|
<% unless user_signed_in? %>
|
12
12
|
<% if Wobauth.remote_authentication? %>
|
13
13
|
<%= link_to "Single-Sign-On", wobauth.login_path, class: "dropdown-item" -%>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% if Wobauth::AdminAbility.new(current_user).can? :navigate, Wobauth::User %>
|
2
|
-
<ul class="navbar-nav
|
2
|
+
<ul class="navbar-nav">
|
3
3
|
<li class="nav-item dropdown <%= admin_active_class %>">
|
4
|
-
<a href="#" class="nav-link dropdown-toggle" role="button" id="adminNavDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
4
|
+
<a href="#" class="nav-link dropdown-toggle" role="button" id="adminNavDropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
5
5
|
Admin</a>
|
6
6
|
<div class="dropdown-menu" aria-labelledby="adminNavDropdown">
|
7
7
|
<% ['users', 'groups', 'memberships', 'roles', 'authorities'].each do |ctrlr| %>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
</thead>
|
9
9
|
<tbody>
|
10
10
|
<% user.memberships.each do |membership| %>
|
11
|
-
<%= content_tag(:tr, dom_id(membership)) do %>
|
11
|
+
<%= content_tag(:tr, id: dom_id(membership), class: dom_class(membership)) do %>
|
12
12
|
<td><%= link_to membership.group, wobauth.group_path(membership.group) %></td>
|
13
13
|
|
14
14
|
<td><%= membership.auto %></td>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
</thead>
|
10
10
|
<tbody>
|
11
11
|
<% user.authorities.each do |authority| %>
|
12
|
-
<%= content_tag(:tr, dom_id(authority)) do %>
|
12
|
+
<%= content_tag(:tr, id: dom_id(authority), class: dom_class(authority)) do %>
|
13
13
|
<td><%= link_to authority.role, wobauth.role_path(authority.role) %></td>
|
14
14
|
<td><%= authorized_for_link(authority.authorized_for) %></td>
|
15
15
|
<td><%= authority.authorized_for_type %></td>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= content_tag :table, id: :wobauth_users, role: :wobauth_datatable,
|
5
5
|
class: "table table-bordered table-striped",
|
6
6
|
data: {
|
7
|
-
target: '
|
7
|
+
"datatables-target": 'datatable',
|
8
8
|
} do %>
|
9
9
|
<thead>
|
10
10
|
<tr>
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<tbody>
|
27
27
|
|
28
28
|
<% @users.each do |user| %>
|
29
|
-
<%= content_tag(:tr, dom_id(user)) do %>
|
29
|
+
<%= content_tag(:tr, id: dom_id(user), class: dom_class(user)) do %>
|
30
30
|
<td><%= user %></td>
|
31
31
|
<td><%= user.sn %></td>
|
32
32
|
<td><%= user.givenname %></td>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Use this setup block to configure all options available in SimpleForm.
|
2
2
|
SimpleForm.setup do |config|
|
3
3
|
config.error_notification_class = 'alert alert-danger'
|
4
|
-
|
4
|
+
config.button_class = 'btn btn-primary'
|
5
5
|
config.boolean_label_class = 'form-check-label'
|
6
6
|
|
7
7
|
# Helpers
|
8
|
-
wrapper_options = {class: '
|
8
|
+
wrapper_options = {class: 'mb-3'}
|
9
9
|
input_options = {error_class: 'is-invalid'}
|
10
10
|
label_class = 'col-form-label'
|
11
11
|
|
@@ -14,7 +14,7 @@ SimpleForm.setup do |config|
|
|
14
14
|
b.use :hint, wrap_with: {tag: 'small', class: 'form-text text-muted'}
|
15
15
|
end
|
16
16
|
|
17
|
-
config.wrappers :vertical_form, tag: 'div', class: '
|
17
|
+
config.wrappers :vertical_form, tag: 'div', class: 'mb-3', error_class: 'has-invalid' do |b|
|
18
18
|
b.use :html5
|
19
19
|
b.use :placeholder
|
20
20
|
b.optional :maxlength
|
@@ -28,7 +28,7 @@ SimpleForm.setup do |config|
|
|
28
28
|
error_and_hint.call(b)
|
29
29
|
end
|
30
30
|
|
31
|
-
config.wrappers :vertical_file_input, tag: 'div', class: '
|
31
|
+
config.wrappers :vertical_file_input, tag: 'div', class: 'mb-3', error_class: 'has-invalid' do |b|
|
32
32
|
b.use :html5
|
33
33
|
b.use :placeholder
|
34
34
|
b.optional :maxlength
|
@@ -40,7 +40,7 @@ SimpleForm.setup do |config|
|
|
40
40
|
error_and_hint.call(b)
|
41
41
|
end
|
42
42
|
|
43
|
-
config.wrappers :vertical_boolean, tag: 'div', class: '
|
43
|
+
config.wrappers :vertical_boolean, tag: 'div', class: 'mb-3', error_class: 'has-invalid' do |b|
|
44
44
|
b.use :html5
|
45
45
|
b.optional :readonly
|
46
46
|
|
@@ -51,7 +51,7 @@ SimpleForm.setup do |config|
|
|
51
51
|
error_and_hint.call(b)
|
52
52
|
end
|
53
53
|
|
54
|
-
config.wrappers :vertical_radio_and_checkboxes, tag: 'div', class: '
|
54
|
+
config.wrappers :vertical_radio_and_checkboxes, tag: 'div', class: 'mb-3', error_class: 'has-invalid' do |b|
|
55
55
|
b.use :html5
|
56
56
|
b.optional :readonly
|
57
57
|
b.use :label, class: 'control-label'
|
@@ -59,7 +59,7 @@ SimpleForm.setup do |config|
|
|
59
59
|
error_and_hint.call(b)
|
60
60
|
end
|
61
61
|
|
62
|
-
config.wrappers :horizontal_form, tag: 'div', class: '
|
62
|
+
config.wrappers :horizontal_form, tag: 'div', class: 'mb-3 row', error_class: 'has-invalid' do |b|
|
63
63
|
b.use :html5
|
64
64
|
b.use :placeholder
|
65
65
|
b.optional :maxlength
|
@@ -75,7 +75,7 @@ SimpleForm.setup do |config|
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
config.wrappers :horizontal_file_input, tag: 'div', class: '
|
78
|
+
config.wrappers :horizontal_file_input, tag: 'div', class: 'mb-3', error_class: 'has-invalid' do |b|
|
79
79
|
b.use :html5
|
80
80
|
b.use :placeholder
|
81
81
|
b.optional :maxlength
|
@@ -89,7 +89,7 @@ SimpleForm.setup do |config|
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
-
config.wrappers :horizontal_boolean, tag: 'div', class: '
|
92
|
+
config.wrappers :horizontal_boolean, tag: 'div', class: 'mb-3', error_class: 'has-invalid' do |b|
|
93
93
|
b.use :html5
|
94
94
|
b.optional :readonly
|
95
95
|
b.use :label, class: 'col-sm-3 col-md-2 col-form-label'
|
@@ -102,7 +102,7 @@ SimpleForm.setup do |config|
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
-
config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: '
|
105
|
+
config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: 'mb-3', error_class: 'has-invalid' do |b|
|
106
106
|
b.use :html5
|
107
107
|
b.optional :readonly
|
108
108
|
|
@@ -114,7 +114,7 @@ SimpleForm.setup do |config|
|
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
117
|
-
config.wrappers :inline_form, tag: 'div', class: '
|
117
|
+
config.wrappers :inline_form, tag: 'div', class: 'mb-3', error_class: 'has-invalid' do |b|
|
118
118
|
b.use :html5
|
119
119
|
b.use :placeholder
|
120
120
|
b.optional :maxlength
|
@@ -128,7 +128,7 @@ SimpleForm.setup do |config|
|
|
128
128
|
error_and_hint.call(b)
|
129
129
|
end
|
130
130
|
|
131
|
-
config.wrappers :multi_select, tag: 'div', class: '
|
131
|
+
config.wrappers :multi_select, tag: 'div', class: 'mb-3', error_class: 'has-invalid' do |b|
|
132
132
|
b.use :html5
|
133
133
|
b.optional :readonly
|
134
134
|
b.use :label, class: 'control-label'
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<tbody>
|
13
13
|
|
14
14
|
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
|
15
|
-
<%%=
|
15
|
+
<%%= content_tag(:tr, id: dom_id(<%= singular_table_name %>), class: dom_class(<%= singular_table_name %>)) do %>
|
16
16
|
<% attributes.each do |attribute| -%>
|
17
17
|
<td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
|
18
18
|
<% end -%>
|
data/lib/wobauth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wobauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wolfgang Barth
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: wobapphelpers
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '4.
|
33
|
+
version: '4.99'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '4.
|
40
|
+
version: '4.99'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: wobaduser
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,16 +174,16 @@ dependencies:
|
|
174
174
|
name: wobapphelpers
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
|
-
- - "
|
177
|
+
- - ">"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '4.
|
179
|
+
version: '4.99'
|
180
180
|
type: :development
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
|
-
- - "
|
184
|
+
- - ">"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '4.
|
186
|
+
version: '4.99'
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: wobaduser
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -532,14 +532,14 @@ dependencies:
|
|
532
532
|
requirements:
|
533
533
|
- - "~>"
|
534
534
|
- !ruby/object:Gem::Version
|
535
|
-
version: '
|
535
|
+
version: '5.0'
|
536
536
|
type: :development
|
537
537
|
prerelease: false
|
538
538
|
version_requirements: !ruby/object:Gem::Requirement
|
539
539
|
requirements:
|
540
540
|
- - "~>"
|
541
541
|
- !ruby/object:Gem::Version
|
542
|
-
version: '
|
542
|
+
version: '5.0'
|
543
543
|
description: Rails engine providing MVCs for User, Group, Role, Membership and Authority
|
544
544
|
email: wob@swobspace.de
|
545
545
|
executables: []
|