Version 22.107.22:May 09, 2023 Changes in edition of courses.

This commit is contained in:
acanas 2023-05-09 09:10:29 +02:00
parent be158b5a56
commit 371ed6d33f
4 changed files with 99 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.
*/
#define Log_PLATFORM_VERSION "SWAD 22.107.21 (2023-05-09)"
#define Log_PLATFORM_VERSION "SWAD 22.107.22 (2023-05-09)"
#define CSS_FILE "swad22.107.17.css"
#define JS_FILE "swad22.49.js"
/*
Version 22.107.22:May 09, 2023 Changes in edition of courses. (337817 lines)
Version 22.107.21:May 09, 2023 Changes in edition of degrees. (337829 lines)
Version 22.107.20:May 09, 2023 Changes in edition of countries. (337842 lines)
Version 22.107.19:May 09, 2023 Changes in edition of institutions. (337858 lines)

View File

@ -1280,22 +1280,31 @@ static bool Crs_CheckIfICanEdit (struct Crs_Course *Crs)
static void Crs_PutFormToCreateCourse (void)
{
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
extern const char *Txt_YEAR_OF_DEGREE[1 + Deg_MAX_YEARS_PER_DEGREE];
extern const char *Txt_Create_course;
extern const char *Txt_Create;
Act_Action_t NextAction = ActUnk;
unsigned Year;
/***** Set action depending on role *****/
/***** Begin form *****/
if (Gbl.Usrs.Me.Role.Logged >= Rol_DEG_ADM)
Frm_BeginForm (ActNewCrs);
NextAction = ActNewCrs;
else if (Gbl.Usrs.Me.Role.Max >= Rol_GST)
Frm_BeginForm (ActReqCrs);
NextAction = ActReqCrs;
else
Err_NoPermissionExit ();
/***** Begin box and table *****/
Box_BoxTableBegin (NULL,NULL,
NULL,NULL,
NULL,Box_NOT_CLOSABLE,2);
/***** Begin fieldset *****/
HTM_FIELDSET_Begin (NULL);
HTM_LEGEND (Txt_Actions[NextAction]);
/***** Begin form *****/
Frm_BeginForm (NextAction);
/***** Begin table *****/
HTM_TABLE_BeginWidePadding (2);
/***** Write heading *****/
Crs_PutHeadCoursesForEdition ();
@ -1375,11 +1384,15 @@ static void Crs_PutFormToCreateCourse (void)
HTM_TR_End ();
/***** End table, send button and end box *****/
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_course);
/***** End table and send button *****/
HTM_TABLE_End ();
Btn_PutButton (Btn_CREATE_BUTTON,Txt_Create);
/***** End form *****/
Frm_EndForm ();
/***** End fieldset *****/
HTM_FIELDSET_End ();
}
/*****************************************************************************/

View File

@ -6618,29 +6618,6 @@ const char *Txt_Create_another_type_of_degree =
"Create another type of degree"; // Çeviri lazim!
#endif
const char *Txt_Create_course =
#if L==1 // ca
"Crear assignatura";
#elif L==2 // de
"Kurs eingeben";
#elif L==3 // en
"Create course";
#elif L==4 // es
"Crear asignatura";
#elif L==5 // fr
"Créer matière";
#elif L==6 // gn
"Crear asignatura"; // Okoteve traducción
#elif L==7 // it
"Crea corso";
#elif L==8 // pl
"Utwórz kursu";
#elif L==9 // pt
"Criar disciplina";
#elif L==10 // tr
"Create course"; // Çeviri lazim!
#endif
const char *Txt_Create_department =
#if L==1 // ca
"Crear departament";

View File

@ -5216,23 +5216,23 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
,
[ActNewCrs] =
#if L==1 // ca
"Create course" // Necessita traducció
"Crear assignatura"
#elif L==2 // de
"Create course" // Need Übersetzung
"Kurs eingeben"
#elif L==3 // en
"Create course"
#elif L==4 // es
"Crear una asignatura"
"Crear asignatura"
#elif L==5 // fr
"Create course" // Besoin de traduction
"Créer matière"
#elif L==6 // gn
"Crear una asignatura" // Okoteve traducción
"Crear asignatura" // Okoteve traducción
#elif L==7 // it
"Create course" // Bisogno di traduzione
"Crea corso"
#elif L==8 // pl
"Create course" // Potrzebujesz tlumaczenie
"Utwórz kursu"
#elif L==9 // pt
"Create course" // Precisa de traduçăo
"Criar disciplina"
#elif L==10 // tr
"Create course" // Çeviri lazim!
#endif