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,35 +810,37 @@ 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 fieldset *****/
HTM_FIELDSET_Begin (NULL);
HTM_LEGEND (Txt_Actions[ActNewDpt]);
/***** Begin form *****/ /***** Begin form *****/
Frm_BeginForm (ActNewDpt); Frm_BeginForm (ActNewDpt);
/***** Begin box and table *****/ /***** Begin table *****/
Box_BoxTableBegin (NULL,NULL, HTM_TABLE_BeginWidePadding (2);
NULL,NULL,
NULL,Box_NOT_CLOSABLE,2);
/***** Write heading *****/ /***** Write heading *****/
HTM_TR_Begin (NULL); Dpt_PutHeadDepartments ();
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); HTM_TR_Begin (NULL);
/***** Column to remove department, disabled here *****/
HTM_TD_Begin ("class=\"BM\"");
HTM_TD_End ();
/***** Department code *****/
HTM_TD_Begin ("class=\"CODE\"");
HTM_TD_End ();
/***** Institution *****/ /***** Institution *****/
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"LM\"");
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL, HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL,
"name=\"OthInsCod\"" "name=\"OthInsCod\""
" class=\"HIE_SEL_NARROW INPUT_%s\"", " class=\"HIE_SEL_NARROW INPUT_%s\"",
@ -861,7 +863,7 @@ static void Dpt_PutFormToCreateDepartment (void)
HTM_TD_End (); HTM_TD_End ();
/***** Department short name *****/ /***** Department short name *****/
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"LM\"");
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Dpt_EditingDpt->ShrtName, HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Dpt_EditingDpt->ShrtName,
HTM_DONT_SUBMIT_ON_CHANGE, HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_SHORT_NAME INPUT_%s\"" "class=\"INPUT_SHORT_NAME INPUT_%s\""
@ -870,7 +872,7 @@ static void Dpt_PutFormToCreateDepartment (void)
HTM_TD_End (); HTM_TD_End ();
/***** Department full name *****/ /***** Department full name *****/
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"LM\"");
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Dpt_EditingDpt->FullName, HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Dpt_EditingDpt->FullName,
HTM_DONT_SUBMIT_ON_CHANGE, HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_FULL_NAME INPUT_%s\"" "class=\"INPUT_FULL_NAME INPUT_%s\""
@ -879,20 +881,29 @@ static void Dpt_PutFormToCreateDepartment (void)
HTM_TD_End (); HTM_TD_End ();
/***** Department WWW *****/ /***** Department WWW *****/
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"LM\"");
HTM_INPUT_URL ("WWW",Dpt_EditingDpt->WWW,HTM_DONT_SUBMIT_ON_CHANGE, HTM_INPUT_URL ("WWW",Dpt_EditingDpt->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_WWW_NARROW INPUT_%s\"" "class=\"INPUT_WWW_NARROW INPUT_%s\""
" required=\"required\"", " required=\"required\"",
The_GetSuffix ()); The_GetSuffix ());
HTM_TD_End (); HTM_TD_End ();
/***** Number of teachers *****/
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_department); 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

@ -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éer département";
#elif L==6 // gn
"Crear departamento"; // Okoteve traducción
#elif L==7 // it
"Crea dipartimento";
#elif L==8 // pl
"Utwórz dział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ón de un departamento" "Crear departamento"
#elif L==5 // fr #elif L==5 // fr
"Request creation of a department" // Besoin de traduction "Créer département"
#elif L==6 // gn #elif L==6 // gn
"Solicitar creació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órz dział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] =