Version 22.107.19:May 09, 2023 Changes in edition of institutions.

This commit is contained in:
acanas 2023-05-09 08:51:04 +02:00
parent fd7fcb0ebf
commit 0da61c63a9
4 changed files with 92 additions and 103 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.18 (2023-05-09)" #define Log_PLATFORM_VERSION "SWAD 22.107.19 (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.19:May 09, 2023 Changes in edition of institutions. (337858 lines)
Version 22.107.18:May 09, 2023 Changes in edition of centers. (337871 lines) 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)

View File

@ -1365,97 +1365,108 @@ static void Ins_ShowAlertAndButtonToGoToIns (void)
static void Ins_PutFormToCreateInstitution (void) static void Ins_PutFormToCreateInstitution (void)
{ {
extern const char *Txt_Create_institution; extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
extern const char *Txt_Create;
Act_Action_t NextAction = ActUnk;
/***** Begin form *****/ /***** Set action depending on role *****/
if (Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM) if (Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM)
Frm_BeginForm (ActNewIns); NextAction = ActNewIns;
else if (Gbl.Usrs.Me.Role.Max >= Rol_GST) else if (Gbl.Usrs.Me.Role.Max >= Rol_GST)
Frm_BeginForm (ActReqIns); NextAction = ActReqIns;
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 *****/
Ins_PutHeadInstitutionsForEdition (); Frm_BeginForm (NextAction);
HTM_TR_Begin (NULL); /***** Begin table *****/
HTM_TABLE_BeginWidePadding (2);
/***** Column to remove institution, disabled here *****/ /***** Write heading *****/
HTM_TD_Begin ("class=\"BM\""); Ins_PutHeadInstitutionsForEdition ();
HTM_TD_End ();
/***** Institution code *****/ HTM_TR_Begin (NULL);
HTM_TD_Begin ("class=\"CODE\"");
HTM_TD_End ();
/***** Institution logo *****/ /***** Column to remove institution, disabled here *****/
HTM_TD_Begin ("title=\"%s\" class=\"HIE_LOGO\"",Ins_EditingIns->FullName); HTM_TD_Begin ("class=\"BM\"");
Lgo_DrawLogo (HieLvl_INS,-1L,"",20,NULL,true); HTM_TD_End ();
HTM_TD_End ();
/***** Institution short name *****/ /***** Institution code *****/
HTM_TD_Begin ("class=\"LM\""); HTM_TD_Begin ("class=\"CODE\"");
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Ins_EditingIns->ShrtName, HTM_TD_End ();
HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_SHORT_NAME INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Institution full name *****/ /***** Institution logo *****/
HTM_TD_Begin ("class=\"LM\""); HTM_TD_Begin ("title=\"%s\" class=\"HIE_LOGO\"",Ins_EditingIns->FullName);
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Ins_EditingIns->FullName, Lgo_DrawLogo (HieLvl_INS,-1L,"",20,NULL,true);
HTM_DONT_SUBMIT_ON_CHANGE, HTM_TD_End ();
"class=\"INPUT_FULL_NAME INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Institution WWW *****/ /***** Institution short name *****/
HTM_TD_Begin ("class=\"LM\""); HTM_TD_Begin ("class=\"LM\"");
HTM_INPUT_URL ("WWW",Ins_EditingIns->WWW,HTM_DONT_SUBMIT_ON_CHANGE, HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Ins_EditingIns->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 institution ****/ /***** Institution 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,Ins_EditingIns->FullName,
HTM_TD_End (); HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_FULL_NAME INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** Number of centers *****/ /***** Institution WWW *****/
HTM_TD_Begin ("class=\"RM DAT_%s\"",The_GetSuffix ()); HTM_TD_Begin ("class=\"LM\"");
HTM_Unsigned (0); HTM_INPUT_URL ("WWW",Ins_EditingIns->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 institution ****/ /***** Number of users who claim to belong to this institution ****/
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 ();
/***** Institution requester *****/ /***** Number of centers *****/
HTM_TD_Begin ("class=\"LT DAT_%s INPUT_REQUESTER\"", 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 ();
/***** Institution status *****/ /***** Number of users in courses of this institution ****/
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 (); /***** Institution requester *****/
HTM_TD_Begin ("class=\"LT DAT_%s INPUT_REQUESTER\"",
The_GetSuffix ());
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,true);
HTM_TD_End ();
/***** End table, send button and end box *****/ /***** Institution status *****/
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_institution); 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 ();
} }
/*****************************************************************************/ /*****************************************************************************/

View File

@ -6894,29 +6894,6 @@ const char *Txt_Create_holiday =
"Tatil oluştur"; "Tatil oluştur";
#endif #endif
const char *Txt_Create_institution =
#if L==1 // ca
"Crear institució";
#elif L==2 // de
"Hochschule eingeben";
#elif L==3 // en
"Create institution";
#elif L==4 // es
"Crear institución";
#elif L==5 // fr
"Créer établissement";
#elif L==6 // gn
"Crear institución"; // Okoteve traducción
#elif L==7 // it
"Crea istituzione";
#elif L==8 // pl
"Utwórz instytucji";
#elif L==9 // pt
"Criar institução";
#elif L==10 // tr
"Create institution"; // Çeviri lazim!
#endif
const char *Txt_Create_item = const char *Txt_Create_item =
#if L==1 // ca #if L==1 // ca
"Crear ítem"; "Crear ítem";

View File

@ -2753,25 +2753,25 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
, ,
[ActNewIns] = [ActNewIns] =
#if L==1 // ca #if L==1 // ca
"Create an institution" // Necessita traducció "Crear institució"
#elif L==2 // de #elif L==2 // de
"Create an institution" // Need Übersetzung "Hochschule eingeben"
#elif L==3 // en #elif L==3 // en
"Create an institution" "Create institution"
#elif L==4 // es #elif L==4 // es
"Crear una institución" "Crear institución"
#elif L==5 // fr #elif L==5 // fr
"Create an institution" // Besoin de traduction "Créer établissement"
#elif L==6 // gn #elif L==6 // gn
"Crear una institución" // Okoteve traducción "Crear institución" // Okoteve traducción
#elif L==7 // it #elif L==7 // it
"Create an institution" // Bisogno di traduzione "Crea istituzione"
#elif L==8 // pl #elif L==8 // pl
"Create an institution" // Potrzebujesz tlumaczenie "Utwórz instytucji"
#elif L==9 // pt #elif L==9 // pt
"Create an institution" // Precisa de tradução "Criar institução"
#elif L==10 // tr #elif L==10 // tr
"Create an institution" // Çeviri lazim! "Create institution" // Çeviri lazim!
#endif #endif
, ,
[ActRemIns] = [ActRemIns] =