From 94391723c0c8ec5a0d0141730dca89f0bfabfd32 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 6 Jan 2007 14:22:22 +0000 Subject: [PATCH] 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 --- app/views/users/list.rhtml | 3 +++ lang/de.yml | 1 + lang/en.yml | 1 + lang/es.yml | 1 + lang/fr.yml | 1 + 5 files changed, 7 insertions(+) diff --git a/app/views/users/list.rhtml b/app/views/users/list.rhtml index 610234625..5eafda62e 100644 --- a/app/views/users/list.rhtml +++ b/app/views/users/list.rhtml @@ -32,6 +32,9 @@ <% if user.locked? %> <%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %> <%= 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 %> <%= hidden_field_tag 'user[status]', User::STATUS_LOCKED %> <%= submit_tag l(:button_lock), :class => "button-small" %> diff --git a/lang/de.yml b/lang/de.yml index d34a311e6..d6a759593 100644 --- a/lang/de.yml +++ b/lang/de.yml @@ -319,6 +319,7 @@ button_view: Siehe button_move: Bewegen button_back: Rückkehr button_cancel: Annullieren +button_activate: Aktivieren text_select_mail_notifications: Aktionen für die Mailbenachrichtigung aktiviert werden soll. text_regexp_info: eg. ^[A-Z0-9]+$ diff --git a/lang/en.yml b/lang/en.yml index bfa34586a..6ef3bfe5e 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -319,6 +319,7 @@ button_view: View button_move: Move button_back: Back button_cancel: Cancel +button_activate: Activate text_select_mail_notifications: Select actions for which mail notifications should be sent. text_regexp_info: eg. ^[A-Z0-9]+$ diff --git a/lang/es.yml b/lang/es.yml index a62744326..596cefc07 100644 --- a/lang/es.yml +++ b/lang/es.yml @@ -319,6 +319,7 @@ button_view: Ver button_move: Mover button_back: Atrás 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_regexp_info: eg. ^[A-Z0-9]+$ diff --git a/lang/fr.yml b/lang/fr.yml index 34170d753..9154ee9c1 100644 --- a/lang/fr.yml +++ b/lang/fr.yml @@ -320,6 +320,7 @@ button_view: Voir button_move: Déplacer button_back: Retour 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_regexp_info: ex. ^[A-Z0-9]+$