Version 22.107.31:May 09, 2023 Changes in edition of record fields.

This commit is contained in:
acanas 2023-05-09 18:42:01 +02:00
parent 359e61ffc2
commit 583f12b094
4 changed files with 69 additions and 108 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.30 (2023-05-09)" #define Log_PLATFORM_VERSION "SWAD 22.107.31 (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.31:May 09, 2023 Changes in edition of record fields. (? 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)
Version 22.107.29:May 09, 2023 Changes in edition of places. (337713 lines) Version 22.107.29:May 09, 2023 Changes in edition of places. (337713 lines)
Version 22.107.28:May 09, 2023 Changes in edition of notices. (337707 lines) Version 22.107.28:May 09, 2023 Changes in edition of notices. (337707 lines)

View File

@ -352,76 +352,82 @@ static void Rec_ListFieldsRecordsForEdition (void)
void Rec_ShowFormCreateRecordField (void) void Rec_ShowFormCreateRecordField (void)
{ {
extern const char *Hlp_USERS_Students_course_record_card; extern const char *Hlp_USERS_Students_course_record_card;
extern const char *Txt_Record_field; extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
extern const char *Txt_RECORD_FIELD_VISIBILITY_MENU[Rec_NUM_TYPES_VISIBILITY]; extern const char *Txt_RECORD_FIELD_VISIBILITY_MENU[Rec_NUM_TYPES_VISIBILITY];
extern const char *Txt_Create_record_field; extern const char *Txt_Create;
Rec_VisibilityRecordFields_t Vis; Rec_VisibilityRecordFields_t Vis;
unsigned VisUnsigned; unsigned VisUnsigned;
char StrNumLines[Cns_MAX_DECIMAL_DIGITS_UINT + 1]; char StrNumLines[Cns_MAX_DECIMAL_DIGITS_UINT + 1];
/***** Begin form *****/ /***** Begin fieldset *****/
Frm_BeginForm (ActNewFie); HTM_FIELDSET_Begin (NULL);
HTM_LEGEND (Txt_Actions[ActNewFie]);
/***** Begin box and table *****/ /***** Begin form *****/
Box_BoxTableBegin (NULL,Txt_Record_field, Frm_BeginForm (ActNewFie);
NULL,NULL,
Hlp_USERS_Students_course_record_card,Box_NOT_CLOSABLE,2);
/***** Write heading *****/ /***** Begin table *****/
Rec_WriteHeadingRecordFields (); HTM_TABLE_BeginWidePadding (2);
HTM_TR_Begin (NULL); /***** Write heading *****/
Rec_WriteHeadingRecordFields ();
/***** Write disabled icon to remove the field *****/ HTM_TR_Begin (NULL);
HTM_TD_Begin ("class=\"BM\"");
Ico_PutIconRemovalNotAllowed ();
HTM_TD_End ();
/***** Field name *****/ /***** Write disabled icon to remove the field *****/
HTM_TD_Begin ("class=\"LM\""); HTM_TD_Begin ("class=\"BM\"");
HTM_INPUT_TEXT ("FieldName",Rec_MAX_CHARS_NAME_FIELD,Gbl.Crs.Records.Field.Name, Ico_PutIconRemovalNotAllowed ();
HTM_DONT_SUBMIT_ON_CHANGE, HTM_TD_End ();
"class=\"REC_FIELDNAME INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Number of lines in form ******/ /***** Field name *****/
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"LM\"");
snprintf (StrNumLines,sizeof (StrNumLines),"%u", HTM_INPUT_TEXT ("FieldName",Rec_MAX_CHARS_NAME_FIELD,Gbl.Crs.Records.Field.Name,
Gbl.Crs.Records.Field.NumLines); HTM_DONT_SUBMIT_ON_CHANGE,
HTM_INPUT_TEXT ("NumLines",Cns_MAX_DECIMAL_DIGITS_UINT,StrNumLines, "class=\"REC_FIELDNAME INPUT_%s\""
HTM_DONT_SUBMIT_ON_CHANGE, " required=\"required\"",
"size=\"2\" class=\"INPUT_%s\"" The_GetSuffix ());
" required=\"required\"", HTM_TD_End ();
The_GetSuffix ());
HTM_TD_End ();
/***** Visibility to students *****/ /***** Number of lines in form ******/
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"CM\"");
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL, snprintf (StrNumLines,sizeof (StrNumLines),"%u",
"name=\"Visibility\" class=\"INPUT_%s\"", Gbl.Crs.Records.Field.NumLines);
The_GetSuffix ()); HTM_INPUT_TEXT ("NumLines",Cns_MAX_DECIMAL_DIGITS_UINT,StrNumLines,
for (Vis = (Rec_VisibilityRecordFields_t) 0; HTM_DONT_SUBMIT_ON_CHANGE,
Vis <= (Rec_VisibilityRecordFields_t) (Rec_NUM_TYPES_VISIBILITY - 1); "size=\"2\" class=\"INPUT_%s\""
Vis++) " required=\"required\"",
{ The_GetSuffix ());
VisUnsigned = (unsigned) Vis; HTM_TD_End ();
HTM_OPTION (HTM_Type_UNSIGNED,&VisUnsigned,
Vis == Gbl.Crs.Records.Field.Visibility, // Selected?
HTM_OPTION_ENABLED,
"%s",Txt_RECORD_FIELD_VISIBILITY_MENU[Vis]);
}
HTM_SELECT_End ();
HTM_TD_End ();
HTM_TR_End (); /***** Visibility to students *****/
HTM_TD_Begin ("class=\"CM\"");
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL,
"name=\"Visibility\" class=\"INPUT_%s\"",
The_GetSuffix ());
for (Vis = (Rec_VisibilityRecordFields_t) 0;
Vis <= (Rec_VisibilityRecordFields_t) (Rec_NUM_TYPES_VISIBILITY - 1);
Vis++)
{
VisUnsigned = (unsigned) Vis;
HTM_OPTION (HTM_Type_UNSIGNED,&VisUnsigned,
Vis == Gbl.Crs.Records.Field.Visibility, // Selected?
HTM_OPTION_ENABLED,
"%s",Txt_RECORD_FIELD_VISIBILITY_MENU[Vis]);
}
HTM_SELECT_End ();
HTM_TD_End ();
/***** End table, send button and end box *****/ HTM_TR_End ();
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_record_field);
/***** 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

@ -6848,29 +6848,6 @@ const char *Txt_Create_question =
"Create question"; // Çeviri lazim! "Create question"; // Çeviri lazim!
#endif #endif
const char *Txt_Create_record_field =
#if L==1 // ca
"Crear camp de fitxa";
#elif L==2 // de
"Datenfeld erstellen";
#elif L==3 // en
"Create record field";
#elif L==4 // es
"Crear campo de ficha";
#elif L==5 // fr
"Cr&eacute;er champ de carte";
#elif L==6 // gn
"Crear campo de ficha"; // Okoteve traducción
#elif L==7 // it
"Crea campo di scheda";
#elif L==8 // pl
"Utw&oacute;rz rekord pola";
#elif L==9 // pt
"Criar campo de cart&atilde;o";
#elif L==10 // tr
"Create record field"; // Çeviri lazim!
#endif
const char *Txt_Create_room = const char *Txt_Create_room =
#if L==1 // ca #if L==1 // ca
"Crear sala"; "Crear sala";
@ -33081,29 +33058,6 @@ const char *Txt_record_cards_per_page =
"record cards per page"; // Çeviri lazim! "record cards per page"; // Çeviri lazim!
#endif #endif
const char *Txt_Record_field =
#if L==1 // ca
"Camp de fitxa";
#elif L==2 // de
"Datenfeld";
#elif L==3 // en
"Record field";
#elif L==4 // es
"Campo de ficha";
#elif L==5 // fr
"Champ de carte";
#elif L==6 // gn
"Campo de ficha"; // Okoteve traducción
#elif L==7 // it
"Campo di scheda";
#elif L==8 // pl
"Rekord pola";
#elif L==9 // pt
"Campo de cart&atilde;o";
#elif L==10 // tr
"Kay&inodot;t alan&inodot;";
#endif
const char *Txt_Record_field_X_removed = // Warning: it is very important to include %s in the following sentences const char *Txt_Record_field_X_removed = // Warning: it is very important to include %s in the following sentences
#if L==1 // ca #if L==1 // ca
"Camp de fitxa <strong>%s</strong> eliminat."; "Camp de fitxa <strong>%s</strong> eliminat.";

View File

@ -25640,23 +25640,23 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
, ,
[ActNewFie] = [ActNewFie] =
#if L==1 // ca #if L==1 // ca
"Create record field" // Necessita traducció "Crear camp de fitxa"
#elif L==2 // de #elif L==2 // de
"Create record field" // Need Übersetzung "Datenfeld erstellen"
#elif L==3 // en #elif L==3 // en
"Create record field" "Create record field"
#elif L==4 // es #elif L==4 // es
"Crear campo de ficha" "Crear campo de ficha"
#elif L==5 // fr #elif L==5 // fr
"Create record field" // Besoin de traduction "Cr&eacute;er champ de carte"
#elif L==6 // gn #elif L==6 // gn
"Crear campo de ficha" // Okoteve traducción "Crear campo de ficha" // Okoteve traducción
#elif L==7 // it #elif L==7 // it
"Create record field" // Bisogno di traduzione "Crea campo di scheda"
#elif L==8 // pl #elif L==8 // pl
"Create record field" // Potrzebujesz tlumaczenie "Utw&oacute;rz rekord pola"
#elif L==9 // pt #elif L==9 // pt
"Create record field" // Precisa de traduçăo "Criar campo de cart&atilde;o"
#elif L==10 // tr #elif L==10 // tr
"Create record field" // Çeviri lazim! "Create record field" // Çeviri lazim!
#endif #endif