mirror of https://github.com/acanas/swad-core.git
Version 22.103: Apr 25, 2023 Fixed issue in list of rubric criteria.
This commit is contained in:
parent
2c04f87d61
commit
1d181d04eb
|
@ -3253,16 +3253,16 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
|
|||
.BIG_INDEX_PURPLE,
|
||||
.BIG_INDEX_BLUE,
|
||||
.BIG_INDEX_YELLOW,
|
||||
.BIG_INDEX_PINK {color:#808080; font-size:20pt; font-weight:bold;}
|
||||
.BIG_INDEX_DARK {color:#d0d0d0; font-size:20pt; font-weight:bold;}
|
||||
.BIG_INDEX_PINK {color:#808080; font-size:16pt; font-weight:bold;}
|
||||
.BIG_INDEX_DARK {color:#d0d0d0; font-size:16pt; font-weight:bold;}
|
||||
|
||||
.BIG_INDEX_RED_WHITE,
|
||||
.BIG_INDEX_RED_GREY,
|
||||
.BIG_INDEX_RED_PURPLE,
|
||||
.BIG_INDEX_RED_BLUE,
|
||||
.BIG_INDEX_RED_YELLOW,
|
||||
.BIG_INDEX_RED_PINK {color:#660000; font-size:20pt; font-weight:bold;}
|
||||
.BIG_INDEX_RED_DARK {color:#ff8080; font-size:20pt; font-weight:bold;}
|
||||
.BIG_INDEX_RED_PINK {color:#660000; font-size:16pt; font-weight:bold;}
|
||||
.BIG_INDEX_RED_DARK {color:#ff8080; font-size:16pt; font-weight:bold;}
|
||||
|
||||
/******************************** Update links *******************************/
|
||||
.UPD
|
|
@ -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.
|
||||
|
||||
*/
|
||||
#define Log_PLATFORM_VERSION "SWAD 22.102.3 (2023-04-21)"
|
||||
#define CSS_FILE "swad22.95.css"
|
||||
#define Log_PLATFORM_VERSION "SWAD 22.103 (2023-04-25)"
|
||||
#define CSS_FILE "swad22.103.css"
|
||||
#define JS_FILE "swad22.49.js"
|
||||
/*
|
||||
Version 22.103: Apr 25, 2023 Fixed issue in list of rubric criteria. (337537 lines)
|
||||
Version 22.102.3: Apr 21, 2023 Changes in exams. (337538 lines)
|
||||
Version 22.102.2: Apr 21, 2023 Changes in games. (337454 lines)
|
||||
Version 22.102.1: Apr 21, 2023 Changes in rubrics. (337378 lines)
|
||||
|
|
|
@ -66,6 +66,16 @@ static const char *RubCri_ParValues[RubCri_NUM_VALUES] =
|
|||
#define RubCri_WEIGHT_MAX 1.0
|
||||
#define RubCri_WEIGHT_STEP 0.000001
|
||||
|
||||
/*****************************************************************************/
|
||||
/******************************* Private types *******************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef enum
|
||||
{
|
||||
RubCri_DONT_PUT_COLUMN_FOR_ICONS,
|
||||
RubCri_PUT_COLUMN_FOR_ICONS,
|
||||
} RubCri_PutColumnForIcons_t;
|
||||
|
||||
/*****************************************************************************/
|
||||
/***************************** Private prototypes ****************************/
|
||||
/*****************************************************************************/
|
||||
|
@ -92,7 +102,7 @@ static void RubCri_ListOneOrMoreCriteriaForEdition (struct Rub_Rubrics *Rubrics,
|
|||
static void RubCri_GetCriterionDataFromRow (MYSQL_RES *mysql_res,
|
||||
struct RubCri_Criterion *Criterion);
|
||||
|
||||
static void RubCri_PutTableHeadingForCriteria (void);
|
||||
static void RubCri_PutTableHeadingForCriteria (RubCri_PutColumnForIcons_t PutColumnForIcons);
|
||||
|
||||
static void RubCri_GetAndCheckRubricAndCriterion (struct Rub_Rubrics *Rubrics);
|
||||
|
||||
|
@ -159,15 +169,11 @@ static void RubCri_PutFormNewCriterion (struct Rub_Rubrics *Rubrics,
|
|||
NULL,Box_NOT_CLOSABLE,2);
|
||||
|
||||
/***** Table heading *****/
|
||||
RubCri_PutTableHeadingForCriteria ();
|
||||
RubCri_PutTableHeadingForCriteria (RubCri_DONT_PUT_COLUMN_FOR_ICONS);
|
||||
|
||||
/***** Begin row *****/
|
||||
HTM_TR_Begin (NULL);
|
||||
|
||||
/***** Empty column for buttons *****/
|
||||
HTM_TD_Begin ("class=\"BT\"");
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Index *****/
|
||||
HTM_TD_Begin ("class=\"RT\"");
|
||||
Lay_WriteIndex (MaxCriInd + 1,"BIG_INDEX");
|
||||
|
@ -494,11 +500,11 @@ void RubCri_ListCriteriaForSeeing (const struct Rub_Rubrics *Rubrics)
|
|||
if (NumCriteria)
|
||||
RubCri_ListOneOrMoreCriteriaForSeeing (NumCriteria,mysql_res);
|
||||
|
||||
/***** Free structure that stores the query result *****/
|
||||
DB_FreeMySQLResult (&mysql_res);
|
||||
|
||||
/***** End box *****/
|
||||
Box_BoxEnd ();
|
||||
|
||||
/***** Free structure that stores the query result *****/
|
||||
DB_FreeMySQLResult (&mysql_res);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -531,15 +537,15 @@ void RubCri_ListCriteriaForEdition (struct Rub_Rubrics *Rubrics)
|
|||
MaxCriInd,
|
||||
NumCriteria,mysql_res);
|
||||
|
||||
/***** Free structure that stores the query result *****/
|
||||
DB_FreeMySQLResult (&mysql_res);
|
||||
|
||||
/***** Put forms to create/edit a criterion *****/
|
||||
if (ICanEditCriteria)
|
||||
RubCri_PutFormNewCriterion (Rubrics,MaxCriInd);
|
||||
|
||||
/***** End box *****/
|
||||
Box_BoxEnd ();
|
||||
|
||||
/***** Free structure that stores the query result *****/
|
||||
DB_FreeMySQLResult (&mysql_res);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -558,7 +564,7 @@ static void RubCri_ListOneOrMoreCriteriaForSeeing (unsigned NumCriteria,
|
|||
HTM_TABLE_BeginWideMarginPadding (5);
|
||||
|
||||
/***** Write the heading *****/
|
||||
RubCri_PutTableHeadingForCriteria ();
|
||||
RubCri_PutTableHeadingForCriteria (RubCri_DONT_PUT_COLUMN_FOR_ICONS);
|
||||
|
||||
/***** Write rows *****/
|
||||
for (NumCriterion = 0, The_ResetRowColor ();
|
||||
|
@ -574,11 +580,6 @@ static void RubCri_ListOneOrMoreCriteriaForSeeing (unsigned NumCriteria,
|
|||
/***** Begin first row *****/
|
||||
HTM_TR_Begin (NULL);
|
||||
|
||||
/***** Icons *****/
|
||||
HTM_TD_Begin ("rowspan=\"2\" class=\"BT %s\"",
|
||||
The_GetColorRows ());
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Index *****/
|
||||
HTM_TD_Begin ("rowspan=\"2\" class=\"RT %s\"",
|
||||
The_GetColorRows ());
|
||||
|
@ -596,11 +597,7 @@ static void RubCri_ListOneOrMoreCriteriaForSeeing (unsigned NumCriteria,
|
|||
HTM_TD_Begin ("class=\"LT DAT_%s %s\"",
|
||||
The_GetSuffix (),
|
||||
The_GetColorRows ());
|
||||
// TODO: Write source
|
||||
// Frm_BeginFormAnchor (ActChgLnkRubCri,Anchor);
|
||||
// RubCri_PutParsOneCriterion (Rubrics);
|
||||
// Rsc_ShowClipboardToChangeLink (&Criterion.Link);
|
||||
// Frm_EndForm ();
|
||||
Rsc_WriteLinkName (&Criterion.Link,Frm_DONT_PUT_FORM_TO_GO);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Minimum and maximum values of criterion *****/
|
||||
|
@ -669,7 +666,7 @@ static void RubCri_ListOneOrMoreCriteriaForEdition (struct Rub_Rubrics *Rubrics,
|
|||
HTM_TABLE_BeginWideMarginPadding (5);
|
||||
|
||||
/***** Write the heading *****/
|
||||
RubCri_PutTableHeadingForCriteria ();
|
||||
RubCri_PutTableHeadingForCriteria (RubCri_PUT_COLUMN_FOR_ICONS);
|
||||
|
||||
/***** Write rows *****/
|
||||
for (NumCriterion = 0, The_ResetRowColor ();
|
||||
|
@ -856,7 +853,7 @@ static void RubCri_GetCriterionDataFromRow (MYSQL_RES *mysql_res,
|
|||
/****************** Put table heading for rubric criteria ********************/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void RubCri_PutTableHeadingForCriteria (void)
|
||||
static void RubCri_PutTableHeadingForCriteria (RubCri_PutColumnForIcons_t PutColumnForIcons)
|
||||
{
|
||||
extern const char *Txt_No_INDEX;
|
||||
extern const char *Txt_Criterion;
|
||||
|
@ -869,7 +866,8 @@ static void RubCri_PutTableHeadingForCriteria (void)
|
|||
HTM_TR_Begin (NULL);
|
||||
|
||||
/***** Header cells *****/
|
||||
HTM_TH_Empty (1);
|
||||
if (PutColumnForIcons == RubCri_PUT_COLUMN_FOR_ICONS)
|
||||
HTM_TH_Empty (1);
|
||||
HTM_TH (Txt_No_INDEX ,HTM_HEAD_RIGHT);
|
||||
HTM_TH (Txt_Criterion,HTM_HEAD_LEFT );
|
||||
HTM_TH (Txt_Source ,HTM_HEAD_LEFT );
|
||||
|
|
Loading…
Reference in New Issue