Version 22.107.33:May 09, 2023 Changes in edition of degree types.

This commit is contained in:
acanas 2023-05-09 22:47:22 +02:00
parent de36657627
commit 8e7541d531
4 changed files with 51 additions and 100 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.32 (2023-05-09)" #define Log_PLATFORM_VERSION "SWAD 22.107.33 (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.33:May 09, 2023 Changes in edition of degree types. (337591 lines)
Version 22.107.32:May 09, 2023 Changes in edition of rooms. (337639 lines) Version 22.107.32:May 09, 2023 Changes in edition of rooms. (337639 lines)
Version 22.107.31:May 09, 2023 Changes in edition of record fields. (337655 lines) Version 22.107.31:May 09, 2023 Changes in edition of record fields. (337655 lines)
Version 22.107.30:May 09, 2023 Changes in edition of plugins. (337694 lines) Version 22.107.30:May 09, 2023 Changes in edition of plugins. (337694 lines)

View File

@ -199,8 +199,6 @@ static void DegTyp_ListDegreeTypes (const struct DegTyp_DegTypes *DegTypes,
extern const char *Hlp_ANALYTICS_Figures_types_of_degree; extern const char *Hlp_ANALYTICS_Figures_types_of_degree;
extern const char *Txt_Types_of_degree; extern const char *Txt_Types_of_degree;
extern const char *Txt_No_types_of_degree; extern const char *Txt_No_types_of_degree;
extern const char *Txt_Create_another_type_of_degree;
extern const char *Txt_Create_type_of_degree;
/***** Begin box *****/ /***** Begin box *****/
switch (NextAction) switch (NextAction)
@ -236,15 +234,6 @@ static void DegTyp_ListDegreeTypes (const struct DegTyp_DegTypes *DegTypes,
else // No degree types created else // No degree types created
Ale_ShowAlert (Ale_INFO,Txt_No_types_of_degree); Ale_ShowAlert (Ale_INFO,Txt_No_types_of_degree);
/***** Button to create degree type *****/
if (DegTyp_CheckIfICanCreateDegreeTypes ())
{
Frm_BeginForm (ActEdiDegTyp);
Btn_PutConfirmButton (DegTypes->Num ? Txt_Create_another_type_of_degree :
Txt_Create_type_of_degree);
Frm_EndForm ();
}
/***** End box *****/ /***** End box *****/
Box_BoxEnd (); Box_BoxEnd ();
} }
@ -423,7 +412,7 @@ static void DegTyp_ListDegreeTypesForEdition (const struct DegTyp_DegTypes *DegT
HTM_TD_End (); HTM_TD_End ();
/* Degree type code */ /* Degree type code */
HTM_TD_Begin ("class=\"DAT_%s CODE\"",The_GetSuffix ()); HTM_TD_Begin ("class=\"CODE DAT_%s\"",The_GetSuffix ());
HTM_Long (DegTypes->Lst[NumDegTyp].DegTypCod); HTM_Long (DegTypes->Lst[NumDegTyp].DegTypCod);
HTM_TD_End (); HTM_TD_End ();
@ -468,52 +457,59 @@ bool DegTyp_CheckIfICanCreateDegreeTypes (void)
static void DegTyp_PutFormToCreateDegreeType (void) static void DegTyp_PutFormToCreateDegreeType (void)
{ {
extern const char *Txt_Create_type_of_degree; extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
extern const char *Txt_Create;
/***** Begin form *****/ /***** Begin fieldset *****/
Frm_BeginForm (ActNewDegTyp); HTM_FIELDSET_Begin (NULL);
HTM_LEGEND (Txt_Actions[ActNewDegTyp]);
/***** Begin box and table *****/ /***** Begin form *****/
Box_BoxTableBegin (NULL,NULL, Frm_BeginForm (ActNewDegTyp);
NULL,NULL,
NULL,Box_NOT_CLOSABLE,2);
/***** Write heading *****/ /***** Begin table *****/
DegTyp_PutHeadDegreeTypesForEdition (); HTM_TABLE_BeginWidePadding (2);
/***** Begin table row *****/ /***** Write heading *****/
HTM_TR_Begin (NULL); DegTyp_PutHeadDegreeTypesForEdition ();
/***** Column to remove degree type, disabled here *****/ /***** Begin table row *****/
HTM_TD_Begin ("class=\"BM\""); HTM_TR_Begin (NULL);
HTM_TD_End ();
/***** Degree type code *****/ /***** Column to remove degree type, disabled here *****/
HTM_TD_Begin ("class=\"CODE\""); HTM_TD_Begin ("class=\"BM\"");
HTM_TD_End (); HTM_TD_End ();
/***** Degree type name *****/ /***** Degree type code *****/
HTM_TD_Begin ("class=\"LM\""); HTM_TD_Begin ("class=\"CODE\"");
HTM_INPUT_TEXT ("DegTypName",DegTyp_MAX_CHARS_DEGREE_TYPE_NAME,DegTyp_EditingDegTyp->DegTypName, HTM_TD_End ();
HTM_DONT_SUBMIT_ON_CHANGE,
"size=\"25\" class=\"INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Number of degrees of this degree type ****/ /***** Degree type name *****/
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ()); HTM_TD_Begin ("class=\"LM\"");
HTM_Unsigned (0); HTM_INPUT_TEXT ("DegTypName",DegTyp_MAX_CHARS_DEGREE_TYPE_NAME,DegTyp_EditingDegTyp->DegTypName,
HTM_TD_End (); HTM_DONT_SUBMIT_ON_CHANGE,
"size=\"25\" class=\"INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** End table row *****/ /***** Number of degrees of this degree type ****/
HTM_TR_End (); HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ());
HTM_Unsigned (0);
HTM_TD_End ();
/***** End table, send button and end box *****/ /***** End table row *****/
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_type_of_degree); HTM_TR_End ();
/***** End form *****/ /***** End table and send button *****/
Frm_EndForm (); HTM_TABLE_End ();
Btn_PutButton (Btn_CREATE_BUTTON,Txt_Create);
/***** End form *****/
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_another_type_of_degree =
#if L==1 // ca
"Crear un altre tipus de titulació";
#elif L==2 // de
"Erstellen Sie ein anderes Abschlussart";
#elif L==3 // en
"Create another type of degree";
#elif L==4 // es
"Crear otro tipo de titulación";
#elif L==5 // fr
"Créer un autre type d'étude";
#elif L==6 // gn
"Crear otro tipo de titulación"; // Okoteve traducción
#elif L==7 // it
"Crea un altro tipo di laurea";
#elif L==8 // pl
"Utwórz inny typu stopnia";
#elif L==9 // pt
"Criar outro tipo de grau";
#elif L==10 // tr
"Create another type of degree"; // Ç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";
@ -6848,29 +6825,6 @@ const char *Txt_Create_question =
"Create question"; // Çeviri lazim! "Create question"; // Çeviri lazim!
#endif #endif
const char *Txt_Create_type_of_degree =
#if L==1 // ca
"Crear tipus de titulació";
#elif L==2 // de
"Abschlussart definieren";
#elif L==3 // en
"Create type of degree";
#elif L==4 // es
"Crear tipo de titulación";
#elif L==5 // fr
"Créer type d'étude";
#elif L==6 // gn
"Crear tipo de titulación"; // Okoteve traducción
#elif L==7 // it
"Crea tipo di laurea";
#elif L==8 // pl
"Utwórz typu stopnia";
#elif L==9 // pt
"Criar tipo de grau";
#elif L==10 // tr
"Create type of degree"; // Çeviri lazim!
#endif
const char *Txt_Create_type_of_group = const char *Txt_Create_type_of_group =
#if L==1 // ca #if L==1 // ca
"Crear tipus de grup"; "Crear tipus de grup";

View File

@ -4342,23 +4342,23 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
, ,
[ActNewDegTyp] = [ActNewDegTyp] =
#if L==1 // ca #if L==1 // ca
"Create type of degree" // Necessita traducció "Crear tipus de titulació"
#elif L==2 // de #elif L==2 // de
"Create type of degree" // Need Übersetzung "Abschlussart definieren"
#elif L==3 // en #elif L==3 // en
"Create type of degree" "Create type of degree"
#elif L==4 // es #elif L==4 // es
"Crear tipo de titulación" "Crear tipo de titulación"
#elif L==5 // fr #elif L==5 // fr
"Create type of degree" // Besoin de traduction "Créer type d'étude"
#elif L==6 // gn #elif L==6 // gn
"Crear tipo de titulación" // Okoteve traducción "Crear tipo de titulación" // Okoteve traducción
#elif L==7 // it #elif L==7 // it
"Create type of degree" // Bisogno di traduzione "Crea tipo di laurea"
#elif L==8 // pl #elif L==8 // pl
"Create type of degree" // Potrzebujesz tlumaczenie "Utwórz typu stopnia"
#elif L==9 // pt #elif L==9 // pt
"Create type of degree" // Precisa de traduçăo "Criar tipo de grau"
#elif L==10 // tr #elif L==10 // tr
"Create type of degree" // Çeviri lazim! "Create type of degree" // Çeviri lazim!
#endif #endif