Version 22.107.23:May 09, 2023 Changes in edition of departments.

This commit is contained in:
acanas 2023-05-09 14:27:07 +02:00
parent 371ed6d33f
commit bd92362ba9
4 changed files with 98 additions and 109 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.22 (2023-05-09)" #define Log_PLATFORM_VERSION "SWAD 22.107.23 (2023-05-09)"
#define CSS_FILE "swad22.107.17.css" #define CSS_FILE "swad22.107.17.css"
#define JS_FILE "swad22.49.js" #define JS_FILE "swad22.49.js"
/* /*
Version 22.107.23:May 09, 2023 Changes in edition of departments. (337802 lines)
Version 22.107.22:May 09, 2023 Changes in edition of courses. (337817 lines) Version 22.107.22:May 09, 2023 Changes in edition of courses. (337817 lines)
Version 22.107.21:May 09, 2023 Changes in edition of degrees. (337829 lines) Version 22.107.21:May 09, 2023 Changes in edition of degrees. (337829 lines)
Version 22.107.20:May 09, 2023 Changes in edition of countries. (337842 lines) Version 22.107.20:May 09, 2023 Changes in edition of countries. (337842 lines)

View File

@ -488,7 +488,7 @@ static void Dpt_ListDepartmentsForEdition (const struct Dpt_Departments *Departm
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
/* Put icon to remove department */ /* Icon to remove department */
HTM_TD_Begin ("class=\"BM\""); HTM_TD_Begin ("class=\"BM\"");
if (DptInLst->NumTchs) // Department has teachers ==> deletion forbidden if (DptInLst->NumTchs) // Department has teachers ==> deletion forbidden
Ico_PutIconRemovalNotAllowed (); Ico_PutIconRemovalNotAllowed ();
@ -498,12 +498,12 @@ static void Dpt_ListDepartmentsForEdition (const struct Dpt_Departments *Departm
HTM_TD_End (); HTM_TD_End ();
/* Department code */ /* Department code */
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ()); HTM_TD_Begin ("class=\"DAT_%s CODE\"",The_GetSuffix ());
HTM_TxtF ("%ld ",DptInLst->DptCod); HTM_TxtF ("%ld ",DptInLst->DptCod);
HTM_TD_End (); HTM_TD_End ();
/* Institution */ /* Institution */
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"LM\"");
Frm_BeginForm (ActChgDptIns); Frm_BeginForm (ActChgDptIns);
ParCod_PutPar (ParCod_Dpt,DptInLst->DptCod); ParCod_PutPar (ParCod_Dpt,DptInLst->DptCod);
HTM_SELECT_Begin (HTM_SUBMIT_ON_CHANGE,NULL, HTM_SELECT_Begin (HTM_SUBMIT_ON_CHANGE,NULL,
@ -529,7 +529,7 @@ static void Dpt_ListDepartmentsForEdition (const struct Dpt_Departments *Departm
HTM_TD_End (); HTM_TD_End ();
/* Department short name */ /* Department short name */
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"LM\"");
Frm_BeginForm (ActRenDptSho); Frm_BeginForm (ActRenDptSho);
ParCod_PutPar (ParCod_Dpt,DptInLst->DptCod); ParCod_PutPar (ParCod_Dpt,DptInLst->DptCod);
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,DptInLst->ShrtName, HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,DptInLst->ShrtName,
@ -540,7 +540,7 @@ static void Dpt_ListDepartmentsForEdition (const struct Dpt_Departments *Departm
HTM_TD_End (); HTM_TD_End ();
/* Department full name */ /* Department full name */
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"LM\"");
Frm_BeginForm (ActRenDptFul); Frm_BeginForm (ActRenDptFul);
ParCod_PutPar (ParCod_Dpt,DptInLst->DptCod); ParCod_PutPar (ParCod_Dpt,DptInLst->DptCod);
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,DptInLst->FullName, HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,DptInLst->FullName,
@ -551,7 +551,7 @@ static void Dpt_ListDepartmentsForEdition (const struct Dpt_Departments *Departm
HTM_TD_End (); HTM_TD_End ();
/* Department WWW */ /* Department WWW */
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"LM\"");
Frm_BeginForm (ActChgDptWWW); Frm_BeginForm (ActChgDptWWW);
ParCod_PutPar (ParCod_Dpt,DptInLst->DptCod); ParCod_PutPar (ParCod_Dpt,DptInLst->DptCod);
HTM_INPUT_URL ("WWW",DptInLst->WWW,HTM_SUBMIT_ON_CHANGE, HTM_INPUT_URL ("WWW",DptInLst->WWW,HTM_SUBMIT_ON_CHANGE,
@ -810,89 +810,100 @@ void Dpt_ContEditAfterChgDpt (void)
static void Dpt_PutFormToCreateDepartment (void) static void Dpt_PutFormToCreateDepartment (void)
{ {
extern const char *Txt_Institution; extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
extern const char *Txt_Short_name;
extern const char *Txt_Full_name;
extern const char *Txt_WWW;
extern const char *Txt_Another_institution; extern const char *Txt_Another_institution;
extern const char *Txt_Create_department; extern const char *Txt_Create;
unsigned NumIns; unsigned NumIns;
const struct Ins_Instit *InsInLst; const struct Ins_Instit *InsInLst;
/***** Begin form *****/ /***** Begin fieldset *****/
Frm_BeginForm (ActNewDpt); HTM_FIELDSET_Begin (NULL);
HTM_LEGEND (Txt_Actions[ActNewDpt]);
/***** Begin box and table *****/ /***** Begin form *****/
Box_BoxTableBegin (NULL,NULL, Frm_BeginForm (ActNewDpt);
NULL,NULL,
NULL,Box_NOT_CLOSABLE,2);
/***** Write heading *****/ /***** Begin table *****/
HTM_TR_Begin (NULL); HTM_TABLE_BeginWidePadding (2);
HTM_TH (Txt_Institution,HTM_HEAD_LEFT );
HTM_TH (Txt_Short_name ,HTM_HEAD_LEFT );
HTM_TH (Txt_Full_name ,HTM_HEAD_LEFT );
HTM_TH (Txt_WWW ,HTM_HEAD_LEFT );
HTM_TR_End ();
HTM_TR_Begin (NULL); /***** Write heading *****/
Dpt_PutHeadDepartments ();
/***** Institution *****/ HTM_TR_Begin (NULL);
HTM_TD_Begin ("class=\"CM\"");
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL, /***** Column to remove department, disabled here *****/
"name=\"OthInsCod\"" HTM_TD_Begin ("class=\"BM\"");
" class=\"HIE_SEL_NARROW INPUT_%s\"", HTM_TD_End ();
/***** Department code *****/
HTM_TD_Begin ("class=\"CODE\"");
HTM_TD_End ();
/***** Institution *****/
HTM_TD_Begin ("class=\"LM\"");
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL,
"name=\"OthInsCod\""
" class=\"HIE_SEL_NARROW INPUT_%s\"",
The_GetSuffix ());
HTM_OPTION (HTM_Type_STRING,"0",
Dpt_EditingDpt->InsCod == 0, // Selected?
HTM_OPTION_ENABLED,
"%s",Txt_Another_institution);
for (NumIns = 0;
NumIns < Gbl.Hierarchy.Inss.Num;
NumIns++)
{
InsInLst = &Gbl.Hierarchy.Inss.Lst[NumIns];
HTM_OPTION (HTM_Type_LONG,&InsInLst->InsCod,
InsInLst->InsCod == Dpt_EditingDpt->InsCod, // Selected?
HTM_OPTION_ENABLED,
"%s",InsInLst->ShrtName);
}
HTM_SELECT_End ();
HTM_TD_End ();
/***** Department short name *****/
HTM_TD_Begin ("class=\"LM\"");
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Dpt_EditingDpt->ShrtName,
HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_SHORT_NAME INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Department full name *****/
HTM_TD_Begin ("class=\"LM\"");
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Dpt_EditingDpt->FullName,
HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_FULL_NAME INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Department WWW *****/
HTM_TD_Begin ("class=\"LM\"");
HTM_INPUT_URL ("WWW",Dpt_EditingDpt->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_WWW_NARROW INPUT_%s\""
" required=\"required\"",
The_GetSuffix ()); The_GetSuffix ());
HTM_OPTION (HTM_Type_STRING,"0", HTM_TD_End ();
Dpt_EditingDpt->InsCod == 0, // Selected?
HTM_OPTION_ENABLED,
"%s",Txt_Another_institution);
for (NumIns = 0;
NumIns < Gbl.Hierarchy.Inss.Num;
NumIns++)
{
InsInLst = &Gbl.Hierarchy.Inss.Lst[NumIns];
HTM_OPTION (HTM_Type_LONG,&InsInLst->InsCod,
InsInLst->InsCod == Dpt_EditingDpt->InsCod, // Selected?
HTM_OPTION_ENABLED,
"%s",InsInLst->ShrtName);
}
HTM_SELECT_End ();
HTM_TD_End ();
/***** Department short name *****/ /***** Number of teachers *****/
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ());
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Dpt_EditingDpt->ShrtName, HTM_Unsigned (0);
HTM_DONT_SUBMIT_ON_CHANGE, HTM_TD_End ();
"class=\"INPUT_SHORT_NAME INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Department full name *****/ HTM_TR_End ();
HTM_TD_Begin ("class=\"CM\"");
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Dpt_EditingDpt->FullName,
HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_FULL_NAME INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Department WWW *****/ /***** End table and send button *****/
HTM_TD_Begin ("class=\"CM\""); HTM_TABLE_End ();
HTM_INPUT_URL ("WWW",Dpt_EditingDpt->WWW,HTM_DONT_SUBMIT_ON_CHANGE, Btn_PutButton (Btn_CREATE_BUTTON,Txt_Create);
"class=\"INPUT_WWW_NARROW INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
HTM_TR_End (); /***** End form *****/
Frm_EndForm ();
/***** End table, send button and end box *****/ /***** End fieldset *****/
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_department); HTM_FIELDSET_End ();
/***** End form *****/
Frm_EndForm ();
} }
/*****************************************************************************/ /*****************************************************************************/

View File

@ -6618,29 +6618,6 @@ const char *Txt_Create_another_type_of_degree =
"Create another type of degree"; // Çeviri lazim! "Create another type of degree"; // Çeviri lazim!
#endif #endif
const char *Txt_Create_department =
#if L==1 // ca
"Crear departament";
#elif L==2 // de
"Abteilung eingeben";
#elif L==3 // en
"Create department";
#elif L==4 // es
"Crear departamento";
#elif L==5 // fr
"Cr&eacute;er d&eacute;partement";
#elif L==6 // gn
"Crear departamento"; // Okoteve traducción
#elif L==7 // it
"Crea dipartimento";
#elif L==8 // pl
"Utw&oacute;rz dzia&lstrok;u";
#elif L==9 // pt
"Criar departamento";
#elif L==10 // tr
"Create department"; // Çeviri lazim!
#endif
const char *Txt_Create_email_domain = const char *Txt_Create_email_domain =
#if L==1 // ca #if L==1 // ca
"Crear domini de correu"; "Crear domini de correu";

View File

@ -3535,25 +3535,25 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
, ,
[ActNewDpt] = [ActNewDpt] =
#if L==1 // ca #if L==1 // ca
"Request creation of a department" // Necessita traducció "Crear departament"
#elif L==2 // de #elif L==2 // de
"Request creation of a department" // Need Übersetzung "Abteilung eingeben"
#elif L==3 // en #elif L==3 // en
"Request creation of a department" "Create department"
#elif L==4 // es #elif L==4 // es
"Solicitar creaci&oacute;n de un departamento" "Crear departamento"
#elif L==5 // fr #elif L==5 // fr
"Request creation of a department" // Besoin de traduction "Cr&eacute;er d&eacute;partement"
#elif L==6 // gn #elif L==6 // gn
"Solicitar creaci&oacute;n de un departamento" // Okoteve traducción "Crear departamento" // Okoteve traducción
#elif L==7 // it #elif L==7 // it
"Request creation of a department" // Bisogno di traduzione "Crea dipartimento"
#elif L==8 // pl #elif L==8 // pl
"Request creation of a department" // Potrzebujesz tlumaczenie "Utw&oacute;rz dzia&lstrok;u"
#elif L==9 // pt #elif L==9 // pt
"Request creation of a department" // Precisa de tradução "Criar departamento"
#elif L==10 // tr #elif L==10 // tr
"Request creation of a department" // Çeviri lazim! "Create department" // Çeviri lazim!
#endif #endif
, ,
[ActRemDpt] = [ActRemDpt] =