From 76c0452ea90cedb9fb6d05e7179ad09dd93bf837 Mon Sep 17 00:00:00 2001 From: acanas Date: Wed, 20 Dec 2023 01:03:16 +0100 Subject: [PATCH] Version 23.53.7: Dec 20, 2023 Layout changes in hierarchy edition. --- css/swad23.53.6.css | 4 ++-- swad_HTML.c | 4 ++-- swad_center.c | 6 +++--- swad_changelog.h | 3 ++- swad_course.c | 8 ++++---- swad_degree.c | 8 ++++---- swad_exam_set.c | 8 ++++++-- swad_institution.c | 6 +++--- swad_name.c | 2 +- swad_test.c | 10 +++++++--- 10 files changed, 34 insertions(+), 25 deletions(-) diff --git a/css/swad23.53.6.css b/css/swad23.53.6.css index 93ce7d9f..65830ee1 100644 --- a/css/swad23.53.6.css +++ b/css/swad23.53.6.css @@ -1434,7 +1434,7 @@ a:hover /* Default ==> underlined */ .HIE_LOGO { text-align:left; - vertical-align:middle; + vertical-align:top; width:25px; } .HIE_SEL_NARROW @@ -5266,7 +5266,7 @@ button.PAG_DARK:hover, .PAG_CUR_DARK {background-color:#707070;} box-sizing:border-box; min-width:60px; text-align:right; - vertical-align:middle; + vertical-align:top; } .INPUT_INS_CODE { diff --git a/swad_HTML.c b/swad_HTML.c index 3c140500..67901c01 100644 --- a/swad_HTML.c +++ b/swad_HTML.c @@ -2080,14 +2080,14 @@ void HTM_TD_TxtColon (const char *Txt) void HTM_TD_LINE_TOP_Txt (const char *Txt) { - HTM_TD_Begin ("class=\"LM DAT_STRONG_%s LINE_TOP\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"LT DAT_STRONG_%s LINE_TOP\"",The_GetSuffix ()); HTM_Txt (Txt); HTM_TD_End (); } void HTM_TD_Unsigned (unsigned Num) { - HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"RT DAT_%s\"",The_GetSuffix ()); HTM_Unsigned (Num); HTM_TD_End (); } diff --git a/swad_center.c b/swad_center.c index 6fd08c82..47a11e54 100644 --- a/swad_center.c +++ b/swad_center.c @@ -773,7 +773,7 @@ static void Ctr_ListCentersForEdition (const struct Plc_Places *Places) HTM_TR_Begin (NULL); /* Put icon to remove center */ - HTM_TD_Begin ("class=\"BM\""); + HTM_TD_Begin ("class=\"BT\""); if (!ICanEdit || // I cannot edit NumDegs || // Center has degrees NumUsrsCtr || // Center has users who claim to belong to it @@ -795,7 +795,7 @@ static void Ctr_ListCentersForEdition (const struct Plc_Places *Places) HTM_TD_End (); /* Place */ - HTM_TD_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"LT DAT_%s\"",The_GetSuffix ()); if (ICanEdit) { Frm_BeginForm (ActChgCtrPlc); @@ -840,7 +840,7 @@ static void Ctr_ListCentersForEdition (const struct Plc_Places *Places) ICanEdit); // Put form? /* Center WWW */ - HTM_TD_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"LT DAT_%s\"",The_GetSuffix ()); if (ICanEdit) { Frm_BeginForm (ActChgCtrWWW); diff --git a/swad_changelog.h b/swad_changelog.h index 90af071f..78948ad8 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -633,10 +633,11 @@ Me sale este error, no s "can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod') */ -#define Log_PLATFORM_VERSION "SWAD 23.53.6 (2023-12-19)" +#define Log_PLATFORM_VERSION "SWAD 23.53.7 (2023-12-20)" #define CSS_FILE "swad23.53.6.css" #define JS_FILE "swad23.53.6.js" /* + Version 23.53.7: Dec 20, 2023 Layout changes in hierarchy edition. (335883 lines) Version 23.53.6: Dec 19, 2023 Responsive design in questions. (335874 lines) Version 23.53.5: Dec 19, 2023 Responsive design in calls for exams. (335874 lines) Version 23.53.4: Dec 18, 2023 Responsive design in projects. (335869 lines) diff --git a/swad_course.c b/swad_course.c index 4fafe544..44527348 100644 --- a/swad_course.c +++ b/swad_course.c @@ -830,7 +830,7 @@ static void Crs_ListCoursesOfAYearForEdition (unsigned Year) HTM_TR_Begin (NULL); /* Put icon to remove course */ - HTM_TD_Begin ("class=\"BM\""); + HTM_TD_Begin ("class=\"BT\""); if (NumUsrs[Rol_UNK] || // Course has users ==> deletion forbidden !ICanEdit) Ico_PutIconRemovalNotAllowed (); @@ -840,12 +840,12 @@ static void Crs_ListCoursesOfAYearForEdition (unsigned Year) HTM_TD_End (); /* Course code */ - HTM_TD_Begin ("class=\"DAT_%s CODE\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"CODE DAT_%s\"",The_GetSuffix ()); HTM_Long (Crs->HieCod); HTM_TD_End (); /* Course year */ - HTM_TD_Begin ("class=\"CM DAT_%s\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"CT DAT_%s\"",The_GetSuffix ()); if (ICanEdit) { Frm_BeginForm (ActChgCrsYea); @@ -872,7 +872,7 @@ static void Crs_ListCoursesOfAYearForEdition (unsigned Year) HTM_TD_End (); /* Institutional code of the course */ - HTM_TD_Begin ("class=\"CM DAT_%s\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"CT DAT_%s\"",The_GetSuffix ()); if (ICanEdit) { Frm_BeginForm (ActChgInsCrsCod); diff --git a/swad_degree.c b/swad_degree.c index 5c6b97be..68b1fa68 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -359,7 +359,7 @@ static void Deg_ListDegreesForEdition (const struct DegTyp_DegTypes *DegTypes) HTM_TR_Begin (NULL); /* Put icon to remove degree */ - HTM_TD_Begin ("class=\"BM\""); + HTM_TD_Begin ("class=\"BT\""); if (!ICanEdit || NumCrss || // Degree has courses ==> deletion forbidden NumUsrsInCrssOfDeg) @@ -370,7 +370,7 @@ static void Deg_ListDegreesForEdition (const struct DegTyp_DegTypes *DegTypes) HTM_TD_End (); /* Degree code */ - HTM_TD_Begin ("class=\"DAT_%s CODE\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"CODE DAT_%s\"",The_GetSuffix ()); HTM_Long (Deg->HieCod); HTM_TD_End (); @@ -388,7 +388,7 @@ static void Deg_ListDegreesForEdition (const struct DegTyp_DegTypes *DegTypes) ICanEdit); // Put form? /* Degree type */ - HTM_TD_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"LT DAT_%s\"",The_GetSuffix ()); if (ICanEdit) { Frm_BeginForm (ActChgDegTyp); @@ -423,7 +423,7 @@ static void Deg_ListDegreesForEdition (const struct DegTyp_DegTypes *DegTypes) HTM_TD_End (); /* Degree WWW */ - HTM_TD_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"LT DAT_%s\"",The_GetSuffix ()); if (ICanEdit) { Frm_BeginForm (ActChgDegWWW); diff --git a/swad_exam_set.c b/swad_exam_set.c index 5cbd0e6a..11e0b889 100644 --- a/swad_exam_set.c +++ b/swad_exam_set.c @@ -217,7 +217,9 @@ static void ExaSet_PutFormNewSet (struct Exa_Exams *Exams, HTM_TD_Begin ("class=\"RM\""); HTM_INPUT_LONG ("NumQstsToPrint",0,UINT_MAX,(long) Set->NumQstsToPrint, HTM_DONT_SUBMIT_ON_CHANGE,false, - "class=\"INPUT_LONG\" required=\"required\""); + "class=\"INPUT_LONG INPUT_%s\"" + " required=\"required\"", + The_GetSuffix ()); HTM_TD_End (); /***** End row *****/ @@ -666,7 +668,9 @@ static void ExaSet_ListOneOrMoreSetsForEdition (struct Exa_Exams *Exams, ExaSet_PutParsOneSet (Exams); HTM_INPUT_LONG ("NumQstsToPrint",0,UINT_MAX,(long) Set.NumQstsToPrint, HTM_SUBMIT_ON_CHANGE,false, - "class=\"INPUT_LONG\" required=\"required\""); + "class=\"INPUT_LONG INPUT_%s\"" + " required=\"required\"", + The_GetSuffix ()); Frm_EndForm (); } else diff --git a/swad_institution.c b/swad_institution.c index 5bf9cca7..fa698d4c 100644 --- a/swad_institution.c +++ b/swad_institution.c @@ -920,7 +920,7 @@ static void Ins_ListInstitutionsForEdition (void) HTM_TR_Begin (NULL); /* Put icon to remove institution */ - HTM_TD_Begin ("class=\"BM\""); + HTM_TD_Begin ("class=\"BT\""); if (!ICanEdit || NumCtrs || // Institution has centers NumUsrsIns || // Institution has users @@ -933,7 +933,7 @@ static void Ins_ListInstitutionsForEdition (void) HTM_TD_End (); /* Institution code */ - HTM_TD_Begin ("class=\"DAT_%s CODE\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"CODE DAT_%s\"",The_GetSuffix ()); HTM_Long (Ins->HieCod); HTM_TD_End (); @@ -951,7 +951,7 @@ static void Ins_ListInstitutionsForEdition (void) ICanEdit); // Put form? /* Institution WWW */ - HTM_TD_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"LT DAT_%s\"",The_GetSuffix ()); if (ICanEdit) { Frm_BeginForm (ActChgInsWWW); diff --git a/swad_name.c b/swad_name.c index e841e189..eb35de81 100644 --- a/swad_name.c +++ b/swad_name.c @@ -114,7 +114,7 @@ void Nam_ExistingShortAndFullNames (const Act_Action_t ActionRename[Nam_NUM_SHRT ShrtOrFull <= Nam_FULL_NAME; ShrtOrFull++) { - HTM_TD_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ()); + HTM_TD_Begin ("class=\"LT DAT_%s\"",The_GetSuffix ()); switch (PutForm) { case Frm_DONT_PUT_FORM: diff --git a/swad_test.c b/swad_test.c index 8d5d331a..b3837eba 100644 --- a/swad_test.c +++ b/swad_test.c @@ -150,17 +150,21 @@ static void Tst_ShowFormRequestTest (struct Qst_Questions *Questions) HTM_TR_Begin (NULL); /* Label */ - Frm_LabelColumn ("RT","NumQst",Txt_Number_of_questions); + Frm_LabelColumn ("REC_C1_BOT RT","NumQst", + Txt_Number_of_questions); /* Data */ - HTM_TD_Begin ("class=\"LT\""); + HTM_TD_Begin ("class=\"REC_C2_BOT LT\""); HTM_INPUT_LONG ("NumQst", (long) TstCfg_GetConfigMin (), (long) TstCfg_GetConfigMax (), (long) TstCfg_GetConfigDef (), HTM_DONT_SUBMIT_ON_CHANGE, TstCfg_GetConfigMin () == TstCfg_GetConfigMax (), - "id=\"NumQst\""); + "id=\"NumQst\"" + " class=\"REC_C2_BOT_INPUT INPUT_%s\"" + " required=\"required\"", + The_GetSuffix ()); HTM_TD_End (); HTM_TR_End ();