<%= form_for @user_attribute_model, :url => eval("admin_user_#{@attribute}_model_path(@user_role_model)") do |f| %>
<%= f.error_messages %>
<%= render :partial => "admin/user_attribute_models/form", :locals => { :f => f, :is_new => false } %>
-
- <%= f.submit t('update') %> <%= link_back %>
+
+ <%= link_to t('update'), "#", :onclick=>"$('#edit_user_role_model_#{@user_attribute_model.id}').submit()" %>
+
+
+ <%= link_back %>
<% end -%>
\ No newline at end of file
diff --git a/app/views/admin/user_attribute_models/index.html.erb b/app/views/admin/user_attribute_models/index.html.erb
index f50885a9..58ab9bc7 100644
--- a/app/views/admin/user_attribute_models/index.html.erb
+++ b/app/views/admin/user_attribute_models/index.html.erb
@@ -1,60 +1,32 @@
-<% content_for :body_id do %>roles_list<% end -%>
-
-<% content_for :secondary do %>
-
-
Member Setup
-
- <%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %>
- <%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %>
-
-
-<% end -%>
-
-
+<% content_for :body_id do %><%= "#{@attribute}s_list" %><% end -%>
- <%= link_to t('admin.new_user_role'), new_admin_user_role_model_path %>
+ <%= link_to t("admin.new_user_#{@attribute}"), eval("new_admin_user_#{@attribute}_model_path") %>
- Roles
+ <%= t("admin.#{@attribute}") %>
Action
<% @user_attribute_models.each do |user_attribute_model| %>
-
- <%= user_attribute_model.i18n_variable[I18n.locale] %>
+ clear">
+ <%= user_attribute_model.i18n_variable[I18n.locale] %>
+
<%= link_to t(:edit), eval("edit_admin_user_#{@attribute}_model_path(user_attribute_model)"), :class => 'edit' %>
- <%= link_to t(:delete), eval("admin_user_#{@attribute}_model_path(user_attribute_model)"), :class => 'delete', :confirm => t('sure?'), :method => :delete unless user_attribute_model.is_built_in? %>
+ <% if user_attribute_model.is_built_in? %>
+ <%= link_to t(:enable), eval("admin_user_#{@attribute}_model_path(user_attribute_model, :authenticity_token => form_authenticity_token, :user_#{@attribute}_model => {:disabled => true})"), :remote => true, :method => :put, :id => "disable_#{user_attribute_model.id}", :style => "display:#{user_attribute_model.is_disabled? ? 'none' : ''}", :class => 'switch' %>
+ <%= link_to t(:disable), eval("admin_user_#{@attribute}_model_path(user_attribute_model, :authenticity_token => form_authenticity_token, :user_#{@attribute}_model => {:disabled => false})"), :remote => true, :method => :put, :id => "enable_#{user_attribute_model.id}", :style => "display:#{user_attribute_model.is_disabled? ? '' : 'none'}", :class => 'switch' %>
+ <% else %>
+ <%= link_to t(:delete), eval("admin_user_#{@attribute}_model_path(user_attribute_model)"), :class => 'delete', :confirm => t('sure?'), :method => :delete %>
+ <% end %>
+
<% end %>
- <%= link_to t('admin.new_user_role'), new_admin_user_role_model_path %>
+ <%= link_to t("admin.new_user_#{@attribute}"), eval("new_admin_user_#{@attribute}_model_path") %>
diff --git a/app/views/admin/user_attribute_models/new.html.erb b/app/views/admin/user_attribute_models/new.html.erb
index 1bd58d00..aaa6a032 100644
--- a/app/views/admin/user_attribute_models/new.html.erb
+++ b/app/views/admin/user_attribute_models/new.html.erb
@@ -1,21 +1,14 @@
-<% content_for :body_id do %>roles_list<% end -%>
-
-<% content_for :secondary do %>
-
-
Member Setup
-
- <%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %>
- <%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %>
-
-
-<% end -%>
+<% content_for :body_id do %><%= "#{@attribute}s_list" %><% end -%>
<%= form_for @user_attribute_model, :url => eval("admin_user_#{@attribute}_models_path") do |f| %>
<%= f.error_messages %>
<%= render :partial => "admin/user_attribute_models/form", :locals => { :f => f, :is_new => true } %>
-
- <%= f.submit t('create') %> <%= link_back %>
+
+ <%= link_to t('create'), "#", :onclick=>"$('#new_user_attribute_model').submit()" %>
+
+
+ <%= link_back %>
<% end -%>
diff --git a/app/views/admin/user_attribute_models/toggle_enable.js.erb b/app/views/admin/user_attribute_models/toggle_enable.js.erb
index a78a00db..153c24a8 100644
--- a/app/views/admin/user_attribute_models/toggle_enable.js.erb
+++ b/app/views/admin/user_attribute_models/toggle_enable.js.erb
@@ -1,2 +1,3 @@
$("#enable_<%= @user_attribute_model.id %>").toggle();
-$("#disable_<%= @user_attribute_model.id %>").toggle();
\ No newline at end of file
+$("#disable_<%= @user_attribute_model.id %>").toggle();
+$("#attribute_<%= @user_attribute_model.id %>").toggleClass('disable');
\ No newline at end of file
diff --git a/app/views/admin/users/_form.html.erb b/app/views/admin/users/_form.html.erb
index ff222438..68431349 100644
--- a/app/views/admin/users/_form.html.erb
+++ b/app/views/admin/users/_form.html.erb
@@ -7,7 +7,7 @@
<%#= file_field_tag 'file' %>
<%#= hidden_field_tag :avatar_cache %>
Choose a file...
- <%= f.text_field :email %>
+ <%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value='E-Mail';}", :value => "E-Mail", :class => 'user_mail' %>
<%= f.check_box :admin %>Admin
diff --git a/app/views/admin/users/edit.html.erb b/app/views/admin/users/edit.html.erb
index 43053c4f..2e114f21 100644
--- a/app/views/admin/users/edit.html.erb
+++ b/app/views/admin/users/edit.html.erb
@@ -1,21 +1,14 @@
<% content_for :body_id do %>user_list<% end -%>
-<% content_for :secondary do %>
-
-
Member Setup
-
- <%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %>
- <%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %>
-
-
-<% end -%>
-
<%= form_for @user, :url => admin_user_path(@user), :html => { :multipart => true } do |f| %>
<%= f.error_messages %>
<%= render :partial => 'form', :locals => { :f => f } %>
-
- <%= f.submit t('update') %> <%= link_back %>
+
+ <%= link_to t('update'), "#", :onclick=>"$('#edit_user_#{@user.id}').submit()" %>
+
+
+ <%= link_back %>
<% end -%>
\ No newline at end of file
diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb
index 72c8179d..7ac2ddf7 100644
--- a/app/views/admin/users/index.html.erb
+++ b/app/views/admin/users/index.html.erb
@@ -1,17 +1,5 @@
<% content_for :body_id do %>user_list<% end -%>
-<% content_for :secondary do %>
-
-
Member Setup
-
- <%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %>
- <%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %>
-
-
-<% end -%>
-
-
-
<%= flash_messages %>
diff --git a/app/views/admin/users/new.html.erb b/app/views/admin/users/new.html.erb
index 9a3a866f..a3864046 100644
--- a/app/views/admin/users/new.html.erb
+++ b/app/views/admin/users/new.html.erb
@@ -1,21 +1,14 @@
<% content_for :body_id do %>user_list<% end -%>
-<% content_for :secondary do %>
-
-
Member Setup
-
- <%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %>
- <%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %>
-
-
-<% end -%>
-
<%= form_for @user, :url => admin_users_path, :html => { :multipart => true } do |f| %>
<%= f.error_messages %>
<%= render :partial => 'form', :locals => { :f => f } %>
-
- <%= f.submit t('create') %> <%= link_back %>
+
+ <%= link_to t('create'), "#", :onclick=>"$('#new_user').submit()" %>
+
+
+ <%= link_back %>
<% end -%>
diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb
index 7e4b5ab6..cc6fafff 100644
--- a/app/views/admin/users/show.html.erb
+++ b/app/views/admin/users/show.html.erb
@@ -1,15 +1,5 @@
<% content_for :body_id do %>user_list<% end -%>
-<% content_for :secondary do %>
-
-
Member Setup
-
- <%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %>
- <%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %>
-
-
-<% end -%>
-
diff --git a/app/views/layouts/member.html.erb b/app/views/layouts/member.html.erb
index 5cffe7b4..91615d71 100644
--- a/app/views/layouts/member.html.erb
+++ b/app/views/layouts/member.html.erb
@@ -31,7 +31,14 @@
- <%= yield :secondary %>
+
+
Member Setup
+
+ <%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %>
+ <%= link_to content_tag(:span, t('admin.list_user_roles')), admin_user_role_models_path %>
+ <%= link_to content_tag(:span, t('admin.list_user_infos')), admin_user_info_models_path %>
+
+