From 892d3a23ee68605a3e294263e97375abf302f2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Thu, 27 Apr 2017 17:02:45 +0200 Subject: [PATCH] Version 16.193.4 --- css/{swad16.192.css => swad16.193.4.css} | 16 +++++++++++----- icon/question16x16.gif | Bin 0 -> 209 bytes swad_changelog.h | 6 ++++-- swad_enrolment.c | 15 +++++++++------ swad_layout.c | 22 ++++++++++++++++------ swad_layout.h | 3 ++- swad_photo.c | 2 +- 7 files changed, 43 insertions(+), 21 deletions(-) rename css/{swad16.192.css => swad16.193.4.css} (99%) create mode 100644 icon/question16x16.gif diff --git a/css/swad16.192.css b/css/swad16.193.4.css similarity index 99% rename from css/swad16.192.css rename to css/swad16.193.4.css index df0ccd8d4..64544da7f 100644 --- a/css/swad16.192.css +++ b/css/swad16.193.4.css @@ -1497,15 +1497,21 @@ a:hover /* Default ==> underlined */ display:inline-block; box-sizing:border-box; max-width:90%; - margin:8px auto 0 auto; + margin:8px auto; + padding:12px; background-color:#FFF9EA; + border-radius:2px; + box-shadow: 0 2px 2px 0 rgba(124,121,109,0.14), 0 2px 1px -2px rgba(124,121,109,0.2), 0 1px 5px 0 rgba(124,121,109,0.12); + /* opacity:0.9; */ + } +.ALERT_TXT + { + box-sizing:border-box; + margin:0 auto; + padding:12px 12px 12px 45px; background-position:12px 12px; background-size:20px 20px; background-repeat:no-repeat; - padding:12px 12px 12px 45px; - border-radius:2px; - box-shadow: 0 2px 2px 0 rgba(124,121,109,0.14), 0 2px 1px -2px rgba(124,121,109,0.2), 0 1px 5px 0 rgba(124,121,109,0.12); - opacity:0.9; font-size:12pt; color:#632921; text-align:left; diff --git a/icon/question16x16.gif b/icon/question16x16.gif new file mode 100644 index 0000000000000000000000000000000000000000..04b26958e14ecbe56d7a9a4b0691f3a5222aa833 GIT binary patch literal 209 zcmZ?wbhEHb6krfw*vtR|-#0M)*edd4kLJ&VmOqa;|2!4`>q6GA%SFF$wEn(7qZw" - "
", - Gbl.Prefs.IconsURL,Lay_AlertIcons[AlertType]); + "
"); /***** Write message *****/ + fprintf (Gbl.F.Out,"
", + Gbl.Prefs.IconsURL,Lay_AlertIcons[AlertType]); if (Message) fprintf (Gbl.F.Out,"%s",Message); + fprintf (Gbl.F.Out,"
"); } -void Lay_ShowAlertAndButton2 (Act_Action_t NextAction,Lay_Button_t Button,const char *TxtButton) +void Lay_ShowAlertAndButton2 (Act_Action_t NextAction,void (*FuncParams) (), + Lay_Button_t Button,const char *TxtButton) { /***** Optional button *****/ if (NextAction != ActUnk && @@ -1616,14 +1619,21 @@ void Lay_ShowAlertAndButton2 (Act_Action_t NextAction,Lay_Button_t Button,const TxtButton) if (TxtButton[0]) { + /* Start form */ Act_FormStart (NextAction); + if (FuncParams) + FuncParams (); + + /* Put button *****/ Lay_PutButton (Button,TxtButton); + + /* End form */ Act_FormEnd (); } /***** End box *****/ fprintf (Gbl.F.Out,"
" - "
"); + ""); } /*****************************************************************************/ diff --git a/swad_layout.h b/swad_layout.h index 51600a61a..8bc5bb0ff 100644 --- a/swad_layout.h +++ b/swad_layout.h @@ -120,7 +120,8 @@ void Lay_EndRoundFrame (void); void Lay_ShowErrorAndExit (const char *Message); void Lay_ShowAlert (Lay_AlertType_t AlertType,const char *Message); void Lay_ShowAlertAndButton1 (Lay_AlertType_t AlertType,const char *Message); -void Lay_ShowAlertAndButton2 (Act_Action_t NextAction,Lay_Button_t Button,const char *TxtButton); +void Lay_ShowAlertAndButton2 (Act_Action_t NextAction,void (*FuncParams) (), + Lay_Button_t Button,const char *TxtButton); void Lay_RefreshNotifsAndConnected (void); void Lay_RefreshLastClicks (void); diff --git a/swad_photo.c b/swad_photo.c index 58753a597..72681d9f5 100644 --- a/swad_photo.c +++ b/swad_photo.c @@ -423,7 +423,7 @@ void Pho_ReqRemoveMyPhoto (void) fprintf (Gbl.F.Out,""); /* End alert */ - Lay_ShowAlertAndButton2 (ActRemMyPho,Lay_REMOVE_BUTTON,Txt_Remove_photo); + Lay_ShowAlertAndButton2 (ActRemMyPho,NULL,Lay_REMOVE_BUTTON,Txt_Remove_photo); } else Lay_ShowAlert (Lay_INFO,Txt_The_photo_no_longer_exists);