added a button on users/list to manually activate an account

git-svn-id: http://redmine.rubyforge.org/svn/trunk@155 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-01-06 14:22:22 +00:00
parent 5fd3decb16
commit 94391723c0
5 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,9 @@
<% if user.locked? %> <% if user.locked? %>
<%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %> <%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %>
<%= submit_tag l(:button_unlock), :class => "button-small" %> <%= submit_tag l(:button_unlock), :class => "button-small" %>
<% elsif user.registered? %>
<%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %>
<%= submit_tag l(:button_activate), :class => "button-small" %>
<% else %> <% else %>
<%= hidden_field_tag 'user[status]', User::STATUS_LOCKED %> <%= hidden_field_tag 'user[status]', User::STATUS_LOCKED %>
<%= submit_tag l(:button_lock), :class => "button-small" %> <%= submit_tag l(:button_lock), :class => "button-small" %>

View File

@ -319,6 +319,7 @@ button_view: Siehe
button_move: Bewegen button_move: Bewegen
button_back: Rückkehr button_back: Rückkehr
button_cancel: Annullieren button_cancel: Annullieren
button_activate: Aktivieren
text_select_mail_notifications: Aktionen für die Mailbenachrichtigung aktiviert werden soll. text_select_mail_notifications: Aktionen für die Mailbenachrichtigung aktiviert werden soll.
text_regexp_info: eg. ^[A-Z0-9]+$ text_regexp_info: eg. ^[A-Z0-9]+$

View File

@ -319,6 +319,7 @@ button_view: View
button_move: Move button_move: Move
button_back: Back button_back: Back
button_cancel: Cancel button_cancel: Cancel
button_activate: Activate
text_select_mail_notifications: Select actions for which mail notifications should be sent. text_select_mail_notifications: Select actions for which mail notifications should be sent.
text_regexp_info: eg. ^[A-Z0-9]+$ text_regexp_info: eg. ^[A-Z0-9]+$

View File

@ -319,6 +319,7 @@ button_view: Ver
button_move: Mover button_move: Mover
button_back: Atrás button_back: Atrás
button_cancel: Cancelar button_cancel: Cancelar
button_activate: Activar
text_select_mail_notifications: Seleccionar las actividades que necesitan la activación de la notificación por mail. text_select_mail_notifications: Seleccionar las actividades que necesitan la activación de la notificación por mail.
text_regexp_info: eg. ^[A-Z0-9]+$ text_regexp_info: eg. ^[A-Z0-9]+$

View File

@ -320,6 +320,7 @@ button_view: Voir
button_move: Déplacer button_move: Déplacer
button_back: Retour button_back: Retour
button_cancel: Annuler button_cancel: Annuler
button_activate: Activer
text_select_mail_notifications: Sélectionner les actions pour lesquelles la notification par mail doit être activée. text_select_mail_notifications: Sélectionner les actions pour lesquelles la notification par mail doit être activée.
text_regexp_info: ex. ^[A-Z0-9]+$ text_regexp_info: ex. ^[A-Z0-9]+$