Version 22.104.3: May 04, 2023 Changes in project configuration.

This commit is contained in:
acanas 2023-05-04 18:27:32 +02:00
parent 6252a1018b
commit 69af32cbe0
6 changed files with 83 additions and 61 deletions

View File

@ -997,6 +997,27 @@ void HTM_PARAM (const char *Name,
} }
} }
/*****************************************************************************/
/********************************* Fieldsets *********************************/
/*****************************************************************************/
void HTM_FIELDSET_Begin (void)
{
HTM_Txt ("<fieldset>");
}
void HTM_FIELDSET_End (void)
{
HTM_Txt ("</fieldset>");
}
void HTM_LEYEND (const char *Txt)
{
HTM_Txt ("<legend>");
HTM_Txt (Txt);
HTM_Txt ("</legend>");
}
/*****************************************************************************/ /*****************************************************************************/
/*********************************** Labels **********************************/ /*********************************** Labels **********************************/
/*****************************************************************************/ /*****************************************************************************/

View File

@ -143,6 +143,10 @@ void HTM_SCRIPT_End (void);
void HTM_PARAM (const char *Name, void HTM_PARAM (const char *Name,
const char *fmt,...); const char *fmt,...);
void HTM_FIELDSET_Begin (void);
void HTM_FIELDSET_End (void);
void HTM_LEYEND (const char *Txt);
void HTM_LABEL_Begin (const char *fmt,...); void HTM_LABEL_Begin (const char *fmt,...);
void HTM_LABEL_End (void); void HTM_LABEL_End (void);

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.104.2 (2023-05-04)" #define Log_PLATFORM_VERSION "SWAD 22.104.3 (2023-05-04)"
#define CSS_FILE "swad22.103.css" #define CSS_FILE "swad22.103.css"
#define JS_FILE "swad22.49.js" #define JS_FILE "swad22.49.js"
/* /*
Version 22.104.3: May 04, 2023 Changes in project configuration. (338043 lines)
Version 22.104.2: May 04, 2023 Rubrics in project. Changes in input numbers. (338022 lines) Version 22.104.2: May 04, 2023 Rubrics in project. Changes in input numbers. (338022 lines)
Version 22.104.1: May 04, 2023 Rubrics in project. Code refactoring in file browsers. (338014 lines) Version 22.104.1: May 04, 2023 Rubrics in project. Code refactoring in file browsers. (338014 lines)
Version 22.104: May 03, 2023 Rubrics in project. Not finished. (338000 lines) Version 22.104: May 03, 2023 Rubrics in project. Not finished. (338000 lines)

View File

@ -130,6 +130,8 @@ void PrjCfg_ShowFormConfig (void)
{ {
extern const char *Hlp_ASSESSMENT_Projects; extern const char *Hlp_ASSESSMENT_Projects;
extern const char *Txt_Configure_projects; extern const char *Txt_Configure_projects;
extern const char *Txt_Create_project;
extern const char *Txt_Rubrics;
extern const char *Txt_Save_changes; extern const char *Txt_Save_changes;
struct Prj_Projects Projects; struct Prj_Projects Projects;
@ -144,15 +146,17 @@ void PrjCfg_ShowFormConfig (void)
/***** Begin form *****/ /***** Begin form *****/
Frm_BeginForm (ActRcvCfgPrj); Frm_BeginForm (ActRcvCfgPrj);
HTM_TABLE_BeginCenterPadding (2); /***** Projects are editable by non-editing teachers? *****/
HTM_FIELDSET_Begin ();
/***** Projects are editable by non-editing teachers? *****/ HTM_LEYEND (Txt_Create_project);
PrjCfg_ShowFormNETCanCreate (&Projects.Config); PrjCfg_ShowFormNETCanCreate (&Projects.Config);
HTM_FIELDSET_End ();
/***** Rubrics *****/ /***** Rubrics *****/
HTM_FIELDSET_Begin ();
HTM_LEYEND (Txt_Rubrics);
PrjCfg_ShowFormRubrics (&Projects.Config); PrjCfg_ShowFormRubrics (&Projects.Config);
HTM_FIELDSET_End ();
HTM_TABLE_End ();
/***** Send button *****/ /***** Send button *****/
Btn_PutConfirmButton (Txt_Save_changes); Btn_PutConfirmButton (Txt_Save_changes);
@ -180,10 +184,12 @@ static void PrjCfg_ShowFormRubrics (const struct PrjCfg_Config *Config)
Rub_GetListRubrics (&Rubrics); Rub_GetListRubrics (&Rubrics);
/***** Rubric selectors *****/ /***** Rubric selectors *****/
for (WhichRubric = (PrjCfg_Rubric_t) 1; HTM_TABLE_BeginCenterPadding (2);
WhichRubric <= (PrjCfg_Rubric_t) (PrjCfg_NUM_RUBRICS - 1); for (WhichRubric = (PrjCfg_Rubric_t) 1;
WhichRubric++) WhichRubric <= (PrjCfg_Rubric_t) (PrjCfg_NUM_RUBRICS - 1);
PrjCfg_ShowFormRubric (Config,&Rubrics,WhichRubric); WhichRubric++)
PrjCfg_ShowFormRubric (Config,&Rubrics,WhichRubric);
HTM_TABLE_End ();
/***** Free list of rubrics *****/ /***** Free list of rubrics *****/
Rub_FreeListRubrics (&Rubrics); Rub_FreeListRubrics (&Rubrics);
@ -308,28 +314,15 @@ PrjCfg_Rubric_t PrjCfg_GetRubricFromString (const char *Str)
static void PrjCfg_ShowFormNETCanCreate (const struct PrjCfg_Config *Config) static void PrjCfg_ShowFormNETCanCreate (const struct PrjCfg_Config *Config)
{ {
extern const char *Txt_Create_project;
extern const char *Txt_Non_editing_teachers_can_create_new_projects; extern const char *Txt_Non_editing_teachers_can_create_new_projects;
HTM_TR_Begin (NULL); HTM_LABEL_Begin ("class=\"LT DAT_%s\"",The_GetSuffix ());
HTM_INPUT_CHECKBOX ("NETCanCreate",HTM_DONT_SUBMIT_ON_CHANGE,
/***** Label *****/ "id=\"NETCanCreate\" value=\"Y\"%s",
HTM_TD_Begin ("class=\"RM FORM_IN_%s\"",The_GetSuffix ()); Config->NETCanCreate ? " checked=\"checked\"" :
HTM_TxtColon (Txt_Create_project); "");
HTM_TD_End (); HTM_Txt (Txt_Non_editing_teachers_can_create_new_projects);
HTM_LABEL_End ();
/***** Data *****/
HTM_TD_Begin ("class=\"LM\"");
HTM_LABEL_Begin ("class=\"DAT_%s\"",The_GetSuffix ());
HTM_INPUT_CHECKBOX ("NETCanCreate",HTM_DONT_SUBMIT_ON_CHANGE,
"id=\"NETCanCreate\" value=\"Y\"%s",
Config->NETCanCreate ? " checked=\"checked\"" :
"");
HTM_Txt (Txt_Non_editing_teachers_can_create_new_projects);
HTM_LABEL_End ();
HTM_TD_End ();
HTM_TR_End ();
} }
/*****************************************************************************/ /*****************************************************************************/

