Version 22.107.38:May 10, 2023 Changes in edition of mail domains.

This commit is contained in:
acanas 2023-05-10 11:46:45 +02:00
parent ee7d37a7ae
commit 0c61855df9
4 changed files with 121 additions and 146 deletions

View File

@ -629,10 +629,11 @@ TODO: Emilce Barrera Mesa: Podr
TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen. TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen.
*/ */
#define Log_PLATFORM_VERSION "SWAD 22.107.37 (2023-05-10)" #define Log_PLATFORM_VERSION "SWAD 22.107.38 (2023-05-10)"
#define CSS_FILE "swad22.107.36.css" #define CSS_FILE "swad22.107.36.css"
#define JS_FILE "swad22.49.js" #define JS_FILE "swad22.49.js"
/* /*
Version 22.107.38:May 10, 2023 Changes in edition of mail domains. (337455 lines)
Version 22.107.37:May 10, 2023 Changes in edition of attendance events and agenda events. (337484 lines) Version 22.107.37:May 10, 2023 Changes in edition of attendance events and agenda events. (337484 lines)
Version 22.107.36:May 10, 2023 Changes in style of fieldset and legend. (337505 lines) Version 22.107.36:May 10, 2023 Changes in style of fieldset and legend. (337505 lines)
Version 22.107.35:May 10, 2023 Changes in edition of course program. (337504 lines) Version 22.107.35:May 10, 2023 Changes in edition of course program. (337504 lines)

View File

@ -251,11 +251,7 @@ static void Mai_EditMailDomainsInternal (void)
/***** Get list of mail domains *****/ /***** Get list of mail domains *****/
Mai_GetListMailDomainsAllowedForNotif (&Mails); Mai_GetListMailDomainsAllowedForNotif (&Mails);
/***** Put a form to create a new mail *****/ /***** Forms to edit mail domains *****/
Mai_PutFormToCreateMailDomain ();
/***** Forms to edit current mail domains *****/
if (Mails.Num)
Mai_ListMailDomainsForEdition (&Mails); Mai_ListMailDomainsForEdition (&Mails);
/***** Free list of mail domains *****/ /***** Free list of mail domains *****/
@ -449,10 +445,18 @@ static void Mai_ListMailDomainsForEdition (const struct Mai_Mails *Mails)
unsigned NumMai; unsigned NumMai;
struct Mail *Mai; struct Mail *Mai;
/***** Begin box and table *****/ /***** Begin box *****/
Box_BoxTableBegin (NULL,Txt_Email_domains_allowed_for_notifications, Box_BoxBegin (NULL,Txt_Email_domains_allowed_for_notifications,
NULL,NULL, NULL,NULL,
Hlp_START_Domains_edit,Box_NOT_CLOSABLE,2); Hlp_START_Domains_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new mail *****/
Mai_PutFormToCreateMailDomain ();
if (Mails->Num)
{
/***** Begin table *****/
HTM_TABLE_BeginWidePadding (2);
/***** Write heading *****/ /***** Write heading *****/
Mai_PutHeadMailDomains (); Mai_PutHeadMailDomains ();
@ -466,14 +470,14 @@ static void Mai_ListMailDomainsForEdition (const struct Mai_Mails *Mails)
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
/* Put icon to remove mail */ /* Put icon to remove mail domain */
HTM_TD_Begin ("class=\"BM\""); HTM_TD_Begin ("class=\"BM\"");
Ico_PutContextualIconToRemove (ActRemMai,NULL, Ico_PutContextualIconToRemove (ActRemMai,NULL,
Mai_PutParMaiCod,&Mai->MaiCod); Mai_PutParMaiCod,&Mai->MaiCod);
HTM_TD_End (); HTM_TD_End ();
/* Mail code */ /* Mail domain code */
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ()); HTM_TD_Begin ("class=\"CODE DAT_%s\"",The_GetSuffix ());
HTM_Long (Mai->MaiCod); HTM_Long (Mai->MaiCod);
HTM_TD_End (); HTM_TD_End ();
@ -507,8 +511,12 @@ static void Mai_ListMailDomainsForEdition (const struct Mai_Mails *Mails)
HTM_TR_End (); HTM_TR_End ();
} }
/***** End table and box *****/ /***** End table *****/
Box_BoxTableEnd (); HTM_TABLE_End ();
}
/***** End box *****/
Box_BoxEnd ();
} }
/*****************************************************************************/ /*****************************************************************************/
@ -671,28 +679,33 @@ void Mai_ContEditAfterChgMai (void)
static void Mai_PutFormToCreateMailDomain (void) static void Mai_PutFormToCreateMailDomain (void)
{ {
extern const char *Hlp_START_Domains_edit; extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
extern const char *Txt_Email_domain; extern const char *Txt_Create;
extern const char *Txt_EMAIL_DOMAIN_ORDER[3];
extern const char *Txt_Create_email_domain; /***** Begin fieldset *****/
HTM_FIELDSET_Begin (NULL);
HTM_LEGEND (Txt_Actions[ActNewMai]);
/***** Begin form *****/ /***** Begin form *****/
Frm_BeginForm (ActNewMai); Frm_BeginForm (ActNewMai);
/***** Begin box and table *****/ /***** Begin table *****/
Box_BoxTableBegin (NULL,Txt_Email_domain, HTM_TABLE_BeginWidePadding (2);
NULL,NULL,
Hlp_START_Domains_edit,Box_NOT_CLOSABLE,2);
/***** Write heading *****/ /***** Write heading *****/
HTM_TR_Begin (NULL); Mai_PutHeadMailDomains ();
HTM_TH (Txt_EMAIL_DOMAIN_ORDER[Mai_ORDER_BY_DOMAIN],HTM_HEAD_LEFT);
HTM_TH (Txt_EMAIL_DOMAIN_ORDER[Mai_ORDER_BY_INFO] ,HTM_HEAD_LEFT);
HTM_TR_End ();
/***** Second row *****/ /***** Second row *****/
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
/* Column to remove mail domain, disabled here */
HTM_TD_Begin ("class=\"BM\"");
HTM_TD_End ();
/* Mail domain code */
HTM_TD_Begin ("class=\"CODE\"");
HTM_TD_End ();
/* Mail domain */ /* Mail domain */
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"CM\"");
HTM_INPUT_TEXT ("Domain",Cns_MAX_CHARS_EMAIL_ADDRESS,Mai_EditingMai->Domain, HTM_INPUT_TEXT ("Domain",Cns_MAX_CHARS_EMAIL_ADDRESS,Mai_EditingMai->Domain,
@ -711,15 +724,22 @@ static void Mai_PutFormToCreateMailDomain (void)
The_GetSuffix ()); The_GetSuffix ());
HTM_TD_End (); HTM_TD_End ();
HTM_TD_Empty (1); /* Number of users */
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ());
HTM_Unsigned (0);
HTM_TD_End ();
HTM_TR_End (); HTM_TR_End ();
/***** End table, send button and end box *****/ /***** End table and send button *****/
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_email_domain); HTM_TABLE_End ();
Btn_PutButton (Btn_CREATE_BUTTON,Txt_Create);
/***** End form *****/ /***** End form *****/
Frm_EndForm (); Frm_EndForm ();
/***** End fieldset *****/
HTM_FIELDSET_End ();
} }
/*****************************************************************************/ /*****************************************************************************/

