Version19.190.5

This commit is contained in:
acanas 2020-04-19 20:42:18 +02:00
parent e86dd1c5bc
commit f3ef48b818
2 changed files with 15 additions and 8 deletions

View File

@ -497,7 +497,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
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 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: 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:
sudo cp icon/book.svg /var/www/html/swad/icon/
sudo cp icon/car.svg /var/www/html/swad/icon/

View File

@ -651,6 +651,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
{
unsigned NumRoom;
struct Roo_Room *Room;
char *Anchor = NULL;
char StrCapacity[Cns_MAX_DECIMAL_DIGITS_UINT + 1];
/***** Write heading *****/
@ -664,6 +665,9 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
{
Room = &Rooms->Lst[NumRoom];
/* Build anchor string */
Frm_SetAnchorStr (Room->RooCod,&Anchor);
HTM_TR_Begin (NULL);
/* Put icon to remove room */
@ -676,12 +680,14 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
/* Room code */
HTM_TD_Begin ("class=\"DAT RM\"");
HTM_ARTICLE_Begin (Anchor);
HTM_Long (Room->RooCod);
HTM_ARTICLE_End ();
HTM_TD_End ();
/* Building */
HTM_TD_Begin ("class=\"CM\"");
Frm_StartForm (ActChgRooBld);
Frm_StartFormAnchor (ActChgRooBld,Anchor);
Roo_PutParamRooCod (Room->RooCod);
Roo_PutSelectorBuilding (Room->BldCod,Buildings,
true); // Submit on change
@ -690,7 +696,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
/* Floor */
HTM_TD_Begin ("class=\"LM\"");
Frm_StartForm (ActChgRooFlo);
Frm_StartFormAnchor (ActChgRooFlo,Anchor);
Roo_PutParamRooCod (Room->RooCod);
HTM_INPUT_LONG ("Floor",(long) INT_MIN,(long) INT_MAX,(long) Room->Floor,false,
"class=\"INPUT_LONG\"");
@ -699,7 +705,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
/* Room type */
HTM_TD_Begin ("class=\"CM\"");
Frm_StartForm (ActChgRooTyp);
Frm_StartFormAnchor (ActChgRooTyp,Anchor);
Roo_PutParamRooCod (Room->RooCod);
Roo_PutSelectorType (Room->Type,
true); // Submit on change
@ -708,7 +714,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
/* Room short name */
HTM_TD_Begin ("class=\"LM\"");
Frm_StartForm (ActRenRooSho);
Frm_StartFormAnchor (ActRenRooSho,Anchor);
Roo_PutParamRooCod (Room->RooCod);
HTM_INPUT_TEXT ("ShortName",Roo_MAX_CHARS_SHRT_NAME,Room->ShrtName,true,
"size=\"10\" class=\"INPUT_SHORT_NAME\"");
@ -717,7 +723,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
/* Room full name */
HTM_TD_Begin ("class=\"LM\"");
Frm_StartForm (ActRenRooFul);
Frm_StartFormAnchor (ActRenRooFul,Anchor);
Roo_PutParamRooCod (Room->RooCod);
HTM_INPUT_TEXT ("FullName",Roo_MAX_CHARS_FULL_NAME,Room->FullName,true,
"size=\"20\" class=\"INPUT_FULL_NAME\"");
@ -726,7 +732,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
/* Seating capacity */
HTM_TD_Begin ("class=\"LM\"");
Frm_StartForm (ActChgRooMaxUsr);
Frm_StartFormAnchor (ActChgRooMaxUsr,Anchor);
Roo_PutParamRooCod (Room->RooCod);
Roo_WriteCapacity (StrCapacity,Room->Capacity);
HTM_INPUT_TEXT ("Capacity",Cns_MAX_DECIMAL_DIGITS_UINT,StrCapacity,true,