end\r
end\r
\r
+ def before_destroy\r
+ u = User.find_by_login(login)\r
+ u.destroy unless u.nil?\r
+ end\r
+\r
private\r
def add_error_message(attr, msg, options = {})\r
@dummy_user ||= User.new\r
<th><%= l(:field_firstname) %></th>\r
<th><%= l(:field_lastname) %></th>\r
<th><%= l(:field_mail) %></th>\r
+ <th/>\r
</tr>\r
</thead>\r
<tbody>\r
<td><%= h(user.firstname) %></td>\r
<td><%= h(user.lastname) %></td>\r
<td><%= h(user.mail) %></td>\r
+ <td><%= link_to(l(:button_delete), user, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del') unless User.current == User.find_by_login(user.login) %></td>\r
</tr>\r
<% end %>\r
</tbody>\r