View File

@ -487,6 +487,9 @@ void Rub_ShowRubricInProject (struct Prj_Projects *Projects,
/***** End 2nd row of this rubric *****/ /***** End 2nd row of this rubric *****/
HTM_TR_End (); HTM_TR_End ();
/***** Change color for rubric criteria *****/
The_ChangeRowColor ();
/***** Write criteria of this rubric *****/ /***** Write criteria of this rubric *****/
RubCri_ListCriteriaInProject (Projects,Rubric->RubCod,ICanFill); RubCri_ListCriteriaInProject (Projects,Rubric->RubCod,ICanFill);

View File

@ -32394,71 +32394,71 @@ const char *Txt_PROJECT_RUBRIC[PrjCfg_NUM_RUBRICS] =
{ {
[PrjCfg_RUBRIC_TUT] = [PrjCfg_RUBRIC_TUT] =
#if L==1 // ca #if L==1 // ca
"R&uacute;brica per a tutors" "Tutors"
#elif L==2 // de #elif L==2 // de
"Rubrik f&uuml;r Tutoren" "Tutoren"
#elif L==3 // en #elif L==3 // en
"Rubric for tutors" "Tutors"
#elif L==4 // es #elif L==4 // es
"R&uacute;brica para tutores" "Tutores"
#elif L==5 // fr #elif L==5 // fr
"Rubrique pour les tuteurs" "Tuteurs"
#elif L==6 // gn #elif L==6 // gn
"R&uacute;brica tutor-ku&eacute;rape guar&atilde;" "Tutor"
#elif L==7 // it #elif L==7 // it
"Rubrica per precettori" "Precettori"
#elif L==8 // pl #elif L==8 // pl
"Rubryka dla nauczyciele" "Nauczyciele"
#elif L==9 // pt #elif L==9 // pt
"Rubrica para tutores" "Tutores"
#elif L==10 // tr #elif L==10 // tr
"&Ouml;&gbreve;retmenler i&ccedil;in de&gbreve;erlendirme listesi" "&Ouml;&gbreve;retmenler"
#endif #endif
, ,
[PrjCfg_RUBRIC_EVL] = [PrjCfg_RUBRIC_EVL] =
#if L==1 // ca #if L==1 // ca
"R&uacute;brica per a avaluadors" "Avaluadors"
#elif L==2 // de #elif L==2 // de
"Rubrik f&uuml;r Auswerter" "Auswerter"
#elif L==3 // en #elif L==3 // en
"Rubric for evaluators" "Evaluators"
#elif L==4 // es #elif L==4 // es
"R&uacute;brica para evaluadores" "Evaluadores"
#elif L==5 // fr #elif L==5 // fr
"Rubrique pour les &eacute;valuateurs" "&Eacute;valuateurs"
#elif L==6 // gn #elif L==6 // gn
"R&uacute;brica evaluador-ku&eacute;rape guar&atilde;" "Evaluador"
#elif L==7 // it #elif L==7 // it
"Rubrica per valutatori" "Valutatori"
#elif L==8 // pl #elif L==8 // pl
"Rubryka dla ewaluator&oacute;w" "Ewaluator&oacute;w"
#elif L==9 // pt #elif L==9 // pt
"Rubrica para avaliadores" "Avaliadores"
#elif L==10 // tr #elif L==10 // tr
"De&gbreve;erlendiriciler i&ccedil;in de&gbreve;erlendirme listesi" "De&gbreve;erlendiriciler"
#endif #endif
, ,
[PrjCfg_RUBRIC_GBL] = [PrjCfg_RUBRIC_GBL] =
#if L==1 // ca #if L==1 // ca
"R&uacute;brica global" "Global"
#elif L==2 // de #elif L==2 // de
"Gesamtrubrik" "Gesamt"
#elif L==3 // en #elif L==3 // en
"Globale rubric" "Globale"
#elif L==4 // es #elif L==4 // es
"R&uacute;brica global" "Global"
#elif L==5 // fr #elif L==5 // fr
"Rubrique globale" "Globale"
#elif L==6 // gn #elif L==6 // gn
"R&uacute;brica general" "General"
#elif L==7 // it #elif L==7 // it
"Rubrica complessiva" "Complessiva"
#elif L==8 // pl #elif L==8 // pl
"Globalna rubryka" "Globalna"
#elif L==9 // pt #elif L==9 // pt
"Rubrica geral" "Geral"
#elif L==10 // tr #elif L==10 // tr
"Genel de&gbreve;erlendirme listesi" "Genel"
#endif #endif
}; };