View File

@ -6595,29 +6595,6 @@ const char *Txt_Create_account =
"Hesabı oluştur"; "Hesabı oluştur";
#endif #endif
const char *Txt_Create_email_domain =
#if L==1 // ca
"Crear domini de correu";
#elif L==2 // de
"E-Mail-Domäne anlegen";
#elif L==3 // en
"Create email domain";
#elif L==4 // es
"Crear dominio de correo";
#elif L==5 // fr
"Créer domaine de messagerie";
#elif L==6 // gn
"Crear dominio de correo"; // Okoteve traducción
#elif L==7 // it
"Crea campo mail";
#elif L==8 // pl
"Utwórz domeny mail";
#elif L==9 // pt
"Criar domínio de email";
#elif L==10 // tr
"Create email domain"; // Çeviri lazim!
#endif
const char *Txt_Create_email_message = const char *Txt_Create_email_message =
#if L==1 // ca #if L==1 // ca
"Crear missatge de correu"; "Crear missatge de correu";
@ -11646,29 +11623,6 @@ const char *Txt_Email_addresses =
"Email addresses"; // Çeviri lazim! "Email addresses"; // Çeviri lazim!
#endif #endif
const char *Txt_Email_domain =
#if L==1 // ca
"Domini de correu";
#elif L==2 // de
"E-Mail-Domäne";
#elif L==3 // en
"Email domain";
#elif L==4 // es
"Dominio de correo";
#elif L==5 // fr
"Domaine de messagerie";
#elif L==6 // gn
"Dominio correo";
#elif L==7 // it
"Campo mail";
#elif L==8 // pl
"Domeny poczty";
#elif L==9 // pt
"Domínio de email";
#elif L==10 // tr
"E-posta etki alanı";
#endif
const char *Txt_Email_domain_X_removed = // Warning: it is very important to include %s in the following sentences const char *Txt_Email_domain_X_removed = // Warning: it is very important to include %s in the following sentences
#if L==1 // ca #if L==1 // ca
"Domini de correu <strong>%s</strong> eliminat."; "Domini de correu <strong>%s</strong> eliminat.";

View File

@ -1580,23 +1580,23 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
, ,
[ActNewMai] = [ActNewMai] =
#if L==1 // ca #if L==1 // ca
"Create email domain" // Necessita traducció "Crear domini de correu"
#elif L==2 // de #elif L==2 // de
"Create email domain" // Need Übersetzung "E-Mail-Dom&auml;ne anlegen"
#elif L==3 // en #elif L==3 // en
"Create email domain" "Create email domain"
#elif L==4 // es #elif L==4 // es
"Crear dominio de correo" "Crear dominio de correo"
#elif L==5 // fr #elif L==5 // fr
"Create email domain" // Besoin de traduction "Cr&eacute;er domaine de messagerie"
#elif L==6 // gn #elif L==6 // gn
"Crear dominio de correo" // Okoteve traducción "Crear dominio de correo" // Okoteve traducción
#elif L==7 // it #elif L==7 // it
"Create email domain" // Bisogno di traduzione "Crea campo mail"
#elif L==8 // pl #elif L==8 // pl
"Create email domain" // Potrzebujesz tlumaczenie "Utw&oacute;rz domeny mail"
#elif L==9 // pt #elif L==9 // pt
"Create email domain" // Precisa de tradução "Criar dom&iacute;nio de email"
#elif L==10 // tr #elif L==10 // tr
"Create email domain" // Çeviri lazim! "Create email domain" // Çeviri lazim!
#endif #endif