mirror of https://github.com/acanas/swad-core.git
Version19.190.5
This commit is contained in:
parent
e86dd1c5bc
commit
f3ef48b818
|
@ -497,7 +497,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
||||||
En OpenSWAD:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 19.190.4 (2020-04-18)"
|
#define Log_PLATFORM_VERSION "SWAD 19.190.5 (2020-04-19)"
|
||||||
#define CSS_FILE "swad19.190.css"
|
#define CSS_FILE "swad19.190.css"
|
||||||
#define JS_FILE "swad19.172.1.js"
|
#define JS_FILE "swad19.172.1.js"
|
||||||
/*
|
/*
|
||||||
|
@ -551,7 +551,8 @@ Funci
|
||||||
// TODO: Integrar pull requests con traducciones del alemán del usuario eruedin en GitHub
|
// TODO: Integrar pull requests con traducciones del alemán del usuario eruedin en GitHub
|
||||||
// TODO: Cambiar icono notificaciones nuevas con "bell-on.svg"
|
// TODO: Cambiar icono notificaciones nuevas con "bell-on.svg"
|
||||||
|
|
||||||
Version 19.190.4: Apr 18, 2020 Icons for room types. (288516 lines)
|
Version 19.190.5: Apr 19, 2020 Anchors in forms to edit buildings and rooms. (288527 lines)
|
||||||
|
Version 19.190.4: Apr 19, 2020 Icons for room types. (288516 lines)
|
||||||
Copy the following 23 icons to icon public directory:
|
Copy the following 23 icons to icon public directory:
|
||||||
sudo cp icon/book.svg /var/www/html/swad/icon/
|
sudo cp icon/book.svg /var/www/html/swad/icon/
|
||||||
sudo cp icon/car.svg /var/www/html/swad/icon/
|
sudo cp icon/car.svg /var/www/html/swad/icon/
|
||||||
|
|
18
swad_room.c
18
swad_room.c
|
@ -651,6 +651,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
||||||
{
|
{
|
||||||
unsigned NumRoom;
|
unsigned NumRoom;
|
||||||
struct Roo_Room *Room;
|
struct Roo_Room *Room;
|
||||||
|
char *Anchor = NULL;
|
||||||
char StrCapacity[Cns_MAX_DECIMAL_DIGITS_UINT + 1];
|
char StrCapacity[Cns_MAX_DECIMAL_DIGITS_UINT + 1];
|
||||||
|
|
||||||
/***** Write heading *****/
|
/***** Write heading *****/
|
||||||
|
@ -664,6 +665,9 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
||||||
{
|
{
|
||||||
Room = &Rooms->Lst[NumRoom];
|
Room = &Rooms->Lst[NumRoom];
|
||||||
|
|
||||||
|
/* Build anchor string */
|
||||||
|
Frm_SetAnchorStr (Room->RooCod,&Anchor);
|
||||||
|
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Put icon to remove room */
|
/* Put icon to remove room */
|
||||||
|
@ -676,12 +680,14 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
||||||
|
|
||||||
/* Room code */
|
/* Room code */
|
||||||
HTM_TD_Begin ("class=\"DAT RM\"");
|
HTM_TD_Begin ("class=\"DAT RM\"");
|
||||||
|
HTM_ARTICLE_Begin (Anchor);
|
||||||
HTM_Long (Room->RooCod);
|
HTM_Long (Room->RooCod);
|
||||||
|
HTM_ARTICLE_End ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
/* Building */
|
/* Building */
|
||||||
HTM_TD_Begin ("class=\"CM\"");
|
HTM_TD_Begin ("class=\"CM\"");
|
||||||
Frm_StartForm (ActChgRooBld);
|
Frm_StartFormAnchor (ActChgRooBld,Anchor);
|
||||||
Roo_PutParamRooCod (Room->RooCod);
|
Roo_PutParamRooCod (Room->RooCod);
|
||||||
Roo_PutSelectorBuilding (Room->BldCod,Buildings,
|
Roo_PutSelectorBuilding (Room->BldCod,Buildings,
|
||||||
true); // Submit on change
|
true); // Submit on change
|
||||||
|
@ -690,7 +696,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
||||||
|
|
||||||
/* Floor */
|
/* Floor */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Frm_StartForm (ActChgRooFlo);
|
Frm_StartFormAnchor (ActChgRooFlo,Anchor);
|
||||||
Roo_PutParamRooCod (Room->RooCod);
|
Roo_PutParamRooCod (Room->RooCod);
|
||||||
HTM_INPUT_LONG ("Floor",(long) INT_MIN,(long) INT_MAX,(long) Room->Floor,false,
|
HTM_INPUT_LONG ("Floor",(long) INT_MIN,(long) INT_MAX,(long) Room->Floor,false,
|
||||||
"class=\"INPUT_LONG\"");
|
"class=\"INPUT_LONG\"");
|
||||||
|
@ -699,7 +705,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
||||||
|
|
||||||
/* Room type */
|
/* Room type */
|
||||||
HTM_TD_Begin ("class=\"CM\"");
|
HTM_TD_Begin ("class=\"CM\"");
|
||||||
Frm_StartForm (ActChgRooTyp);
|
Frm_StartFormAnchor (ActChgRooTyp,Anchor);
|
||||||
Roo_PutParamRooCod (Room->RooCod);
|
Roo_PutParamRooCod (Room->RooCod);
|
||||||
Roo_PutSelectorType (Room->Type,
|
Roo_PutSelectorType (Room->Type,
|
||||||
true); // Submit on change
|
true); // Submit on change
|
||||||
|
@ -708,7 +714,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
||||||
|
|
||||||
/* Room short name */
|
/* Room short name */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Frm_StartForm (ActRenRooSho);
|
Frm_StartFormAnchor (ActRenRooSho,Anchor);
|
||||||
Roo_PutParamRooCod (Room->RooCod);
|
Roo_PutParamRooCod (Room->RooCod);
|
||||||
HTM_INPUT_TEXT ("ShortName",Roo_MAX_CHARS_SHRT_NAME,Room->ShrtName,true,
|
HTM_INPUT_TEXT ("ShortName",Roo_MAX_CHARS_SHRT_NAME,Room->ShrtName,true,
|
||||||
"size=\"10\" class=\"INPUT_SHORT_NAME\"");
|
"size=\"10\" class=\"INPUT_SHORT_NAME\"");
|
||||||
|
@ -717,7 +723,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
||||||
|
|
||||||
/* Room full name */
|
/* Room full name */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Frm_StartForm (ActRenRooFul);
|
Frm_StartFormAnchor (ActRenRooFul,Anchor);
|
||||||
Roo_PutParamRooCod (Room->RooCod);
|
Roo_PutParamRooCod (Room->RooCod);
|
||||||
HTM_INPUT_TEXT ("FullName",Roo_MAX_CHARS_FULL_NAME,Room->FullName,true,
|
HTM_INPUT_TEXT ("FullName",Roo_MAX_CHARS_FULL_NAME,Room->FullName,true,
|
||||||
"size=\"20\" class=\"INPUT_FULL_NAME\"");
|
"size=\"20\" class=\"INPUT_FULL_NAME\"");
|
||||||
|
@ -726,7 +732,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
||||||
|
|
||||||
/* Seating capacity */
|
/* Seating capacity */
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
Frm_StartForm (ActChgRooMaxUsr);
|
Frm_StartFormAnchor (ActChgRooMaxUsr,Anchor);
|
||||||
Roo_PutParamRooCod (Room->RooCod);
|
Roo_PutParamRooCod (Room->RooCod);
|
||||||
Roo_WriteCapacity (StrCapacity,Room->Capacity);
|
Roo_WriteCapacity (StrCapacity,Room->Capacity);
|
||||||
HTM_INPUT_TEXT ("Capacity",Cns_MAX_DECIMAL_DIGITS_UINT,StrCapacity,true,
|
HTM_INPUT_TEXT ("Capacity",Cns_MAX_DECIMAL_DIGITS_UINT,StrCapacity,true,
|
||||||
|
|
Loading…
Reference in New Issue