lyb_devise_admin 0.3.5 → 0.3.6
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.
@@ -1,9 +1,16 @@
|
|
1
1
|
= simple_form_for @user do |f|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
.row-fluid
|
3
|
+
.span6= f.input :login if @user.respond_to? :login
|
4
|
+
.span6= f.input :email
|
5
|
+
.row-fluid
|
6
|
+
.span6= f.input :password, :hint => !f.object.new_record?, :input_html => {:autocomplete => "off"}
|
7
|
+
.span6= f.input :password_confirmation
|
8
|
+
- unless can?(:manage, User)
|
9
|
+
.row-fluid
|
10
|
+
.span6= f.input :current_password, :required => true
|
11
|
+
.row-fluid
|
12
|
+
.span6= f.input :role_texts, :as => :select, :collection => Ability.roles_for_collection, :include_blank => false, :input_html => {:multiple => 'multiple'}, :required => true if can?(:manage, Role)
|
13
|
+
|
14
|
+
.form-actions
|
15
|
+
= f.button :submit
|
8
16
|
|
9
|
-
= f.button :submit
|
@@ -1,7 +1,8 @@
|
|
1
1
|
%tr
|
2
|
-
|
2
|
+
-if user.respond_to? :login
|
3
|
+
%td= user.login
|
3
4
|
%td= user.to_s
|
4
|
-
%td= user.email
|
5
|
+
%td= link_to user.email, user, 'data-href-container' => 'tr'
|
5
6
|
%td= user.roles.join(', ')
|
6
7
|
%td= user.last_sign_in_at if Devise.mappings[:user].trackable?
|
7
8
|
%td= user.locked_at if Devise.mappings[:user].lockable?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lyb_devise_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: LybDeviseAdmin provides a ready-to-use admin interface for devise.
|
15
15
|
email:
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 1.8.
|
56
|
+
rubygems_version: 1.8.11
|
57
57
|
signing_key:
|
58
58
|
specification_version: 3
|
59
59
|
summary: Admin interface for device.
|