updates options for admin officials level

This commit is contained in:
Juanjo Bazán
2015-08-17 18:27:18 +02:00
parent ba9b04a0d6
commit d9d5e24a8b
3 changed files with 17 additions and 1 deletions

View File

@@ -5,7 +5,11 @@ module AdminHelper
end
def official_level_options
1..5
options = []
(0..5).each do |i|
options << [[t("admin.officials.level_#{i}"), Setting.value_for("official_level_#{i}_name")].compact.join(': '), i]
end
options
end
private

View File

@@ -30,6 +30,12 @@ en:
restore:
success: The debate has been restored
officials:
level_0: Level 0
level_1: Level 1
level_2: Level 2
level_3: Level 3
level_4: Level 4
level_5: Level 5
index:
title: Officials
search_email_placeholder: 'Search user by email'

View File

@@ -30,6 +30,12 @@ es:
restore:
success: El debate ha sido permitido
officials:
level_0: Nivel 0
level_1: Nivel 1
level_2: Nivel 2
level_3: Nivel 3
level_4: Nivel 4
level_5: Nivel 5
index:
title: Cargos Públicos
search_email_placeholder: 'Buscar usuario por email'