Fix 4.0.x UI layout and Spanish i18n issues (#1077)

This PR contains corrective UI and Spanish i18n fixes for the 4.0.x
branch.

Fixes included:
- Fix domain list layout stability by adding explicit column classes and
widths.
- Fix horizontal overflow in the domain list so wide tables remain
usable on smaller screens.
- Fix quota bar rendering consistency in domain and mailbox listings.
- Fix action buttons in list views by using compact icon buttons with
title and aria-label attributes.
- Fix top menu spacing and labels so the navigation remains readable in
constrained widths.
- Fix untranslated dashboard/global search labels by adding language
strings.
- Fix Spanish labels and wording used by the affected 4.0.x screens.
- Fix the total quota label shown in the domain list.

Thanks @TrapoSAMA
This commit is contained in:
Rodrigo Cortés Cano authored and GitHub committed 2026-07-13 08:47:57 +01:00
1 parent ead844eced
commit dcf9318d27
9 files changed
+356 -219

No files matched your search

+10
View File
@@ -56,8 +56,11 @@ $PALANG['add_alias'] = 'Add Forward';
$PALANG['add_alias_domain'] = 'Add Alias Domain';
$PALANG['add_mailbox'] = 'Add Mailbox';
$PALANG['pMenu_fetchmail'] = 'Fetch Email';
$PALANG['pMenu_fetchmail_menu'] = 'Email Fetch';
$PALANG['pMenu_sendmail'] = 'Send Email';
$PALANG['pMenu_sendmail_menu'] = 'Send';
$PALANG['pMenu_dkim'] = 'Domain Keys';
$PALANG['pMenu_dkim_menu'] = 'DKIM';
$PALANG['pMenu_dkim_signing'] = 'Signing Table';
$PALANG['pMenu_security'] = 'Security';
$PALANG['pMenu_password'] = 'Password';
@@ -75,6 +78,10 @@ $PALANG['pMain_sendmail'] = 'Send an email to one of your newly created mailboxe
$PALANG['pMain_password'] = 'Change the password for your admin account.';
$PALANG['pMain_viewlog'] = 'View the log files.';
$PALANG['pMain_logout'] = 'Logout from the system';
$PALANG['pMain_global_search'] = 'Global Search';
$PALANG['pMain_global_search_placeholder'] = 'Global search (mailbox, alias ...)';
$PALANG['pMain_search_button'] = 'Search';
$PALANG['pMain_dashboard'] = 'Dashboard';
$PALANG['pOverview_disabled'] = 'Disabled';
$PALANG['pOverview_unlimited'] = 'Unlimited';
@@ -332,8 +339,11 @@ $PALANG['pViewlog_action_delete_dkim_signing_entry'] = 'delete domain signing en
$PALANG['pMain_dkim'] = 'Add a Domain Key for use with OpenDKIM.';
$PALANG['pAdminMenu_list_admin'] = 'Admin List';
$PALANG['pAdminMenu_admin'] = 'Admins';
$PALANG['pAdminMenu_list_domain'] = 'Domain List';
$PALANG['pAdminMenu_domain'] = 'Domains';
$PALANG['pAdminMenu_list_virtual'] = 'Virtual List';
$PALANG['pAdminMenu_virtual'] = 'Virtual';
$PALANG['pAdminMenu_backup'] = 'Backup';
$PALANG['pAdminMenu_create_domain_admins'] = 'Domain Admins';
$PALANG['pAdminMenu_create_admin'] = 'New Admin';
+144 -132
View File
@@ -1,7 +1,7 @@
<?php
# $Id$
//
// Language file Spanish
// Language file Spanish
// by Alvaro
//
// by Iñaki Rodríguez (irodriguez@ackstorm.es / irodriguez@virtualminds.es)
@@ -10,8 +10,8 @@ $PALANG['YES'] = 'SI';
$PALANG['NO'] = 'NO';
$PALANG['edit'] = 'editar';
$PALANG['del'] = 'borrar';
$PALANG['exit'] = 'Salir';
$PALANG['cancel'] = 'Cancelar';
$PALANG['exit'] = 'Salir';
$PALANG['cancel'] = 'Cancelar';
$PALANG['save'] = 'Salvar'; # XXX Text change: "Save" -> "Save changes"
$PALANG['confirm'] = '¿Está seguro de que desea borrarlo?\n';
$PALANG['confirm_delete_admin'] = '¿Estás seguro que deseas borrar al admin %s?'; # XXX
@@ -24,7 +24,7 @@ $PALANG['confirm_delete_mailbox'] = '¿Estás seguro que deseas borrar el buzón
$PALANG['confirm_delete_vacation'] = '¿Estás seguro que deseas borrar el mensaje de vacaciones para %s?'; # XXX
$PALANG['no_delete_permissions'] = 'No tienes permitido borrar %s!'; # XXX
$PALANG['check_update'] = 'Checar actualización'; # XXX
$PALANG['invalid_parameter'] = '¡Par&aacute;metro inválido!';
$PALANG['invalid_parameter'] = '¡Par&aacute;metro inválido!';
$PALANG['show'] = 'Mostrar:'; # XXX
$PALANG['all'] = 'Todo'; # XXX
$PALANG['created'] = 'creado'; # XXX
@@ -44,19 +44,19 @@ $PALANG['pLogin_username'] = 'Usuario (e-mail)'; # XXX compare with pUsersLogin_
$PALANG['password'] = 'Contraseña';
$PALANG['pLogin_language'] = 'Lenguaje'; # XXX
$PALANG['pLogin_button'] = 'Usuario'; # XXX compare with pUsersLogin_button - should be "Login"
$PALANG['pLogin_failed'] = 'La cuenta de email o la contraseña no son correctas.';
$PALANG['pLogin_failed'] = 'La cuenta de email o la contraseña no son correctas.';
$PALANG['pLogin_login_users'] = 'Login para ir a la sección de usuarios.';
$PALANG['pMenu_main'] = 'Principal';
$PALANG['pMenu_main'] = 'Principal';
$PALANG['pMenu_overview'] = 'Resumen';
$PALANG['add_alias'] = 'Añadir alias';
$PALANG['add_alias_domain'] = 'Añadir alias de dominio'; # XXX check text - should be 'Add Alias Domain'
$PALANG['add_mailbox'] = 'Añadir buzón';
$PALANG['pMenu_fetchmail'] = 'Obtener Emails';
$PALANG['pMenu_sendmail'] = 'Enviar e-mail';
$PALANG['pMenu_dkim'] = 'Claves DKIM'; # XXX
$PALANG['pMenu_dkim_signing'] = 'Tabla de firmas'; # XXX
$PALANG['pMenu_fetchmail'] = 'Recibir correo';
$PALANG['pMenu_sendmail'] = 'Enviar correo';
$PALANG['pMenu_dkim'] = 'Claves DKIM';
$PALANG['pMenu_dkim_signing'] = 'Tabla de firmas';
$PALANG['pMenu_password'] = 'Contraseña';
$PALANG['pMenu_viewlog'] = 'Ver Logs';
$PALANG['pMenu_viewlog'] = 'Ver logs';
$PALANG['pMenu_logout'] = 'Salir';
$PALANG['pMain_welcome'] = '¡Bienvenido a Postfix Admin!';
@@ -68,51 +68,51 @@ $PALANG['pMain_password'] = 'Cambiar la contraseña para su cuenta de administra
$PALANG['pMain_viewlog'] = 'Ver Logs.';
$PALANG['pMain_logout'] = 'Salir.';
$PALANG['pOverview_disabled'] = 'Deshabilitado';
$PALANG['pOverview_unlimited'] = 'Ilimitado';
$PALANG['pOverview_title'] = ':: Dominios Definidos';
$PALANG['pOverview_up_arrow'] = 'Arriba';
$PALANG['pOverview_right_arrow'] = 'Página siguiente';
$PALANG['pOverview_left_arrow'] = 'Página anterior';
$PALANG['pOverview_alias_domain_title'] = ':: Alias de Dominios';
$PALANG['pOverview_alias_title'] = ':: Alias';
$PALANG['pOverview_mailbox_title'] = ':: Buzones';
$PALANG['pOverview_disabled'] = 'Deshabilitado';
$PALANG['pOverview_unlimited'] = 'Ilimitado';
$PALANG['pOverview_title'] = ':: Dominios Definidos';
$PALANG['pOverview_up_arrow'] = 'Arriba';
$PALANG['pOverview_right_arrow'] = 'Página siguiente';
$PALANG['pOverview_left_arrow'] = 'Página anterior';
$PALANG['pOverview_alias_domain_title'] = ':: Alias de Dominios';
$PALANG['pOverview_alias_title'] = ':: Alias';
$PALANG['pOverview_mailbox_title'] = ':: Buzones';
$PALANG['go'] = 'Ir';
$PALANG['pOverview_welcome'] = 'Resumen de ';
$PALANG['pOverview_alias_domain_aliases'] = 'Alias de Dominios';
$PALANG['pOverview_alias_domain_aliases'] = 'Alias de Dominios';
$PALANG['pOverview_alias_address'] = 'De';
$PALANG['active'] = 'Activo';
$PALANG['active'] = 'Activo';
$PALANG['smtp_active'] = 'SMTP';
$PALANG['and_x_more'] = '[y %s más...]';
$PALANG['and_x_more'] = '[y %s más...]';
$PALANG['pOverview_mailbox_username'] = 'E-mail';
$PALANG['name'] = 'Nombre';
$PALANG['pOverview_mailbox_quota'] = 'Cuota (MB)';
$PALANG['pOverview_vacation_edit'] = 'VACATION ESTÁ ACTIVADO';
$PALANG['pOverview_vacation_option'] = 'Establecer Vacation';
$PALANG['pOverview_vacation_edit'] = 'VACATION ESTÁ ACTIVADO';
$PALANG['pOverview_vacation_option'] = 'Establecer Vacation';
$PALANG['no_domains_for_this_admin'] = 'No tienes permisos sobre ningún dominio.'; # XXX
$PALANG['no_domains_exist'] = 'Debes crear al menos un dominio antes de usar la lista virtual.'; # "virtual list" should match $PALANG['pAdminMenu_list_virtual'] # XXX
$PALANG['domain'] = 'Dominio';
$PALANG['pOverview_get_alias_domains'] = 'Alias de Dominios';
$PALANG['pOverview_get_alias_domains'] = 'Alias de Dominios';
$PALANG['mailboxes'] = 'Buzones';
$PALANG['pOverview_get_quota'] = 'Cuota de buzón (MB)';
$PALANG['pOverview_get_quota'] = 'Cuota Buzón';
$PALANG['pDelete_delete_error'] = 'Imposible borrar el registro ';
$PALANG['pDelete_delete_success'] = '%s borrado.';
$PALANG['pDelete_delete_success'] = '%s borrado.';
$PALANG['pDelete_domain_error'] = 'Este dominio no le pertenece ';
$PALANG['pDelete_alias_error'] = 'No se pudo eliminar el alias ';
$PALANG['pCreate_alias_domain_welcome'] = 'Sincronizar direcciones de un dominio a otro.';
$PALANG['pCreate_alias_domain_alias'] = 'Alias de Dominio';
$PALANG['pCreate_alias_domain_alias_text'] = 'El dominio al que llega el email.';
$PALANG['pCreate_alias_domain_target'] = 'Dominio de destino';
$PALANG['pCreate_alias_domain_target_text'] = 'El dominio al que deberían ir los emails.';
$PALANG['pCreate_alias_domain_error1'] = 'No estás autorizado a crear la configuración que has elegido.';
$PALANG['pCreate_alias_domain_error2'] = '¡La configuración seleccionada no es válida, por favor elige una diferente!';
$PALANG['pDelete_alias_error'] = 'No se pudo eliminar el alias ';
$PALANG['pCreate_alias_domain_welcome'] = 'Sincronizar direcciones de un dominio a otro.';
$PALANG['pCreate_alias_domain_alias'] = 'Alias de Dominio';
$PALANG['pCreate_alias_domain_alias_text'] = 'El dominio al que llega el email.';
$PALANG['pCreate_alias_domain_target'] = 'Dominio de destino';
$PALANG['pCreate_alias_domain_target_text'] = 'El dominio al que deberían ir los emails.';
$PALANG['pCreate_alias_domain_error1'] = 'No estás autorizado a crear la configuración que has elegido.';
$PALANG['pCreate_alias_domain_error2'] = '¡La configuración seleccionada no es válida, por favor elige una diferente!';
$PALANG['alias_domain_already_exists'] = 'Este dominio ya existe como alias!'; # XXX
$PALANG['alias_domain_does_not_exist'] = 'Este dominio no existe como alias!'; # XXX
$PALANG['alias_domain_create_failed'] = 'Falló la inserción en la base de datos. (%s)'; # XXX Text changed to: Creating the alias domain %s failed!
$PALANG['alias_domain_change_failed'] = 'Changing the alias domain %s failed!'; # XXX
$PALANG['pCreate_alias_domain_error4'] = 'Ya están todos los dominios asignados.';
$PALANG['pCreate_alias_domain_error4'] = 'Ya están todos los dominios asignados.';
$PALANG['pCreate_alias_domain_success'] = '¡El alias de dominio se insertó en la tabla! (%s)'; # XXX Text changed to: The alias domain %s has been created.
$PALANG['alias_domain_changed'] = 'El alias de dominio %s ha sido modificado.'; # XXX
$PALANG['alias_domain_to_itsself'] = 'Un dominio no puede ser alias de si mismo!'; # XXX
@@ -138,9 +138,9 @@ $PALANG['alias'] = 'Alias';
$PALANG['to'] = 'Destino';
$PALANG['pEdit_alias_goto_text_error1'] = 'No ha introducido nada en el destino';
$PALANG['pEdit_alias_goto_text_error2'] = 'La dirección de e-mail introducida no es válida: ';
$PALANG['pEdit_alias_domain_result_error'] = '¡No se pudo modificar el alias de dominio!';
$PALANG['pEdit_alias_forward_and_store'] = 'Entregar al buzón local.';
$PALANG['pEdit_alias_forward_only'] = 'Reenviar sólo al email especificado.';
$PALANG['pEdit_alias_domain_result_error'] = '¡No se pudo modificar el alias de dominio!';
$PALANG['pEdit_alias_forward_and_store'] = 'Entregar al buzón local.';
$PALANG['pEdit_alias_forward_only'] = 'Reenviar sólo al email especificado.';
$PALANG['pEdit_alias_result_error'] = '¡Imposible modificar el alias! (%s)'; # XXX Text changed to: Modifying the alias %s failed!
$PALANG['pCreate_mailbox_welcome'] = 'Crear un nuevo buzón para su dominio.';
@@ -190,8 +190,8 @@ $PALANG['pPassword_recovery_processed'] = "We processed your request. If you ent
$PALANG['pPassword_password_code'] = 'Código enviado vía correo / SMS'; # XXX
$PALANG['pPassword_code_text_error'] = 'Código invalido'; # XXX
$PALANG['pEdit_vacation_set'] = 'Cambiar / Establecer mensaje de ausencia';
$PALANG['pEdit_vacation_remove'] = 'Quitar mensaje de ausencia';
$PALANG['pEdit_vacation_set'] = 'Cambiar / Establecer mensaje de ausencia';
$PALANG['pEdit_vacation_remove'] = 'Quitar mensaje de ausencia';
$PALANG['pVacation_result_error'] = '¡Imposible actualizar la configuracióne la respuesta automática! (%s)'; # XXX Text changed to: Updating the auto response settings for %s failed
$PALANG['pVacation_result_removed'] = '¡Autorespuesta eliminada! (%s)'; # XXX Text changed to "Auto response for %s has been disabled!"
$PALANG['pVacation_result_added'] = '¡Autorespuesta habilitada! (%s)'; # XXX Text changed to "Auto response for %s has been enabled!"
@@ -213,19 +213,19 @@ $PALANG['pViewlog_data'] = 'Datos';
$PALANG['pViewlog_action_create_domain'] = 'crear dominio'; # XXX
$PALANG['pViewlog_action_delete_domain'] = 'borrar dominio'; # XXX
$PALANG['pViewlog_action_edit_domain'] = 'editar dominio'; # XXX
$PALANG['pViewlog_action_create_mailbox'] = 'crear buzón';
$PALANG['pViewlog_action_delete_mailbox'] = 'borrar buzón';
$PALANG['pViewlog_action_edit_mailbox'] = 'editar buzón';
$PALANG['pViewlog_action_edit_mailbox_state'] = 'editar buzón activo';
$PALANG['pViewlog_action_create_alias'] = 'crear alias';
$PALANG['pViewlog_action_create_alias_domain'] = 'crear alias de dominio';
$PALANG['pViewlog_action_create_mailbox'] = 'crear buzón';
$PALANG['pViewlog_action_delete_mailbox'] = 'borrar buzón';
$PALANG['pViewlog_action_edit_mailbox'] = 'editar buzón';
$PALANG['pViewlog_action_edit_mailbox_state'] = 'editar buzón activo';
$PALANG['pViewlog_action_create_alias'] = 'crear alias';
$PALANG['pViewlog_action_create_alias_domain'] = 'crear alias de dominio';
$PALANG['pViewlog_action_edit_alias_domain'] = 'editar alias de dominio'; # XXX
$PALANG['pViewlog_action_delete_alias'] = 'borrar alias';
$PALANG['pViewlog_action_delete_alias_domain'] = 'borrar alias de dominio';
$PALANG['pViewlog_action_edit_alias'] = 'editar alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'editar alias activo';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'editar alias de dominio activo';
$PALANG['pViewlog_action_edit_password'] = 'cambiar contraseña';
$PALANG['pViewlog_action_delete_alias'] = 'borrar alias';
$PALANG['pViewlog_action_delete_alias_domain'] = 'borrar alias de dominio';
$PALANG['pViewlog_action_edit_alias'] = 'editar alias';
$PALANG['pViewlog_action_edit_alias_state'] = 'editar alias activo';
$PALANG['pViewlog_action_edit_alias_domain_state'] = 'editar alias de dominio activo';
$PALANG['pViewlog_action_edit_password'] = 'cambiar contraseña';
$PALANG['pViewlog_action_create_admin'] = 'crear un admin'; # XXX
$PALANG['pViewlog_action_edit_admin'] = 'editar un admin'; # XXX
$PALANG['pViewlog_action_delete_admin'] = 'borrar un admin'; # XXX
@@ -246,32 +246,32 @@ $PALANG['pSendmail_body'] = 'Cuerpo';
$PALANG['pSendmail_button'] = 'Enviar mensaje';
$PALANG['pSendmail_result_error'] = '¡Imposible enviar el email! (%s)'; # XXX text change - new: Unable to send email to %s!
$PALANG['pSendmail_result_success'] = '¡Email enviado! (%s)'; # XXX text change - new: Email sent to %s.
$PALANG['pDkim_new_key'] = 'Agregar clave DKIM'; # XXX
$PALANG['pDkim_new_sign'] = 'Agregar entrada de firma'; # XXX
$PALANG['pDkim_edit_key'] = 'Editar clave DKIM'; # XXX
$PALANG['pDkim_edit_sign'] = 'Editar entrada de firma'; # XXX
$PALANG['pDkim_field_selector'] = 'Selector'; # XXX
$PALANG['pDkim_field_pkey'] = 'Clave privada'; # XXX
$PALANG['pDkim_field_pub'] = 'Clave pública'; # XXX
$PALANG['pDkim_field_author'] = 'Autor'; # XXX
$PALANG['pDkim_field_dkim_id'] = 'Clave DKIM'; # XXX
$PALANG['pDkim_field_selector_desc'] = 'Define el selector usado para firmar mensajes'; # XXX
$PALANG['pDkim_field_domain_desc'] = 'Define el dominio que usará esta clave para firmar'; # XXX
$PALANG['pDkim_field_pkey_desc'] = 'Clave privada PEM usada para firmar mensajes'; # XXX
$PALANG['pDkim_field_pub_desc'] = 'Clave pública PEM'; # XXX
$PALANG['pDkim_field_author_desc'] = 'Autor que usará esta clave para firmar. Puede ser buzón o dominio; el buzón tiene prioridad.'; # XXX
$PALANG['pDkim_field_dkim_id_desc'] = 'Clave DKIM que usará este autor'; # XXX
$PALANG['dkim_already_exists'] = 'Esta clave DKIM ya existe.'; # XXX
$PALANG['dkim_does_not_exist'] = 'Esta clave DKIM no existe.'; # XXX
$PALANG['dkim_signing_already_exists'] = 'Esta entrada de firma DKIM ya existe.'; # XXX
$PALANG['dkim_signing_does_not_exist'] = 'Esta entrada de firma DKIM no existe.'; # XXX
$PALANG['pViewlog_action_create_dkim_entry'] = 'crear clave DKIM'; # XXX
$PALANG['pViewlog_action_edit_dkim_entry'] = 'editar clave DKIM'; # XXX
$PALANG['pViewlog_action_delete_dkim_entry'] = 'borrar clave DKIM'; # XXX
$PALANG['pViewlog_action_create_dkim_signing_entry'] = 'crear entrada de firma DKIM'; # XXX
$PALANG['pViewlog_action_edit_dkim_signing_entry'] = 'editar entrada de firma DKIM'; # XXX
$PALANG['pViewlog_action_delete_dkim_signing_entry'] = 'borrar entrada de firma DKIM'; # XXX
$PALANG['pMain_dkim'] = 'Agregar clave DKIM para OpenDKIM.'; # XXX
$PALANG['pDkim_new_key'] = 'Agregar clave DKIM';
$PALANG['pDkim_new_sign'] = 'Agregar entrada de firma';
$PALANG['pDkim_edit_key'] = 'Editar clave DKIM';
$PALANG['pDkim_edit_sign'] = 'Editar entrada de firma';
$PALANG['pDkim_field_selector'] = 'Selector';
$PALANG['pDkim_field_pkey'] = 'Clave privada';
$PALANG['pDkim_field_pub'] = 'Clave pública';
$PALANG['pDkim_field_author'] = 'Autor';
$PALANG['pDkim_field_dkim_id'] = 'Clave DKIM';
$PALANG['pDkim_field_selector_desc'] = 'Define el selector usado para firmar mensajes';
$PALANG['pDkim_field_domain_desc'] = 'Define el dominio que usará esta clave para firmar';
$PALANG['pDkim_field_pkey_desc'] = 'Clave privada PEM usada para firmar mensajes';
$PALANG['pDkim_field_pub_desc'] = 'Clave pública PEM';
$PALANG['pDkim_field_author_desc'] = 'Autor que usará esta clave para firmar. Puede ser buzón o dominio; el buzón tiene prioridad.';
$PALANG['pDkim_field_dkim_id_desc'] = 'Clave DKIM que usará este autor';
$PALANG['dkim_already_exists'] = 'Esta clave DKIM ya existe.';
$PALANG['dkim_does_not_exist'] = 'Esta clave DKIM no existe.';
$PALANG['dkim_signing_already_exists'] = 'Esta entrada de firma DKIM ya existe.';
$PALANG['dkim_signing_does_not_exist'] = 'Esta entrada de firma DKIM no existe.';
$PALANG['pViewlog_action_create_dkim_entry'] = 'crear clave DKIM';
$PALANG['pViewlog_action_edit_dkim_entry'] = 'editar clave DKIM';
$PALANG['pViewlog_action_delete_dkim_entry'] = 'borrar clave DKIM';
$PALANG['pViewlog_action_create_dkim_signing_entry'] = 'crear entrada de firma DKIM';
$PALANG['pViewlog_action_edit_dkim_signing_entry'] = 'editar entrada de firma DKIM';
$PALANG['pViewlog_action_delete_dkim_signing_entry'] = 'borrar entrada de firma DKIM';
$PALANG['pMain_dkim'] = 'Agregar clave DKIM para OpenDKIM.';
$PALANG['pAdminMenu_list_admin'] = 'Lista de administradores';
$PALANG['pAdminMenu_list_domain'] = 'Lista de dominios';
@@ -285,15 +285,15 @@ $PALANG['pAdminList_admin_count'] = 'Dominios';
$PALANG['description'] = 'Descripción';
$PALANG['aliases'] = 'Alias';
$PALANG['pAdminList_domain_quota'] = 'Cuota Total'; # XXX
$PALANG['pAdminList_domain_backupmx'] = 'Backup MX'; # XXX
$PALANG['pAdminList_domain_quota'] = 'Cuota Total';
$PALANG['pAdminList_domain_backupmx'] = 'Backup MX';
$PALANG['last_modified'] = 'Última Modificación';
$PALANG['pAdminCreate_domain_welcome'] = 'Añadir nuevo dominio';
$PALANG['pAdminCreate_domain_domain_text_error'] = '¡El dominio ya existe!';
$PALANG['domain_does_not_exist'] = 'Este dominio no existe!'; # XXX
$PALANG['pAdminCreate_domain_domain_text_error2'] = '!El dominio no es válido!';
$PALANG['pAdminCreate_domain_domain_text_error2'] = '!El dominio no es válido!';
$PALANG['pAdminCreate_domain_defaultaliases'] = 'Añadir alias por defecto';
$PALANG['pAdminCreate_domain_button'] = 'Añadir dominio';
$PALANG['pAdminCreate_domain_result_error'] = '¡Imposible añadir el dominio! (%s)'; # XXX Text changed to: Adding the domain %s failed!
@@ -307,7 +307,7 @@ $PALANG['mailbox_postdel_failed'] = 'The mailbox postdeletion script failed, che
$PALANG['mailbox_postedit_failed'] = 'The mailbox postedit script failed, check the error log for details!'; # XXX
$PALANG['mailbox_postcreate_failed'] = 'The mailbox postcreate script failed, check the error log for details!'; # XXX
$PALANG['mailbox_postpassword_failed'] = 'The mailbox postpassword script failed, check the error log for details!'; # XXX
$PALANG['pAdminDelete_alias_domain_error'] = '¡No se pudo eliminar el alias de dominio!';
$PALANG['pAdminDelete_alias_domain_error'] = '¡No se pudo eliminar el alias de dominio!';
$PALANG['domain_conflict_vacation_domain'] = 'You can\'t use the vacation domain as mail domain!'; # XXX
$PALANG['pAdminEdit_domain_welcome'] = 'Editar un dominio';
@@ -317,7 +317,7 @@ $PALANG['pAdminEdit_domain_maxquota_text'] = 'MB | -1 = deshabilitar | 0 = ilimi
$PALANG['pAdminEdit_domain_quota'] = 'Cuota de Dominio Total (MB)'; # XXX
$PALANG['transport'] = 'Transporte'; # XXX check text - should be 'Transport'
$PALANG['pAdminEdit_domain_transport_text'] = 'Definir transport'; # XXX
$PALANG['pAdminEdit_domain_backupmx'] = 'El servidor de correo es backup MX'; # XXX
$PALANG['pAdminEdit_domain_backupmx'] = 'Backup MX';
$PALANG['pAdminEdit_domain_result_error'] = '¡Imposible modificar el dominio! (%s)'; # XXX Text changed to: Modifying the domain %s failed!
$PALANG['pAdminCreate_admin_welcome'] = 'Añadir un nuevo administrador de dominio';
@@ -347,14 +347,14 @@ $PALANG['pUsersMenu_vacation'] = 'Respuesta automática';
$PALANG['pUsersMenu_edit_alias'] = 'Cambiar la redirección';
$PALANG['pUsersMain_vacation'] = 'Configure un mensaje de "fuera del trabajo" o una respuesta automática para su correo.';
$PALANG['pUsersMain_vacationSet'] = $PALANG['pUsersMenu_vacation'] . ' está ACTIVADO, click \'' . $PALANG['pUsersMenu_vacation'] . '\' para ' . $PALANG['edit'] . '/eliminar';
$PALANG['pUsersMain_vacationSet'] = $PALANG['pUsersMenu_vacation'] . ' está ACTIVADO, click \'' . $PALANG['pUsersMenu_vacation'] . '\' para ' . $PALANG['edit'] . '/eliminar';
$PALANG['pUsersMain_edit_alias'] = 'Cambie su redirección de correo.';
$PALANG['pUsersMain_password'] = 'Cambie su contraseña.';
$PALANG['pUsersVacation_welcome'] = 'Respuesta automática.';
$PALANG['pUsersVacation_welcome_text'] = '¡Ya dispone de una respuesta automática configurada! (%s)'; # XXX Text changed to: 'Auto response for %s is active!'
$PALANG['pUsersVacation_subject_text'] = 'Fuera del trabajo';
$PALANG['message'] = 'Mensaje';
$PALANG['message'] = 'Mensaje';
$PALANG['pUsersVacation_body_text'] = <<<EOM
Estaré fuera desde <%From_Date> hasta <%Until_Date>.
Para asuntos urgentes, puede contactar conmigo en <contact person>.
@@ -363,83 +363,83 @@ $PALANG['pUsersVacation_activefrom'] = 'Activar desde'; # XXX
$PALANG['pUsersVacation_activeuntil'] = 'Activar hasta'; # XXX
$PALANG['pEdit_dbLog_editactive'] = 'cambiar estado activo';
$PALANG['pEdit_dbLog_editactive'] = 'cambiar estado activo';
$PALANG['pSearch'] = 'buscar';
$PALANG['pSearch_welcome'] = 'Buscando: ';
$PALANG['pReturn_to'] = 'Volver a';
$PALANG['pSearch'] = 'buscar';
$PALANG['pSearch_welcome'] = 'Buscando: ';
$PALANG['pReturn_to'] = 'Volver a';
$PALANG['pBroadcast_title'] = 'Enviar mensaje a todos'; # XXX
$PALANG['pBroadcast_name'] = 'Tu nombre';
$PALANG['pBroadcast_success'] = 'Se ha enviado el mensaje.';
$PALANG['pBroadcast_name'] = 'Tu nombre';
$PALANG['pBroadcast_success'] = 'Se ha enviado el mensaje.';
$PALANG['pAdminMenu_broadcast_message'] = 'Mensajería GLOBAL'; # XXX
$PALANG['pBroadcast_error_empty'] = '¡Los campos Nombre, Asunto y Mensaje no pueden estar vacíos!';
$PALANG['pBroadcast_error_empty'] = '¡Los campos Nombre, Asunto y Mensaje no pueden estar vacíos!';
$PALANG['broadcast_mailboxes_only'] = 'Envíar solo a los buzones'; # XXX
$PALANG['broadcast_to_domains'] = 'Envíar a los dominios:'; # XXX
$PALANG['pStatus_undeliverable'] = 'posiblemente NO SE ENTREGÓ';
$PALANG['pStatus_undeliverable'] = 'posiblemente NO SE ENTREGÓ';
$PALANG['pStatus_disabled'] = 'Cuenta desactivada '; # XXX
$PALANG['pStatus_expired'] = 'Contraseña expirada '; # XXX
$PALANG['pStatus_vacation'] = 'Mensaje de vacaciones activado '; # XXX
$PALANG['pStatus_custom'] = 'Enviado a ';
$PALANG['pStatus_custom'] = 'Enviado a ';
$PALANG['pStatus_popimap'] = 'POP/IMAP '; # XXX
$PALANG['password_too_short'] = "La contraseña es demasiado corta - se necesitan %s caracteres";
$PALANG['password_too_short'] = "La contraseña es demasiado corta - se necesitan %s caracteres";
$PALANG['password_no_characters'] = "Your password must contain at least %s letters (A-Z, a-z)."; # XXX
$PALANG['password_no_digits'] = "Your password must contain at least %s digit(s)."; # XXX
$PALANG['password_no_special'] = "Your password must contain at least %s special character(s)."; # XXX
$PALANG['pInvalidDomainRegex'] = "El nombre de dominio %s es inválido, no se ajusta a la expresión regular";
$PALANG['pInvalidDomainDNS'] = "El dominio %s no es válido, y/o no tiene resolución DNS";
$PALANG['pInvalidDomainRegex'] = "El nombre de dominio %s es inválido, no se ajusta a la expresión regular";
$PALANG['pInvalidDomainDNS'] = "El dominio %s no es válido, y/o no tiene resolución DNS";
$PALANG['pInvalidMailRegex'] = "La dirección de email no es válidas, no se ajusta a la expresión regular (%s)"; # XXX %s added - but it should be in the text, not at the end
$PALANG['pFetchmail_welcome'] = 'Obtener mail para:';
$PALANG['pFetchmail_new_entry'] = 'Nueva entrada';
$PALANG['pFetchmail_new_entry'] = 'Nueva entrada';
$PALANG['fetchmail_already_exists'] = 'La tarea fetchmail ya existe!'; # XXX
$PALANG['fetchmail_does_not_exist'] = 'La tarea fetchmail no existe!'; # XXX
$PALANG['pFetchmail_database_save_error'] = '¡No se pudo salvar la entrada en la base de datos!';
$PALANG['pFetchmail_database_save_success'] = 'Entrada salvada en la base de datos.';
$PALANG['pFetchmail_database_save_error'] = '¡No se pudo salvar la entrada en la base de datos!';
$PALANG['pFetchmail_database_save_success'] = 'Entrada salvada en la base de datos.';
$PALANG['pFetchmail_error_invalid_id'] = 'Registro con ID %s no encontrado!'; # XXX
$PALANG['pFetchmail_invalid_mailbox'] = '¡Buzón inválido!';
$PALANG['pFetchmail_server_missing'] = '¡Por favor introduzca el nombre del servidor remoto!';
$PALANG['pFetchmail_user_missing'] = '¡Por favor introduzca el usuario remoto!';
$PALANG['pFetchmail_password_missing'] = '¡Por favor introduzca la contraseña remota!';
$PALANG['pFetchmail_invalid_mailbox'] = '¡Buzón inválido!';
$PALANG['pFetchmail_server_missing'] = '¡Por favor introduzca el nombre del servidor remoto!';
$PALANG['pFetchmail_user_missing'] = '¡Por favor introduzca el usuario remoto!';
$PALANG['pFetchmail_password_missing'] = '¡Por favor introduzca la contraseña remota!';
$PALANG['pFetchmail_field_id'] = 'ID'; # XXX
$PALANG['pFetchmail_field_mailbox'] = 'Buzón';
$PALANG['pFetchmail_field_src_server'] = 'Servidor';
$PALANG['pFetchmail_field_mailbox'] = 'Buzón';
$PALANG['pFetchmail_field_src_server'] = 'Servidor';
$PALANG['pFetchmail_field_src_port'] = 'Puerto'; # XXX
$PALANG['pFetchmail_field_src_auth'] = 'Tipo Autenticación';
$PALANG['pFetchmail_field_src_user'] = 'Usuario';
$PALANG['pFetchmail_field_src_auth'] = 'Tipo Autenticación';
$PALANG['pFetchmail_field_src_user'] = 'Usuario';
$PALANG['pFetchmail_field_src_password'] = $PALANG['password']; # needed until fetchmail is migrated into FetchmailHandler
$PALANG['pFetchmail_field_src_folder'] = 'Carpeta';
$PALANG['pFetchmail_field_src_folder'] = 'Carpeta';
$PALANG['pFetchmail_field_poll_time'] = 'Poll'; # XXX
$PALANG['pFetchmail_field_fetchall'] = 'Obtener todo';
$PALANG['pFetchmail_field_keep'] = 'Conservar';
$PALANG['pFetchmail_field_protocol'] = 'Protocolo';
$PALANG['pFetchmail_field_usessl'] = 'SSL activado';
$PALANG['pFetchmail_field_fetchall'] = 'Obtener todo';
$PALANG['pFetchmail_field_keep'] = 'Conservar';
$PALANG['pFetchmail_field_protocol'] = 'Protocolo';
$PALANG['pFetchmail_field_usessl'] = 'SSL activado';
$PALANG['pFetchmail_field_sslcertck'] = 'SSL certificate check'; # XXX
$PALANG['pFetchmail_field_sslcertpath'] = 'SSL path to certificates'; # XXX
$PALANG['pFetchmail_field_sslfingerprint'] = 'SSL fingerprint (md5)'; # XXX
$PALANG['pFetchmail_field_extra_options'] = 'Opciones extras';
$PALANG['pFetchmail_field_extra_options'] = 'Opciones extras';
$PALANG['pFetchmail_field_mda'] = 'MDA'; # XXX
$PALANG['pFetchmail_field_date'] = 'Fecha';
$PALANG['pFetchmail_field_returned_text'] = 'Texto Devuelto';
$PALANG['pFetchmail_field_date'] = 'Fecha';
$PALANG['pFetchmail_field_returned_text'] = 'Texto Devuelto';
$PALANG['pFetchmail_desc_id'] = 'Record ID'; # XXX
$PALANG['pFetchmail_desc_mailbox'] = 'Buzón local';
$PALANG['pFetchmail_desc_src_server'] = 'Servidor Remoto';
$PALANG['pFetchmail_desc_mailbox'] = 'Buzón local';
$PALANG['pFetchmail_desc_src_server'] = 'Servidor Remoto';
$PALANG['pFetchmail_desc_src_port'] = 'Remote port number, if a non-standard remote port is needed. (0: use default)'; # XXX
$PALANG['pFetchmail_desc_src_auth'] = 'Mostly \'password\''; # Translators: Please do NOT translate 'password' here # XXX
$PALANG['pFetchmail_desc_src_user'] = 'Usuario Remoto';
$PALANG['pFetchmail_desc_src_password'] = 'Contraseña Remota';
$PALANG['pFetchmail_desc_src_folder'] = 'Carpeta Remota';
$PALANG['pFetchmail_desc_poll_time'] = 'Obtener cada ... minutos';
$PALANG['pFetchmail_desc_fetchall'] = 'Obtener los mensajes leídos y nuevos';
$PALANG['pFetchmail_desc_keep'] = 'Guardar una copia de los mensajes en el servidor remoto';
$PALANG['pFetchmail_desc_protocol'] = 'Protocolo a usar';
$PALANG['pFetchmail_desc_usessl'] = 'Cifrado SSL';
$PALANG['pFetchmail_desc_extra_options'] = 'Opciones extras para fetchmail';
$PALANG['pFetchmail_desc_src_user'] = 'Usuario Remoto';
$PALANG['pFetchmail_desc_src_password'] = 'Contraseña Remota';
$PALANG['pFetchmail_desc_src_folder'] = 'Carpeta Remota';
$PALANG['pFetchmail_desc_poll_time'] = 'Obtener cada ... minutos';
$PALANG['pFetchmail_desc_fetchall'] = 'Obtener los mensajes leídos y nuevos';
$PALANG['pFetchmail_desc_keep'] = 'Guardar una copia de los mensajes en el servidor remoto';
$PALANG['pFetchmail_desc_protocol'] = 'Protocolo a usar';
$PALANG['pFetchmail_desc_usessl'] = 'Cifrado SSL';
$PALANG['pFetchmail_desc_extra_options'] = 'Opciones extras para fetchmail';
$PALANG['pFetchmail_desc_mda'] = 'Mail Delivery Agent'; # XXX
$PALANG['pFetchmail_desc_date'] = 'Fecha del último sondeo/cambio en la configuración';
$PALANG['pFetchmail_desc_returned_text'] = 'Mensaje del último sondeo';
$PALANG['pFetchmail_desc_returned_text'] = 'Mensaje del último sondeo';
$PALANG['dateformat_pgsql'] = 'YYYY-mm-dd'; # translators: rearrange to your local date format, but make sure it's a valid PostgreSQL date format # XXX
$PALANG['dateformat_mysql'] = '%Y-%m-%d'; # translators: rearrange to your local date format, but make sure it's a valid MySQL date format # XXX
$PALANG['password_expiration'] = 'Contraseña expirada'; # XXX
$PALANG['password_expiration_desc'] = 'Días cuando la o las contraseñas expiran'; # XXX
$PALANG['password_expiration'] = 'Expiración de contraseña';
$PALANG['password_expiration_desc'] = 'Fecha en que expirará la contraseña';
$PALANG['To_Mailbox'] = 'Buzón'; # XXX # XXX
$PALANG['To_Forward_Only'] = 'Solo Reenvío'; # XXX # XXX
@@ -501,6 +501,18 @@ $PALANG['pApp_passwords_add'] = 'Añadir contraseña específica para aplicacion
$PALANG['session_expired_title'] = 'Sesión expirada';
$PALANG['session_expired_message'] = 'El token de la página ya no es válido. Vuelve e intenta nuevamente.';
$PALANG['session_expired_button'] = 'Continuar';
$PALANG['pMenu_fetchmail_menu'] = 'Recibir';
$PALANG['pMenu_sendmail_menu'] = 'Enviar';
$PALANG['pMenu_dkim_menu'] = 'DKIM';
$PALANG['pAdminMenu_admin'] = 'Admins';
$PALANG['pAdminMenu_domain'] = 'Dominios';
$PALANG['pAdminMenu_virtual'] = 'Direcciones virtuales';
$PALANG['pMain_global_search'] = 'Búsqueda global';
$PALANG['pMain_global_search_placeholder'] = 'Buscar globalmente (buzón, alias ...)';
$PALANG['pMain_search_button'] = 'Buscar';
$PALANG['pMain_dashboard'] = 'Panel';
$PALANG['pDkim_field_domain_and_selector'] = 'Dominio:Selector';
$PALANG['pTOTP_code_text'] = 'Escanea la imagen anterior e ingresa el código actual para habilitar la autenticación TOTP en tu cuenta.';
$PALANG['please_keep_this_as_last_entry'] = ''; # needed for language-check.sh
/* vim: set expandtab ft=php softtabstop=3 tabstop=3 shiftwidth=3: */
?>
+1 -1
View File
@@ -94,7 +94,7 @@ class DomainHandler extends PFAHandler
'quota' => self::pacol($edit_dom_q,$edit_dom_q, 0, 'num', 'pAdminEdit_domain_quota' , 'pAdminEdit_domain_maxquota_text' , $domain_quota_default),
'total_quota' => self::pacol(0, 0, 1, 'vnum', '' , '' , '', array(),
array('select' => "$query_used_domainquota AS total_quota") /*extrafrom*//* already in mailbox_count */),
'total_quot' => self::pacol(0, 0, $dom_q, 'quot', 'pAdminEdit_domain_quota' , '' , 0, array(),
'total_quot' => self::pacol(0, 0, $dom_q, 'quot', 'pAdminList_domain_quota' , '' , 0, array(),
array('select' => db_quota_text($query_used_domainquota, 'quota', 'total_quot'))),
'_total_quot_percent' => self::pacol(0, 0, $dom_q, 'vnum', '' , '' , 0, array(),
array('select' => db_quota_percent($query_used_domainquota, 'quota', '_total_quot_percent'))),
+70 -19
View File
@@ -61,39 +61,42 @@ code {
.navbar-header a.navbar-brand { padding: 0 15px; }
.navbar-fixed-top .container-fluid .navbar-collapse { font-size: 14px; }
.navbar-fixed-top .container-fluid .navbar-right { font-size: 12px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 10px; padding-right: 10px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 8px; padding-right: 8px; }
.navbar-fixed-top .container-fluid .navbar-right { padding-right: 5px; }
.navbar-fixed-top .container-fluid .navbar-right .navbar-btn { margin-right: 5px; padding: 5px 10px; }
}
@media (min-width: 1200px) {
.navbar-fixed-top .container-fluid .navbar-right a { font-size: 14px; }
.navbar-fixed-top .container-fluid .navbar-right .navbar-btn { margin-right: 15px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 15px; padding-right: 15px; }
.navbar-fixed-top .container-fluid .navbar-right .navbar-btn { margin-right: 8px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 10px; padding-right: 10px; }
}
span.active { font-weight: bold; }
div#login{ max-width: 35em; }
.quota {
z-index:99;
height:14px;
position: absolute;
#main_menu .pfa-main-section {
padding: 15px;
}
.quota_text {
z-index:100;
/* Unified quota bars used by the domain overview and mailbox list. */
.quota_bar {
position: relative;
display: inline-block;
box-sizing: border-box;
min-width: 122px;
height: 16px;
overflow: hidden;
background-color: white;
border: 1px solid #999;
line-height: 14px;
text-align: center;
font-size: 12px;
color: #666;
cursor: default;
position: absolute;
width:120px;
height:16px;
margin-top:-17px;
padding-top: -1px;
vertical-align: middle;
white-space: nowrap;
}
.quota_bg { background-color: white; z-index:98; width:122px; height:16px;margin-top:-1px;margin-left:-1px; border: 1px solid #999;}
.quota_no_border { border:none; margin:0; }
.quota_fill { position: absolute; z-index: 1; top: 0; right: auto; bottom: 0; left: 0; max-width: 100%; }
.quota_label { position: relative; z-index: 2; display: block; height: 14px; padding: 0 4px; font-size: 12px; color: #666; cursor: default; }
.quota_no_border { min-width: 0; background: transparent; border: none; }
.quota_high { background: url(../images/quota-colors.png) repeat-x 0 -28px #f90509; }
.quota_mid { background: url(../images/quota-colors.png) repeat-x 0 -14px #e3e909; }
.quota_low { background: url(../images/quota-colors.png) repeat-x 0 0px #05f905; }
@@ -101,3 +104,51 @@ position: absolute;
.quota_text_mid { color: #666; }
.quota_text_low { color: #666; }
/* Domain list column sizing. */
#admin_table th.list-col-domain,
#admin_table td.list-col-domain { min-width: 180px; }
#admin_table th.list-col-description,
#admin_table td.list-col-description { min-width: 120px; }
#admin_table th.list-col-aliases_quot,
#admin_table td.list-col-aliases_quot,
#admin_table th.list-col-mailboxes_quot,
#admin_table td.list-col-mailboxes_quot { width: 138px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-maxquota,
#admin_table td.list-col-maxquota { width: 80px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-total_quot,
#admin_table td.list-col-total_quot { width: 142px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-transport,
#admin_table td.list-col-transport { width: 80px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-backupmx,
#admin_table td.list-col-backupmx { width: 62px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-active,
#admin_table td.list-col-active { width: 70px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-modified,
#admin_table td.list-col-modified { width: 110px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-password_expiry,
#admin_table td.list-col-password_expiry { width: 64px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-action,
#admin_table td.list-col-action { width: 46px; text-align: center; white-space: nowrap; }
#admin_table .list-action-icon,
#mailbox_table .list-action-icon { width: 34px; padding-left: 0; padding-right: 0; }
.domain-list-scroll { display: block; width: 100%; overflow-x: auto; }
.domain-list-scroll > #admin_table { min-width: 1240px; margin-bottom: 0; }
/* Keep the essential domain columns and actions visible before scrolling. */
.domain-list-scroll > #admin_table th.list-col-total_quot,
.domain-list-scroll > #admin_table th.list-col-password_expiry { white-space: normal; line-height: 1.2; }
@media (max-width: 1300px) {
.domain-list-scroll > #admin_table .list-col-modified { display: none; }
.domain-list-scroll > #admin_table { min-width: 1120px; }
}
@media (max-width: 1200px) {
.domain-list-scroll > #admin_table .list-col-backupmx { display: none; }
.domain-list-scroll > #admin_table { min-width: 1060px; }
}
@media (max-width: 1120px) {
.domain-list-scroll > #admin_table .list-col-transport { display: none; }
.domain-list-scroll > #admin_table { min-width: 980px; }
}
+70 -21
View File
@@ -163,41 +163,90 @@ code {
.navbar-header a.navbar-brand { padding: 0 15px; }
.navbar-fixed-top .container-fluid .navbar-collapse { font-size: 14px; }
.navbar-fixed-top .container-fluid .navbar-right { font-size: 12px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 10px; padding-right: 10px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 8px; padding-right: 8px; }
.navbar-fixed-top .container-fluid .navbar-right { padding-right: 5px; }
.navbar-fixed-top .container-fluid .navbar-right .navbar-btn { margin-right: 5px; padding: 5px 10px; }
}
@media (min-width: 1200px) {
.navbar-fixed-top .container-fluid .navbar-right a { font-size: 14px; }
.navbar-fixed-top .container-fluid .navbar-right .navbar-btn { margin-right: 15px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 15px; padding-right: 15px; }
.navbar-fixed-top .container-fluid .navbar-right .navbar-btn { margin-right: 8px; }
.navbar-fixed-top .container-fluid .navbar-collapse li a { padding-left: 10px; padding-right: 10px; }
}
span.active { font-weight: bold; }
.quota {
z-index:99;
height:14px;
position: absolute;
/* Unified quota bars used by the domain overview and mailbox list. */
.quota_bar {
position: relative;
display: inline-block;
box-sizing: border-box;
min-width: 122px;
height: 16px;
overflow: hidden;
background-color: white;
border: 1px solid #999;
line-height: 14px;
text-align: center;
vertical-align: middle;
white-space: nowrap;
}
.quota_text {
z-index:100;
text-align: center;
font-size: 12px;
color: #666;
cursor: default;
position: absolute;
width:120px;
height:16px;
margin-top:-17px;
padding-top: -1px;
}
.quota_bg { background-color: white; z-index:98; width:122px; height:16px;margin-top:-1px;margin-left:-1px; border: 1px solid #999;}
.quota_no_border { border:none; margin:0; }
.quota_fill { position: absolute; z-index: 1; top: 0; right: auto; bottom: 0; left: 0; max-width: 100%; }
.quota_label { position: relative; z-index: 2; display: block; height: 14px; padding: 0 4px; font-size: 12px; color: #666; cursor: default; }
.quota_no_border { min-width: 0; background: transparent; border: none; }
.quota_high { background: url(../images/quota-colors.png) repeat-x 0 -28px #f90509; }
.quota_mid { background: url(../images/quota-colors.png) repeat-x 0 -14px #e3e909; }
.quota_low { background: url(../images/quota-colors.png) repeat-x 0 0px #05f905; }
.quota_text_high { color: white; }
.quota_text_mid { color: #666; }
.quota_text_low { color: #666; }
/* Domain list column sizing. */
#admin_table th.list-col-domain,
#admin_table td.list-col-domain { min-width: 180px; }
#admin_table th.list-col-description,
#admin_table td.list-col-description { min-width: 120px; }
#admin_table th.list-col-aliases_quot,
#admin_table td.list-col-aliases_quot,
#admin_table th.list-col-mailboxes_quot,
#admin_table td.list-col-mailboxes_quot { width: 138px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-maxquota,
#admin_table td.list-col-maxquota { width: 80px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-total_quot,
#admin_table td.list-col-total_quot { width: 142px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-transport,
#admin_table td.list-col-transport { width: 80px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-backupmx,
#admin_table td.list-col-backupmx { width: 62px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-active,
#admin_table td.list-col-active { width: 70px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-modified,
#admin_table td.list-col-modified { width: 110px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-password_expiry,
#admin_table td.list-col-password_expiry { width: 64px; text-align: center; white-space: nowrap; }
#admin_table th.list-col-action,
#admin_table td.list-col-action { width: 46px; text-align: center; white-space: nowrap; }
#admin_table .list-action-icon,
#mailbox_table .list-action-icon { width: 34px; padding-left: 0; padding-right: 0; }
.domain-list-scroll { display: block; width: 100%; overflow-x: auto; }
.domain-list-scroll > #admin_table { min-width: 1240px; margin-bottom: 0; }
/* Keep the essential domain columns and actions visible before scrolling. */
.domain-list-scroll > #admin_table th.list-col-total_quot,
.domain-list-scroll > #admin_table th.list-col-password_expiry { white-space: normal; line-height: 1.2; }
@media (max-width: 1300px) {
.domain-list-scroll > #admin_table .list-col-modified { display: none; }
.domain-list-scroll > #admin_table { min-width: 1120px; }
}
@media (max-width: 1200px) {
.domain-list-scroll > #admin_table .list-col-backupmx { display: none; }
.domain-list-scroll > #admin_table { min-width: 1060px; }
}
@media (max-width: 1120px) {
.domain-list-scroll > #admin_table .list-col-transport { display: none; }
.domain-list-scroll > #admin_table { min-width: 980px; }
}
+13 -12
View File
@@ -65,9 +65,10 @@
{elseif $divide_quota.percent[$i] > $CONF.quota_level_med_pct}
{assign var="quota_level" value="mid"}
{/if}
<div class="quota quota_{$quota_level}" style="width:{$divide_quota.quota_width[$i]}px;"></div>
<div class="quota_bg"></div>
<div class="quota_text quota_text_{$quota_level}">{$divide_quota.current[$i]} / {$divide_quota.quota[$i]}</div>
<div class="quota_bar">
<span class="quota_fill quota_{$quota_level}" style="width:{$divide_quota.percent[$i]}%;"></span>
<span class="quota_label quota_text_{$quota_level}">{$divide_quota.current[$i]} / {$divide_quota.quota[$i]}</span>
</div>
{else}
{$divide_quota.quota[$i]}
{/if}
@@ -75,11 +76,11 @@
</td>
{/if}
<td>{$item.modified}</td>
<td><a class="btn btn-{if ($item.active==0)}info{else}warning{/if}" href="{#url_editactive#}mailbox&amp;id={$item.username|escape:"url"}&amp;active={if ($item.active==0)}1{else}0{/if}&amp;token={$smarty.session.PFA_token|escape:"url"}"
>{if $item.active==1}<span class="glyphicon glyphicon-check" aria-hidden="true"></span> {$PALANG.YES}{else}<span class="glyphicon glyphicon-unchecked" aria-hidden="true"></span> {$PALANG.NO}{/if}</a></td>
<td><a class="btn btn-{if ($item.active==0)}info{else}warning{/if} list-action-icon" title="{$PALANG.active}: {if $item.active==1}{$PALANG.YES}{else}{$PALANG.NO}{/if}" aria-label="{$PALANG.active}: {if $item.active==1}{$PALANG.YES}{else}{$PALANG.NO}{/if}" href="{#url_editactive#}mailbox&amp;id={$item.username|escape:"url"}&amp;active={if ($item.active==0)}1{else}0{/if}&amp;token={$smarty.session.PFA_token|escape:"url"}"
>{if $item.active==1}<span class="glyphicon glyphicon-check" aria-hidden="true"></span>{else}<span class="glyphicon glyphicon-unchecked" aria-hidden="true"></span>{/if}</a></td>
{if $CONF.smtp_active_flag===YES}
<td><a class="btn btn-{if ($item.smtp_active==0)}info{else}warning{/if}" href="{#url_editactive#}mailbox&amp;id={$item.username|escape:"url"}&amp;active={if ($item.smtp_active==0)}1{else}0{/if}&amp;field=smtp_active&amp;token={$smarty.session.PFA_token|escape:"url"}"
>{if $item.smtp_active==1}<span class="glyphicon glyphicon-check" aria-hidden="true"></span> {$PALANG.YES}{else}<span class="glyphicon glyphicon-unchecked" aria-hidden="true"></span> {$PALANG.NO}{/if}</a></td>
<td><a class="btn btn-{if ($item.smtp_active==0)}info{else}warning{/if} list-action-icon" title="{$PALANG.smtp_active}: {if $item.smtp_active==1}{$PALANG.YES}{else}{$PALANG.NO}{/if}" aria-label="{$PALANG.smtp_active}: {if $item.smtp_active==1}{$PALANG.YES}{else}{$PALANG.NO}{/if}" href="{#url_editactive#}mailbox&amp;id={$item.username|escape:"url"}&amp;active={if ($item.smtp_active==0)}1{else}0{/if}&amp;field=smtp_active&amp;token={$smarty.session.PFA_token|escape:"url"}"
>{if $item.smtp_active==1}<span class="glyphicon glyphicon-check" aria-hidden="true"></span>{else}<span class="glyphicon glyphicon-unchecked" aria-hidden="true"></span>{/if}</a></td>
{/if}
{if $CONF.vacation_control_admin===YES && $CONF.vacation===YES}
{if $item.v_active!==-1}
@@ -88,7 +89,7 @@
{else}
{assign var="v_active" value=$PALANG.pOverview_vacation_option}
{/if}
<td><a class="btn btn-warning" href="vacation.php?username={$item.username|escape:"url"}">{$v_active}</a></td>
<td><a class="btn btn-warning list-action-icon" title="{$v_active}" aria-label="{$v_active}" href="vacation.php?username={$item.username|escape:"url"}"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span></a></td>
{/if}
{else}
<td>&nbsp;</td>
@@ -97,16 +98,16 @@
{if $authentication_has_role.global_admin!==true && $CONF.alias_control_admin===YES}{assign var="edit_aliases" value=1}{/if}
{if $authentication_has_role.global_admin==true && $CONF.alias_control===YES}{assign var="edit_aliases" value=1}{/if}
{if $edit_aliases==1}
<td><a class="btn btn-primary" href="edit.php?table=alias&amp;edit={$item.username|escape:"url"}"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> {$PALANG.alias}</a></td>
<td><a class="btn btn-primary list-action-icon" title="{$PALANG.alias}" aria-label="{$PALANG.alias}" href="edit.php?table=alias&amp;edit={$item.username|escape:"url"}"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span></a></td>
{/if}
<td><a class="btn btn-primary" href="edit.php?table=mailbox&amp;edit={$item.username|escape:"url"}"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span> {$PALANG.edit}</a></td>
<td><a class="btn btn-primary list-action-icon" title="{$PALANG.edit}" aria-label="{$PALANG.edit}" href="edit.php?table=mailbox&amp;edit={$item.username|escape:"url"}"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></a></td>
<td>
<form method="post" action="delete.php">
<input type="hidden" name="table" value="mailbox">
<input type="hidden" name="delete" value="{$item.username|escape:"quotes"}">
<input type="hidden" name="token" value="{$smarty.session.PFA_token|escape:"quotes"}">
<button type="submit" class="btn btn-danger" onclick="return confirm ('{$PALANG.confirm}{$PALANG.mailboxes}: {$item.username}');">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> {$PALANG.del}
<button type="submit" class="btn btn-danger list-action-icon" title="{$PALANG.del}" aria-label="{$PALANG.del}" onclick="return confirm ('{$PALANG.confirm}{$PALANG.mailboxes}: {$item.username}');">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
</button>
</form>
</td>
+35 -21
View File
@@ -27,6 +27,7 @@
{/if}
{/if}
{if $table == 'domain'}<div class="domain-list-scroll">{/if}
<table class="table table-hover" id='admin_table'>
<!-- TODO: 'admin_table' needed because of CSS for table header -->
@@ -48,11 +49,11 @@
<tr class="header">
{foreach key=key item=field from=$struct}
{if $field.display_in_list == 1 && $field.label}{* don't show fields without a label *}
<th>{$field.label}</th>
<th class="list-col-{$key}">{$field.label}</th>
{/if}
{/foreach}
<th>&nbsp;</th>
<th>&nbsp;</th>
<th class="list-col-action">&nbsp;</th>
<th class="list-col-action">&nbsp;</th>
</tr>
</thead>
<tbody>
@@ -67,7 +68,21 @@
{if $field.linkto != '' && ($item.$id_field != '' || $item.$id_field > 0) }
{assign "linkto" "{$field.linkto|replace:'%s':{$item.$id_field|escape:url}}"} {* TODO: use label field instead *}
{assign "linktext" "<a href='{$linkto}'>{$item.{$key}}</a>"}
{assign "linktitle" ""}
{if $table == 'domain' && $key == 'domain'}
{if isset($struct.maxquota) && $struct.maxquota.label == '' && isset($item.maxquota)}
{assign "linktitle" "{$PALANG.pOverview_get_quota}: {$item.maxquota} MB"}
{/if}
{if isset($struct.password_expiry) && $struct.password_expiry.label == '' && isset($item.password_expiry)}
{if $linktitle != ''}{assign "linktitle" "{$linktitle}&#10;"}{/if}
{assign "linktitle" "{$linktitle}{$PALANG.password_expiration}: {$item.password_expiry}"}
{/if}
{/if}
{if $linktitle != ''}
{assign "linktext" "<a href='{$linkto}' title='{$linktitle}'>{$item.{$key}}</a>"}
{else}
{assign "linktext" "<a href='{$linkto}'>{$item.{$key}}</a>"}
{/if}
{else}
{assign "linktext" $item.$key}
{/if}
@@ -75,7 +90,7 @@
{if $table == 'foo' && $key == 'bar'}
<td>Special handling (complete table row) for {$table} / {$key}</td>
{else}
<td>
<td class="list-col-{$key}">
{if $table == 'foo' && $key == 'bar'}
Special handling (td content) for {$table} / {$key}
{elseif $table == 'aliasdomain' && $key == 'target_domain' && $struct.target_domain.linkto == 'target'}
@@ -85,14 +100,13 @@
*}
{elseif $key == 'active'}
{if $item._can_edit}
<a class="btn btn-{if ($item.active==0)}info{else}warning{/if}"
<a class="btn btn-{if ($item.active==0)}info{else}warning{/if} list-action-icon" title="{$field.label}: {$item._active}" aria-label="{$field.label}: {$item._active}"
href="{#url_editactive#}{$table}&amp;id={$RAW_item.$id_field|escape:"url"}&amp;active={if ($item.active==0)}1{else}0{/if}&amp;token={$smarty.session.PFA_token|escape:"url"}">
{if $item._active == $PALANG['YES']}
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
{else}
<span class="glyphicon glyphicon-unchecked" aria-hidden="true"></span>
{/if}
{$item._active}
</a>
{else}
{$item._active}
@@ -113,15 +127,14 @@
{else}
{assign var="quota_level" value="low"}
{/if}
<div class="quota_bar{if $item[$tmpkey] <= -1} quota_no_border{/if}">
{if $item[$tmpkey] > -1}
<div class="quota quota_{$quota_level}" style="width:{$item[$tmpkey] *1.2}px;"></div>
<div class="quota_bg"></div>
</div>
<div class="quota_text quota_text_{$quota_level}">{$linktext}</div>
{else}
<div class="quota_bg quota_no_border"></div></div>
<div class="quota_text">{$linktext}</div>
{/if}
<span class="quota_fill quota_{$quota_level}" style="width:{$item[$tmpkey]}%;"></span>
<span class="quota_label quota_text_{$quota_level}">{$linktext}</span>
{else}
<span class="quota_label">{$linktext}</span>
{/if}
</div>
{elseif $field.type == 'txtl'}
{foreach key=key2 item=field2 from=$item.$key}{$field2}<br>{/foreach}
@@ -135,22 +148,22 @@
{/if}
{/foreach}
<td>{if $item._can_edit}
<a class="btn btn-primary"
<td class="list-col-action">{if $item._can_edit}
<a class="btn btn-primary list-action-icon" title="{$PALANG.edit}" aria-label="{$PALANG.edit}"
href="edit.php?table={$table|escape:"url"}&amp;edit={$RAW_item.$id_field|escape:"url"}"><span
class="glyphicon glyphicon-edit" aria-hidden="true"></span> {$PALANG.edit}</a>
class="glyphicon glyphicon-edit" aria-hidden="true"></span></a>
{else}&nbsp;
{/if}
</td>
<td>{if $item._can_delete}
<td class="list-col-action">{if $item._can_delete}
<form method="post" action="{#url_delete#}">
<input type="hidden" name="table" value="{$table}">
<input type="hidden" name="delete" value="{$RAW_item.$id_field|escape:"quotes"}">
<input type="hidden" name="token" value="{$smarty.session.PFA_token|escape:"quotes"}">
<button class="btn btn-danger"
<button class="btn btn-danger list-action-icon" title="{$PALANG.del}" aria-label="{$PALANG.del}"
onclick="return confirm('{$PALANG.{$msg.confirm_delete}|replace:'%s':$item.$id_field}')">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> {$PALANG.del}
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
</button>
</form>
{else}&nbsp;{/if}
@@ -159,6 +172,7 @@
{/foreach}
</tbody>
</table>
{if $table == 'domain'}</div>{/if}
<div class="panel-footer">
<div class="btn-toolbar" role="toolbar">
+7 -7
View File
@@ -1,15 +1,15 @@
<!-- {$smarty.template} -->
<div class="panel panel-default" id="main_menu">
<section>
<h2>Global Search</h2>
<section class="pfa-main-section">
<h2>{$PALANG.pMain_global_search}</h2>
<form method=GET class=form action="">
<div class="input-group">
<input type="text" id=q name=q class="form-control" value="{$q}" autofocus="autofocus"
placeholder="Global search (mailbox, alias ...)"
aria-label="Global Search">
placeholder="{$PALANG.pMain_global_search_placeholder}"
aria-label="{$PALANG.pMain_global_search}">
<span class="input-group-btn">
<button class="btn btn-default" type="submit">Search</button>
<button class="btn btn-default" type="submit">{$PALANG.pMain_search_button}</button>
</span>
</div>
</form>
@@ -50,8 +50,8 @@
{/if}
</section>
<section>
<h2>Dashboard</h2>
<section class="pfa-main-section">
<h2>{$PALANG.pMain_dashboard}</h2>
<table class="table">
<tr>
<td nowrap="nowrap"><a style="text-align:left; padding-left:15px" class="btn btn-primary btn-block"
+6 -6
View File
@@ -33,7 +33,7 @@
aria-haspopup="true"
aria-expanded="false" href="{#url_list_admin#}"><span
class="glyphicon glyphicon-list"
aria-hidden="true"></span> {$PALANG.pAdminMenu_list_admin} <span
aria-hidden="true"></span> {$PALANG.pAdminMenu_admin} <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li>
@@ -63,7 +63,7 @@
aria-haspopup="true"
aria-expanded="false" href="{#url_list_domain#}"><span
class="glyphicon glyphicon-th-list"
aria-hidden="true"></span> {$PALANG.pAdminMenu_list_domain} <span
aria-hidden="true"></span> {$PALANG.pAdminMenu_domain} <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{#url_list_domain#}"><span class="glyphicon glyphicon-th-list"
@@ -84,7 +84,7 @@
aria-haspopup="true"
aria-expanded="false" href="{#url_list_virtual#}"><span
class="glyphicon glyphicon-list-alt"
aria-hidden="true"></span> {$PALANG.pAdminMenu_list_virtual} <span
aria-hidden="true"></span> {$PALANG.pAdminMenu_virtual} <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{#url_list_virtual#}"><span class="glyphicon glyphicon-list-alt"
@@ -112,7 +112,7 @@
<li class="dropdown">
<a class="btn navbar-btn dropdown-toggle" data-toggle="dropdown" role="button"
aria-haspopup="true"
aria-expanded="false" href="{#url_fetchmail#}">{$PALANG.pMenu_fetchmail} <span
aria-expanded="false" href="{#url_fetchmail#}">{$PALANG.pMenu_fetchmail_menu} <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{#url_fetchmail#}">
@@ -132,7 +132,7 @@
<a class="btn navbar-btn dropdown-toggle" data-toggle="dropdown" role="button"
aria-haspopup="true"
aria-expanded="false" href="{#url_sendmail#}"><span class="glyphicon glyphicon-send"
aria-hidden="true"></span> {$PALANG.pMenu_sendmail}
aria-hidden="true"></span> {$PALANG.pMenu_sendmail_menu}
<span
class="caret"></span></a>
<ul class="dropdown-menu">
@@ -161,7 +161,7 @@
aria-haspopup="true"
aria-expanded="false" href="{#url_dkim#}"><span
class="glyphicon glyphicon-certificate"
aria-hidden="true"></span> {$PALANG.pMenu_dkim} <span
aria-hidden="true"></span> {$PALANG.pMenu_dkim_menu} <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{#url_dkim#}"><span class="glyphicon glyphicon-certificate"