mirror of https://github.com/acanas/swad-core.git
Version 23.63.2: Jan 30, 2024 Responsive design in questions.
This commit is contained in:
parent
22abfd8011
commit
4352fef9d2
|
@ -3472,11 +3472,33 @@ legend {font-size:12pt;}
|
||||||
}
|
}
|
||||||
.PrjCfg_RUBRIC_SEL {max-width:400px;}
|
.PrjCfg_RUBRIC_SEL {max-width:400px;}
|
||||||
|
|
||||||
/********************************** Tests ************************************/
|
/******************************** Questions **********************************/
|
||||||
.TAG_SEL {box-sizing: border-box; width: 390px;}
|
.Qst_TAG_CELL {width: 50%;}
|
||||||
.TAG_TXT {box-sizing: border-box; width: 390px;}
|
.Qst_TAG_SEL {box-sizing: border-box; width: 100%;}
|
||||||
.STEM_TEXTAREA {width: 780px;}
|
.Qst_TAG_TXT {box-sizing: border-box; width: 100%;}
|
||||||
.ANSWER_TEXTAREA {width: 682px;}
|
.Qst_STEM_TXT {box-sizing: border-box; width: 100%;}
|
||||||
|
.Qst_ANS_LEFT_COL
|
||||||
|
{
|
||||||
|
box-sizing:border-box;
|
||||||
|
width:48px;
|
||||||
|
text-align:left;
|
||||||
|
vertical-align:top;
|
||||||
|
}
|
||||||
|
.Qst_ANS_CENTER_COL
|
||||||
|
{
|
||||||
|
box-sizing:border-box;
|
||||||
|
width:48px;
|
||||||
|
text-align:right;
|
||||||
|
vertical-align:top;
|
||||||
|
}
|
||||||
|
.Qst_ANS_RIGHT_COL
|
||||||
|
{
|
||||||
|
box-sizing:border-box;
|
||||||
|
width:100%;
|
||||||
|
text-align:left;
|
||||||
|
vertical-align:top;
|
||||||
|
}
|
||||||
|
.Qst_ANS_TXT {box-sizing: border-box; width: 100%;}
|
||||||
|
|
||||||
.Tst_SUBTITLE
|
.Tst_SUBTITLE
|
||||||
{
|
{
|
||||||
|
@ -3597,29 +3619,6 @@ legend {font-size:12pt;}
|
||||||
width:100%;
|
width:100%;
|
||||||
border-radius:2px;
|
border-radius:2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Tst_EDI_ANS_LEFT_COL
|
|
||||||
{
|
|
||||||
box-sizing:border-box;
|
|
||||||
width:48px;
|
|
||||||
text-align:left;
|
|
||||||
vertical-align:top;
|
|
||||||
}
|
|
||||||
.Tst_EDI_ANS_CENTER_COL
|
|
||||||
{
|
|
||||||
box-sizing:border-box;
|
|
||||||
width:48px;
|
|
||||||
text-align:right;
|
|
||||||
vertical-align:top;
|
|
||||||
}
|
|
||||||
.Tst_EDI_ANS_RIGHT_COL
|
|
||||||
{
|
|
||||||
box-sizing:border-box;
|
|
||||||
width:600px;
|
|
||||||
text-align:left;
|
|
||||||
vertical-align:top;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Tst_FILE_CONTENT
|
.Tst_FILE_CONTENT
|
||||||
{
|
{
|
||||||
padding-bottom:20px;
|
padding-bottom:20px;
|
|
@ -633,10 +633,11 @@ Me sale este error, no s
|
||||||
"can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
|
"can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 23.63.1 (2024-01-30)"
|
#define Log_PLATFORM_VERSION "SWAD 23.63.2 (2024-01-30)"
|
||||||
#define CSS_FILE "swad23.63.1.css"
|
#define CSS_FILE "swad23.63.2.css"
|
||||||
#define JS_FILE "swad23.53.6.js"
|
#define JS_FILE "swad23.53.6.js"
|
||||||
/*
|
/*
|
||||||
|
Version 23.63.2: Jan 30, 2024 Responsive design in questions. (335405 lines)
|
||||||
Version 23.63.1: Jan 30, 2024 Responsive design in questions. (335400 lines)
|
Version 23.63.1: Jan 30, 2024 Responsive design in questions. (335400 lines)
|
||||||
Version 23.63: Jan 29, 2024 Responsive design in tables.
|
Version 23.63: Jan 29, 2024 Responsive design in tables.
|
||||||
Changes in program layout. (335404 lines)
|
Changes in program layout. (335404 lines)
|
||||||
|
|
|
@ -1882,7 +1882,7 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
/* Tags */
|
/* Tags */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
|
|
||||||
HTM_TABLE_BeginPadding (2); // Table for tags
|
HTM_TABLE_BeginWidePadding (2); // Table for tags
|
||||||
|
|
||||||
for (IndTag = 0;
|
for (IndTag = 0;
|
||||||
IndTag < Tag_MAX_TAGS_PER_QUESTION;
|
IndTag < Tag_MAX_TAGS_PER_QUESTION;
|
||||||
|
@ -1891,12 +1891,12 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/***** Write the tags already existing in a selector *****/
|
/***** Write the tags already existing in a selector *****/
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"Qst_TAG_CELL LM\"");
|
||||||
if (asprintf (&FuncOnChange,"changeTxtTag('%u');",IndTag) < 0)
|
if (asprintf (&FuncOnChange,"changeTxtTag('%u');",IndTag) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,FuncOnChange,
|
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,FuncOnChange,
|
||||||
"id=\"SelTag%u\" name=\"SelTag%u\""
|
"id=\"SelTag%u\" name=\"SelTag%u\""
|
||||||
" class=\"TAG_SEL INPUT_%s\"",
|
" class=\"Qst_TAG_SEL INPUT_%s\"",
|
||||||
IndTag,IndTag,
|
IndTag,IndTag,
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
free (FuncOnChange);
|
free (FuncOnChange);
|
||||||
|
@ -1942,11 +1942,13 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** Input of a new tag *****/
|
/***** Input of a new tag *****/
|
||||||
HTM_TD_Begin ("class=\"RM\"");
|
HTM_TD_Begin ("class=\"Qst_TAG_CELL RM\"");
|
||||||
snprintf (StrTagTxt,sizeof (StrTagTxt),"TagTxt%u",IndTag);
|
snprintf (StrTagTxt,sizeof (StrTagTxt),"TagTxt%u",IndTag);
|
||||||
HTM_INPUT_TEXT (StrTagTxt,Tag_MAX_CHARS_TAG,Question->Tags.Txt[IndTag],
|
HTM_INPUT_TEXT (StrTagTxt,Tag_MAX_CHARS_TAG,
|
||||||
|
Question->Tags.Txt[IndTag],
|
||||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||||
"id=\"%s\" class=\"TAG_TXT INPUT_%s\""
|
"id=\"%s\""
|
||||||
|
" class=\"Qst_TAG_TXT INPUT_%s\""
|
||||||
" onchange=\"changeSelTag('%u')\"",
|
" onchange=\"changeSelTag('%u')\"",
|
||||||
StrTagTxt,
|
StrTagTxt,
|
||||||
The_GetSuffix (),
|
The_GetSuffix (),
|
||||||
|
@ -1972,7 +1974,7 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
/* Data */
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TEXTAREA_Begin ("id=\"Stem\" name=\"Stem\" rows=\"5\""
|
HTM_TEXTAREA_Begin ("id=\"Stem\" name=\"Stem\" rows=\"5\""
|
||||||
" class=\"STEM_TEXTAREA INPUT_%s\""
|
" class=\"Qst_STEM_TXT INPUT_%s\""
|
||||||
" required=\"required\"",
|
" required=\"required\"",
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
HTM_Txt (Question->Stem);
|
HTM_Txt (Question->Stem);
|
||||||
|
@ -1987,7 +1989,7 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
HTM_TxtF ("%s (%s):",Txt_Feedback,Txt_optional);
|
HTM_TxtF ("%s (%s):",Txt_Feedback,Txt_optional);
|
||||||
HTM_BR ();
|
HTM_BR ();
|
||||||
HTM_TEXTAREA_Begin ("name=\"Feedback\" rows=\"2\""
|
HTM_TEXTAREA_Begin ("name=\"Feedback\" rows=\"2\""
|
||||||
" class=\"STEM_TEXTAREA INPUT_%s\"",
|
" class=\"Qst_STEM_TXT INPUT_%s\"",
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
if (Question->Feedback[0])
|
if (Question->Feedback[0])
|
||||||
HTM_Txt (Question->Feedback);
|
HTM_Txt (Question->Feedback);
|
||||||
|
@ -2086,7 +2088,7 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
HTM_TD_Empty (1);
|
HTM_TD_Empty (1);
|
||||||
HTM_TD_Begin ("class=\"LT\"");
|
HTM_TD_Begin ("class=\"LT\"");
|
||||||
HTM_TABLE_BeginPadding (2); // Table with choice answers
|
HTM_TABLE_BeginWidePadding (2); // Table with choice answers
|
||||||
|
|
||||||
OptionsDisabled = Question->Answer.Type != Qst_ANS_UNIQUE_CHOICE &&
|
OptionsDisabled = Question->Answer.Type != Qst_ANS_UNIQUE_CHOICE &&
|
||||||
Question->Answer.Type != Qst_ANS_MULTIPLE_CHOICE &&
|
Question->Answer.Type != Qst_ANS_MULTIPLE_CHOICE &&
|
||||||
|
@ -2106,7 +2108,7 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/***** Left column: selectors *****/
|
/***** Left column: selectors *****/
|
||||||
HTM_TD_Begin ("class=\"Tst_EDI_ANS_LEFT_COL %s\"",
|
HTM_TD_Begin ("class=\"Qst_ANS_LEFT_COL %s\"",
|
||||||
The_GetColorRows ());
|
The_GetColorRows ());
|
||||||
|
|
||||||
/* Radio selector for unique choice answers */
|
/* Radio selector for unique choice answers */
|
||||||
|
@ -2132,7 +2134,7 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** Center column: letter of the answer and expand / contract icon *****/
|
/***** Center column: letter of the answer and expand / contract icon *****/
|
||||||
HTM_TD_Begin ("class=\"FORM_IN_%s Tst_EDI_ANS_CENTER_COL %s\"",
|
HTM_TD_Begin ("class=\"FORM_IN_%s Qst_ANS_CENTER_COL %s\"",
|
||||||
The_GetSuffix (),
|
The_GetSuffix (),
|
||||||
The_GetColorRows ());
|
The_GetColorRows ());
|
||||||
HTM_TxtF ("%c)",'a' + (char) NumOpt);
|
HTM_TxtF ("%c)",'a' + (char) NumOpt);
|
||||||
|
@ -2166,7 +2168,7 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** Right column: content of the answer *****/
|
/***** Right column: content of the answer *****/
|
||||||
HTM_TD_Begin ("class=\"Tst_EDI_ANS_RIGHT_COL %s\"",
|
HTM_TD_Begin ("class=\"Qst_ANS_RIGHT_COL %s\"",
|
||||||
The_GetColorRows ());
|
The_GetColorRows ());
|
||||||
HTM_DIV_Begin ("id=\"ans_%u\"%s",
|
HTM_DIV_Begin ("id=\"ans_%u\"%s",
|
||||||
NumOpt,
|
NumOpt,
|
||||||
|
@ -2175,7 +2177,8 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
|
|
||||||
/* Answer text */
|
/* Answer text */
|
||||||
HTM_TEXTAREA_Begin ("name=\"AnsStr%u\" rows=\"5\""
|
HTM_TEXTAREA_Begin ("name=\"AnsStr%u\" rows=\"5\""
|
||||||
" class=\"ANSWER_TEXTAREA INPUT_%s\"%s",
|
" class=\"Qst_ANS_TXT INPUT_%s\""
|
||||||
|
"%s",
|
||||||
NumOpt,
|
NumOpt,
|
||||||
The_GetSuffix (),
|
The_GetSuffix (),
|
||||||
OptionsDisabled ? " disabled=\"disabled\"" :
|
OptionsDisabled ? " disabled=\"disabled\"" :
|
||||||
|
@ -2195,7 +2198,8 @@ void Qst_PutFormEditOneQst (struct Qst_Question *Question)
|
||||||
HTM_TxtF ("%s (%s):",Txt_Feedback,Txt_optional);
|
HTM_TxtF ("%s (%s):",Txt_Feedback,Txt_optional);
|
||||||
HTM_BR ();
|
HTM_BR ();
|
||||||
HTM_TEXTAREA_Begin ("name=\"FbStr%u\" rows=\"2\""
|
HTM_TEXTAREA_Begin ("name=\"FbStr%u\" rows=\"2\""
|
||||||
" class=\"ANSWER_TEXTAREA INPUT_%s\"%s",
|
" class=\"Qst_ANS_TXT INPUT_%s\""
|
||||||
|
"%s",
|
||||||
NumOpt,
|
NumOpt,
|
||||||
The_GetSuffix (),
|
The_GetSuffix (),
|
||||||
OptionsDisabled ? " disabled=\"disabled\"" :
|
OptionsDisabled ? " disabled=\"disabled\"" :
|
||||||
|
|
Loading…
Reference in New Issue