mirror of https://github.com/acanas/swad-core.git
Version 22.107.18:May 09, 2023 Changes in edition of centers.
This commit is contained in:
parent
41a82f1b40
commit
fd7fcb0ebf
|
@ -3067,7 +3067,7 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
|
||||||
/***************** Text decoration of fieldset and legend ********************/
|
/***************** Text decoration of fieldset and legend ********************/
|
||||||
fieldset
|
fieldset
|
||||||
{
|
{
|
||||||
margin:2px 0;
|
margin:2px 0 4px 0;
|
||||||
padding:2px;
|
padding:2px;
|
||||||
border-style:solid;
|
border-style:solid;
|
||||||
border-width:1px;
|
border-width:1px;
|
||||||
|
|
191
swad_center.c
191
swad_center.c
|
@ -1237,122 +1237,133 @@ static void Ctr_ShowAlertAndButtonToGoToCtr (void)
|
||||||
|
|
||||||
static void Ctr_PutFormToCreateCenter (const struct Plc_Places *Places)
|
static void Ctr_PutFormToCreateCenter (const struct Plc_Places *Places)
|
||||||
{
|
{
|
||||||
|
extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
|
||||||
extern const char *Txt_Another_place;
|
extern const char *Txt_Another_place;
|
||||||
extern const char *Txt_Create_center;
|
extern const char *Txt_Create;
|
||||||
|
Act_Action_t NextAction = ActUnk;
|
||||||
unsigned NumPlc;
|
unsigned NumPlc;
|
||||||
const struct Plc_Place *PlcInLst;
|
const struct Plc_Place *PlcInLst;
|
||||||
|
|
||||||
/***** Begin form *****/
|
/***** Set action depending on role *****/
|
||||||
if (Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM)
|
if (Gbl.Usrs.Me.Role.Logged >= Rol_INS_ADM)
|
||||||
Frm_BeginForm (ActNewCtr);
|
NextAction = ActNewCtr;
|
||||||
else if (Gbl.Usrs.Me.Role.Max >= Rol_GST)
|
else if (Gbl.Usrs.Me.Role.Max >= Rol_GST)
|
||||||
Frm_BeginForm (ActReqCtr);
|
NextAction = ActReqCtr;
|
||||||
else
|
else
|
||||||
Err_NoPermissionExit ();
|
Err_NoPermissionExit ();
|
||||||
|
|
||||||
/***** Begin box and table *****/
|
/***** Begin fieldset *****/
|
||||||
Box_BoxTableBegin (NULL,NULL,
|
HTM_FIELDSET_Begin (NULL);
|
||||||
NULL,NULL,
|
HTM_LEGEND (Txt_Actions[NextAction]);
|
||||||
NULL,Box_NOT_CLOSABLE,2);
|
|
||||||
|
|
||||||
/***** Write heading *****/
|
/***** Begin form *****/
|
||||||
Ctr_PutHeadCentersForEdition ();
|
Frm_BeginForm (NextAction);
|
||||||
|
|
||||||
HTM_TR_Begin (NULL);
|
/***** Begin table *****/
|
||||||
|
HTM_TABLE_BeginWidePadding (2);
|
||||||
|
|
||||||
/***** Column to remove center, disabled here *****/
|
/***** Write heading *****/
|
||||||
HTM_TD_Begin ("class=\"BM\"");
|
Ctr_PutHeadCentersForEdition ();
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
/***** Center code *****/
|
HTM_TR_Begin (NULL);
|
||||||
HTM_TD_Begin ("class=\"CODE\"");
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
/***** Center logo *****/
|
/***** Column to remove center, disabled here *****/
|
||||||
HTM_TD_Begin ("title=\"%s\" class=\"HIE_LOGO\"",Ctr_EditingCtr->FullName);
|
HTM_TD_Begin ("class=\"BM\"");
|
||||||
Lgo_DrawLogo (HieLvl_CTR,-1L,"",20,NULL,true);
|
HTM_TD_End ();
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
/***** Place *****/
|
/***** Center code *****/
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"CODE\"");
|
||||||
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL,
|
HTM_TD_End ();
|
||||||
"name=\"PlcCod\" class=\"PLC_SEL INPUT_%s\"",
|
|
||||||
The_GetSuffix ());
|
|
||||||
HTM_OPTION (HTM_Type_STRING,"0",
|
|
||||||
Ctr_EditingCtr->PlcCod == 0, // Selected?
|
|
||||||
HTM_OPTION_ENABLED,
|
|
||||||
"%s",Txt_Another_place);
|
|
||||||
for (NumPlc = 0;
|
|
||||||
NumPlc < Places->Num;
|
|
||||||
NumPlc++)
|
|
||||||
{
|
|
||||||
PlcInLst = &Places->Lst[NumPlc];
|
|
||||||
HTM_OPTION (HTM_Type_LONG,&PlcInLst->PlcCod,
|
|
||||||
PlcInLst->PlcCod == Ctr_EditingCtr->PlcCod, // Selected?
|
|
||||||
HTM_OPTION_ENABLED,
|
|
||||||
"%s",PlcInLst->ShrtName);
|
|
||||||
}
|
|
||||||
HTM_SELECT_End ();
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
/***** Center short name *****/
|
/***** Center logo *****/
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("title=\"%s\" class=\"HIE_LOGO\"",Ctr_EditingCtr->FullName);
|
||||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Ctr_EditingCtr->ShrtName,
|
Lgo_DrawLogo (HieLvl_CTR,-1L,"",20,NULL,true);
|
||||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
HTM_TD_End ();
|
||||||
"class=\"INPUT_SHORT_NAME INPUT_%s\""
|
|
||||||
" required=\"required\"",
|
|
||||||
The_GetSuffix ());
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
/***** Center full name *****/
|
/***** Place *****/
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Ctr_EditingCtr->FullName,
|
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,NULL,
|
||||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
"name=\"PlcCod\" class=\"PLC_SEL INPUT_%s\"",
|
||||||
"class=\"INPUT_FULL_NAME INPUT_%s\""
|
The_GetSuffix ());
|
||||||
" required=\"required\"",
|
HTM_OPTION (HTM_Type_STRING,"0",
|
||||||
The_GetSuffix ());
|
Ctr_EditingCtr->PlcCod == 0, // Selected?
|
||||||
HTM_TD_End ();
|
HTM_OPTION_ENABLED,
|
||||||
|
"%s",Txt_Another_place);
|
||||||
|
for (NumPlc = 0;
|
||||||
|
NumPlc < Places->Num;
|
||||||
|
NumPlc++)
|
||||||
|
{
|
||||||
|
PlcInLst = &Places->Lst[NumPlc];
|
||||||
|
HTM_OPTION (HTM_Type_LONG,&PlcInLst->PlcCod,
|
||||||
|
PlcInLst->PlcCod == Ctr_EditingCtr->PlcCod, // Selected?
|
||||||
|
HTM_OPTION_ENABLED,
|
||||||
|
"%s",PlcInLst->ShrtName);
|
||||||
|
}
|
||||||
|
HTM_SELECT_End ();
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** Center WWW *****/
|
/***** Center short name *****/
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
HTM_INPUT_URL ("WWW",Ctr_EditingCtr->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
|
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Ctr_EditingCtr->ShrtName,
|
||||||
"class=\"INPUT_WWW_NARROW INPUT_%s\""
|
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||||
" required=\"required\"",
|
"class=\"INPUT_SHORT_NAME INPUT_%s\""
|
||||||
The_GetSuffix ());
|
" required=\"required\"",
|
||||||
HTM_TD_End ();
|
The_GetSuffix ());
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** Number of users who claim to belong to this center *****/
|
/***** Center full name *****/
|
||||||
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ());
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
HTM_Unsigned (0);
|
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Ctr_EditingCtr->FullName,
|
||||||
HTM_TD_End ();
|
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||||
|
"class=\"INPUT_FULL_NAME INPUT_%s\""
|
||||||
|
" required=\"required\"",
|
||||||
|
The_GetSuffix ());
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** Number of degrees *****/
|
/***** Center WWW *****/
|
||||||
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ());
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
HTM_Unsigned (0);
|
HTM_INPUT_URL ("WWW",Ctr_EditingCtr->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
|
||||||
HTM_TD_End ();
|
"class=\"INPUT_WWW_NARROW INPUT_%s\""
|
||||||
|
" required=\"required\"",
|
||||||
|
The_GetSuffix ());
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** Number of users in courses of this center *****/
|
/***** Number of users who claim to belong to this center *****/
|
||||||
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ());
|
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ());
|
||||||
HTM_Unsigned (0);
|
HTM_Unsigned (0);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** Center requester *****/
|
/***** Number of degrees *****/
|
||||||
HTM_TD_Begin ("class=\"DAT_%s INPUT_REQUESTER LT\"",
|
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ());
|
||||||
The_GetSuffix ());
|
HTM_Unsigned (0);
|
||||||
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,true);
|
HTM_TD_End ();
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
/***** Center status *****/
|
/***** Number of users in courses of this center *****/
|
||||||
HTM_TD_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ());
|
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ());
|
||||||
HTM_TD_End ();
|
HTM_Unsigned (0);
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TR_End ();
|
/***** Center requester *****/
|
||||||
|
HTM_TD_Begin ("class=\"DAT_%s INPUT_REQUESTER LT\"",
|
||||||
|
The_GetSuffix ());
|
||||||
|
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,true);
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** End table, send button and end box *****/
|
/***** Center status *****/
|
||||||
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_center);
|
HTM_TD_Begin ("class=\"LM DAT_%s\"",The_GetSuffix ());
|
||||||
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** End form *****/
|
HTM_TR_End ();
|
||||||
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 ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -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.17 (2023-05-09)"
|
#define Log_PLATFORM_VERSION "SWAD 22.107.18 (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.18:May 09, 2023 Changes in edition of centers. (337871 lines)
|
||||||
Version 22.107.17:May 09, 2023 Changes in edition of buildings. (337884 lines)
|
Version 22.107.17:May 09, 2023 Changes in edition of buildings. (337884 lines)
|
||||||
Version 22.107.16:May 08, 2023 Changes in edition of banners. (337899 lines)
|
Version 22.107.16:May 08, 2023 Changes in edition of banners. (337899 lines)
|
||||||
Version 22.107.15:May 08, 2023 Changes in edition of assignments. (337915 lines)
|
Version 22.107.15:May 08, 2023 Changes in edition of assignments. (337915 lines)
|
||||||
|
|
23
swad_text.c
23
swad_text.c
|
@ -6618,29 +6618,6 @@ const char *Txt_Create_another_type_of_degree =
|
||||||
"Create another type of degree"; // Çeviri lazim!
|
"Create another type of degree"; // Çeviri lazim!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *Txt_Create_center =
|
|
||||||
#if L==1 // ca
|
|
||||||
"Crear center";
|
|
||||||
#elif L==2 // de
|
|
||||||
"Lehrinstitut eingeben";
|
|
||||||
#elif L==3 // en
|
|
||||||
"Create center";
|
|
||||||
#elif L==4 // es
|
|
||||||
"Crear centro";
|
|
||||||
#elif L==5 // fr
|
|
||||||
"Créer center";
|
|
||||||
#elif L==6 // gn
|
|
||||||
"Crear centro"; // Okoteve traducción
|
|
||||||
#elif L==7 // it
|
|
||||||
"Crea centro";
|
|
||||||
#elif L==8 // pl
|
|
||||||
"Utwórz centrum";
|
|
||||||
#elif L==9 // pt
|
|
||||||
"Criar centro";
|
|
||||||
#elif L==10 // tr
|
|
||||||
"Create center"; // Çeviri lazim!
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const char *Txt_Create_country =
|
const char *Txt_Create_country =
|
||||||
#if L==1 // ca
|
#if L==1 // ca
|
||||||
"Crear país";
|
"Crear país";
|
||||||
|
|
|
@ -3236,25 +3236,25 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
|
||||||
,
|
,
|
||||||
[ActNewCtr] =
|
[ActNewCtr] =
|
||||||
#if L==1 // ca
|
#if L==1 // ca
|
||||||
"Create center" // Necessita traducció
|
"Crear center"
|
||||||
#elif L==2 // de
|
#elif L==2 // de
|
||||||
"Create center" // Need Übersetzung
|
"Lehrinstitut eingeben"
|
||||||
#elif L==3 // en
|
#elif L==3 // en
|
||||||
"Create center"
|
"Create center"
|
||||||
#elif L==4 // es
|
#elif L==4 // es
|
||||||
"Crear centro"
|
"Crear centro"
|
||||||
#elif L==5 // fr
|
#elif L==5 // fr
|
||||||
"Create center" // Besoin de traduction
|
"Créer center"
|
||||||
#elif L==6 // gn
|
#elif L==6 // gn
|
||||||
"Crear centro" // Okoteve traducción
|
"Crear centro" // Okoteve traducción
|
||||||
#elif L==7 // it
|
#elif L==7 // it
|
||||||
"Create center" // Bisogno di traduzione
|
"Crea centro"
|
||||||
#elif L==8 // pl
|
#elif L==8 // pl
|
||||||
"Create center" // Potrzebujesz tlumaczenie
|
"Utwórz centrum"
|
||||||
#elif L==9 // pt
|
#elif L==9 // pt
|
||||||
"Create center" // Precisa de traduçăo
|
"Criar centro"
|
||||||
#elif L==10 // tr
|
#elif L==10 // tr
|
||||||
"Create center" // Çeviri lazim!
|
"Create center" // Çeviri lazim!
|
||||||
#endif
|
#endif
|
||||||
,
|
,
|
||||||
[ActRemCtr] =
|
[ActRemCtr] =
|
||||||
|
|
Loading…
Reference in New Issue