From cd79f7d45c8917b5a921b35e41286843fee1c252 Mon Sep 17 00:00:00 2001 From: acanas Date: Wed, 10 May 2023 01:44:18 +0200 Subject: [PATCH] Version 22.107.35:May 10, 2023 Changes in edition of course program. --- swad_changelog.h | 3 ++- swad_help_URL.c | 23 ----------------------- swad_program.c | 36 +++++++++++++++++++++--------------- swad_text.c | 23 ----------------------- swad_text_action.c | 20 ++++++++++---------- 5 files changed, 33 insertions(+), 72 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index d4d9e87c..3e99ac6c 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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.107.34 (2023-05-10)" +#define Log_PLATFORM_VERSION "SWAD 22.107.35 (2023-05-10)" #define CSS_FILE "swad22.107.17.css" #define JS_FILE "swad22.49.js" /* + Version 22.107.35:May 10, 2023 Changes in edition of course program. (337543 lines) Version 22.107.34:May 10, 2023 Changes in edition of groups. (337543 lines) Version 22.107.33:May 09, 2023 Changes in edition of degree types. (337591 lines) Version 22.107.32:May 09, 2023 Changes in edition of rooms. (337639 lines) diff --git a/swad_help_URL.c b/swad_help_URL.c index 2e97a36c..2c1e8835 100644 --- a/swad_help_URL.c +++ b/swad_help_URL.c @@ -1032,29 +1032,6 @@ const char *Hlp_COURSE_Program = "COURSE.Program.en"; #endif -const char *Hlp_COURSE_Program_new_item = -#if L==1 - "COURSE.Program.es#nuevo-item"; -#elif L==2 - "COURSE.Program.en#new-item"; -#elif L==3 - "COURSE.Program.en#new-item"; -#elif L==4 - "COURSE.Program.es#nuevo-item"; -#elif L==5 - "COURSE.Program.en#new-item"; -#elif L==6 - "COURSE.Program.es#nuevo-item"; -#elif L==7 - "COURSE.Program.en#new-item"; -#elif L==8 - "COURSE.Program.en#new-item"; -#elif L==9 - "COURSE.Program.en#new-item"; -#elif L==10 // tr - "COURSE.Program.en#new-item"; -#endif - const char *Hlp_COURSE_Program_edit_item = #if L==1 "COURSE.Program.es#editar-item"; diff --git a/swad_program.c b/swad_program.c index 852e99a8..8e30a533 100644 --- a/swad_program.c +++ b/swad_program.c @@ -1932,8 +1932,8 @@ void Prg_ReqCreateItem (void) static void Prg_ShowFormToCreateItem (long ParentItmCod) { - extern const char *Hlp_COURSE_Program_new_item; - extern const char *Txt_Create_item; + extern const char *Txt_Actions[ActLst_NUM_ACTIONS]; + extern const char *Txt_Create; struct Prg_Item ParentItem; // Parent item struct Prg_Item Item; static const Dat_SetHMS SetHMS[Dat_NUM_START_END_TIME] = @@ -1955,23 +1955,29 @@ static void Prg_ShowFormToCreateItem (long ParentItmCod) /***** Show pending alerts */ Ale_ShowAlerts (NULL); - /***** Begin form *****/ - Frm_BeginFormAnchor (ActNewPrgItm,Prg_HIGHLIGHTED_SECTION_ID); - ParCod_PutPar (ParCod_Itm,ParentItem.Hierarchy.ItmCod); + /***** Begin fieldset *****/ + HTM_FIELDSET_Begin (NULL); + HTM_LEGEND (Txt_Actions[ActNewPrgItm]); - /***** Begin box and table *****/ - Box_BoxTableBegin ("100%",NULL, - NULL,NULL, - Hlp_COURSE_Program_new_item,Box_NOT_CLOSABLE,2); + /***** Begin form *****/ + Frm_BeginFormAnchor (ActNewPrgItm,Prg_HIGHLIGHTED_SECTION_ID); + ParCod_PutPar (ParCod_Itm,ParentItem.Hierarchy.ItmCod); - /***** Show form *****/ - Prg_ShowFormItem (&Item,SetHMS,NULL); + /***** Begin table *****/ + HTM_TABLE_BeginWidePadding (2); - /***** End table, send button and end box *****/ - Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_item); + /***** Show form *****/ + Prg_ShowFormItem (&Item,SetHMS,NULL); - /***** End form *****/ - Frm_EndForm (); + /***** End table and send button *****/ + HTM_TABLE_End (); + Btn_PutButton (Btn_CREATE_BUTTON,Txt_Create); + + /***** End form *****/ + Frm_EndForm (); + + /***** End fieldset *****/ + HTM_FIELDSET_End (); } /*****************************************************************************/ diff --git a/swad_text.c b/swad_text.c index 133c812d..89228a45 100644 --- a/swad_text.c +++ b/swad_text.c @@ -6687,29 +6687,6 @@ const char *Txt_Create_folder = "Create folder"; // Çeviri lazim! #endif -const char *Txt_Create_item = -#if L==1 // ca - "Crear ítem"; -#elif L==2 // de - "Artikel eingeben"; -#elif L==3 // en - "Create item"; -#elif L==4 // es - "Crear ítem"; -#elif L==5 // fr - "Créer article"; -#elif L==6 // gn - "Crear ítem"; // Okoteve traducción -#elif L==7 // it - "Crea articolo"; -#elif L==8 // pl - "Utwórz przedmiot"; -#elif L==9 // pt - "Criar item"; -#elif L==10 // tr - "Create item"; // Çeviri lazim! -#endif - const char *Txt_Create_link = #if L==1 // ca "Crear enllaç"; diff --git a/swad_text_action.c b/swad_text_action.c index 93e0fe09..c1c3baca 100644 --- a/swad_text_action.c +++ b/swad_text_action.c @@ -5860,25 +5860,25 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] = , [ActNewPrgItm] = #if L==1 // ca - "Create new program item" // Necessita traducció + "Crear ítem" #elif L==2 // de - "Create new program item" // Need Übersetzung + "Artikel eingeben" #elif L==3 // en - "Create new program item" + "Create item" #elif L==4 // es - "Crear nuevo ítem del programa" + "Crear ítem" #elif L==5 // fr - "Create new program item" // Besoin de traduction + "Créer article" #elif L==6 // gn - "Crear nuevo ítem del programa" // Okoteve traducción + "Crear ítem" // Okoteve traducción #elif L==7 // it - "Create new program item" // Bisogno di traduzione + "Crea articolo" #elif L==8 // pl - "Create new program item" // Potrzebujesz tlumaczenie + "Utwórz przedmiot" #elif L==9 // pt - "Create new program item" // Precisa de tradução + "Criar item" #elif L==10 // tr - "Create new program item" // Çeviri lazim! + "Create item" // Çeviri lazim! #endif , [ActReqRemPrgItm] =