This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finished up user manager plugin, added standard flash display
- Loading branch information
Josh Adams
committed
Sep 14, 2008
1 parent
56c5a0c
commit 11d1152
Showing
8 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
div.flash{ | ||
padding: 10px; | ||
border-bottom: 2px solid; | ||
} | ||
div.flash.notice{ | ||
border-color: #aad2a9; | ||
background-color: #d6ffd5; | ||
} | ||
div.flash.warning{ | ||
border-color: #ead3d3; | ||
background-color: #fbe4e4; | ||
} | ||
div.flash.error{ | ||
background-color: #faeb9e; | ||
border-color: #d5a23e; | ||
} |
26 changes: 22 additions & 4 deletions
26
vendor/plugins/ansuz_user_manager/app/controllers/admin/users_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
vendor/plugins/ansuz_user_manager/app/views/admin/users/_form.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<% submit_text = "Create User" unless local_assigns.include?(:submit_text) -%> | ||
<%= error_messages_for :user -%> | ||
Login: <%= f.text_field :login -%><br /> | ||
Password: <%= f.password_field :password -%><br /> | ||
Password Confirmation: <%= f.password_field :password_confirmation -%><br /> | ||
Email: <%= f.text_field :email -%><br /> | ||
Admin? <%= f.check_box(:admin) -%><br /> | ||
<%= submit_tag submit_text -%> |
3 changes: 1 addition & 2 deletions
3
vendor/plugins/ansuz_user_manager/app/views/admin/users/edit.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<%= title "Edit User: #{@user.to_s}" -%> | ||
<% form_for [:admin, @user] do |f| -%> | ||
admin? <%= f.check_box(:admin) -%><br /> | ||
<%= submit_tag "Update User" -%> | ||
<%= render :partial => 'form', :locals => { :f => f, :submit_text => "Update User" } -%> | ||
<% end -%> |
3 changes: 3 additions & 0 deletions
3
vendor/plugins/ansuz_user_manager/app/views/admin/users/index.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
vendor/plugins/ansuz_user_manager/app/views/admin/users/new.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<%= title "New User" -%> | ||
<% content_for :sidebar do -%> | ||
<%= link_to "All Users", admin_users_path -%> | ||
<% end -%> | ||
<% form_for [:admin, @user] do |f| -%> | ||
<%= render :partial => 'form', :locals => { :f => f } -%> | ||
<% end -%> |