diff --git a/icon/iconset/awesome/action64x64/ins64x64.gif b/icon/iconset/awesome/action64x64/ins64x64.gif index 84458e540..34f5d9695 100644 Binary files a/icon/iconset/awesome/action64x64/ins64x64.gif and b/icon/iconset/awesome/action64x64/ins64x64.gif differ diff --git a/icon/ins16x16.gif b/icon/ins16x16.gif index fbdb163c7..cb701d532 100644 Binary files a/icon/ins16x16.gif and b/icon/ins16x16.gif differ diff --git a/swad_attendance.c b/swad_attendance.c index 1683e2f22..9fb20a913 100644 --- a/swad_attendance.c +++ b/swad_attendance.c @@ -2913,7 +2913,7 @@ static void Att_GetListSelectedAttCods (char **StrAttCodsSelected) static void Att_PutFormToPrintListStds (bool ShowDetails,char *StrAttCodsSelected) { extern const char *The_ClassFormul[The_NUM_THEMES]; - extern const char *Txt_Print_view; + extern const char *Txt_Print; /***** Link to print view *****/ fprintf (Gbl.F.Out,"
"); @@ -2924,8 +2924,8 @@ static void Att_PutFormToPrintListStds (bool ShowDetails,char *StrAttCodsSelecte Usr_PutHiddenParUsrCodAll (ActPrnLstAttStd,Gbl.Usrs.Select.All); if (StrAttCodsSelected[0]) Par_PutHiddenParamString ("AttCods",StrAttCodsSelected); - Act_LinkFormSubmit (Txt_Print_view,The_ClassFormul[Gbl.Prefs.Theme]); - Lay_PutSendIcon ("print",Txt_Print_view,Txt_Print_view); + Act_LinkFormSubmit (Txt_Print,The_ClassFormul[Gbl.Prefs.Theme]); + Lay_PutSendIcon ("print",Txt_Print,Txt_Print); fprintf (Gbl.F.Out,"" "
"); } diff --git a/swad_centre.c b/swad_centre.c index 313125a70..51c8e2d5d 100644 --- a/swad_centre.c +++ b/swad_centre.c @@ -677,6 +677,9 @@ void Ctr_EditCentres (void) extern const char *Txt_There_is_no_list_of_institutions; extern const char *Txt_You_must_create_at_least_one_institution_before_creating_centres; + /***** Put link (form) to view centres *****/ + Lay_PutFormToView (ActSeeCtr); + /***** Get list of institutions of the current country *****/ Ins_GetListInstitutions (Gbl.CurrentCty.Cty.CtyCod,Ins_GET_MINIMAL_DATA); if (Gbl.Inss.Num) diff --git a/swad_changelog.h b/swad_changelog.h index a0ee0c554..88d71b728 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -39,11 +39,13 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.70.2 (2015/01/27)" +#define Log_PLATFORM_VERSION "SWAD 14.70.3 (2015/01/28)" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h | tail -1 /* + Version 14.70.3: Jan 28, 2015 Some button messages changed. + Buttons to view when editing. (176217 lines) Version 14.70.2: Jan 27, 2015 Changed permissions in documents zones of institution, centre and degree. (176188 lines) Version 14.70.1: Jan 27, 2015 Fixed bug when removing a user from a course. (176187 lines) Version 14.70: Jan 26, 2015 Fixed bugs in statistics about sizes of file browsers. diff --git a/swad_country.c b/swad_country.c index 2504bcc85..d50cb8034 100644 --- a/swad_country.c +++ b/swad_country.c @@ -819,6 +819,9 @@ void Cty_EditCountries (void) { extern const char *Txt_No_countries_have_been_created; + /***** Put link (form) to view countries *****/ + Lay_PutFormToView (ActSeeCty); + /***** Get list of countries *****/ Gbl.Ctys.SelectedOrderType = Cty_ORDER_BY_COUNTRY; Cty_GetListCountries (Cty_GET_EXTRA_DATA); diff --git a/swad_course.c b/swad_course.c index 3fbc24e9e..7f0cfc16d 100644 --- a/swad_course.c +++ b/swad_course.c @@ -1180,6 +1180,9 @@ static void Crs_EditCourses (void) { extern const char *Txt_No_courses_have_been_created_in_this_degree; + /***** Put link (form) to view courses *****/ + Lay_PutFormToView (ActSeeCrs); + /***** Help message *****/ if (!Gbl.CurrentDeg.Deg.NumCourses) // There aren't courses Lay_ShowAlert (Lay_INFO,Txt_No_courses_have_been_created_in_this_degree); diff --git a/swad_degree.c b/swad_degree.c index a97fdd0a4..15ec414c9 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -1021,6 +1021,9 @@ static void Deg_EditDegreeTypes (void) { extern const char *Txt_There_are_no_types_of_degree; + /***** Put link (form) to view degree types *****/ + Lay_PutFormToView (ActSeeDegTyp); + /***** Help message *****/ if (!Gbl.Degs.DegTypes.Num) Lay_ShowAlert (Lay_INFO,Txt_There_are_no_types_of_degree); @@ -1734,7 +1737,7 @@ static void Deg_PutFormToCreateDegType (void) "" "%s" "" - "" + "" "%s" "" "", @@ -2236,6 +2239,9 @@ void Deg_EditDegrees (void) extern const char *Txt_There_is_no_list_of_types_of_degree; extern const char *Txt_You_must_create_at_least_one_type_of_degree_before_creating_degrees; + /***** Put link (form) to view degrees *****/ + Lay_PutFormToView (ActSeeDeg); + /***** Get list of degrees in the current centre *****/ Deg_GetListDegsOfCurrentCtr (); diff --git a/swad_file_browser.c b/swad_file_browser.c index 9a39fb9d0..108cca550 100644 --- a/swad_file_browser.c +++ b/swad_file_browser.c @@ -4028,7 +4028,7 @@ static void Brw_PutFormToShowOrAdmin (Brw_ShowOrAdmin_t ShowOrAdmin, Act_Action_t Action) { extern const char *The_ClassFormul[The_NUM_THEMES]; - extern const char *Txt_View_as_a_student; + extern const char *Txt_View; extern const char *Txt_Edit; fprintf (Gbl.F.Out,"
"); @@ -4040,10 +4040,10 @@ static void Brw_PutFormToShowOrAdmin (Brw_ShowOrAdmin_t ShowOrAdmin, switch (ShowOrAdmin) { case Brw_SHOW: - Act_LinkFormSubmit (Txt_View_as_a_student,The_ClassFormul[Gbl.Prefs.Theme]); + Act_LinkFormSubmit (Txt_View,The_ClassFormul[Gbl.Prefs.Theme]); Lay_PutSendIcon ("visible_on", - Txt_View_as_a_student, - Txt_View_as_a_student); + Txt_View, + Txt_View); break; case Brw_ADMIN: Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]); diff --git a/swad_institution.c b/swad_institution.c index 7df8c0168..30ebc0703 100644 --- a/swad_institution.c +++ b/swad_institution.c @@ -685,6 +685,9 @@ void Ins_EditInstitutions (void) { extern const char *Txt_No_institutions_have_been_created_in_this_country; + /***** Put link (form) to view institutions *****/ + Lay_PutFormToView (ActSeeIns); + /***** Get list of institutions *****/ Ins_GetListInstitutions (Gbl.CurrentCty.Cty.CtyCod,Ins_GET_EXTRA_DATA); diff --git a/swad_layout.c b/swad_layout.c index 904751b4f..bec550b43 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -908,6 +908,23 @@ static void Lay_ShowRightColumn (void) ""); } +/*****************************************************************************/ +/************************* Put a link (form) to view *************************/ +/*****************************************************************************/ + +void Lay_PutFormToView (Act_Action_t Action) + { + extern const char *The_ClassFormul[The_NUM_THEMES]; + extern const char *Txt_View; + + fprintf (Gbl.F.Out,"
"); + Act_FormStart (Action); + Act_LinkFormSubmit (Txt_View,The_ClassFormul[Gbl.Prefs.Theme]); + Lay_PutSendIcon ("visible_on",Txt_View,Txt_View); + fprintf (Gbl.F.Out,"" + "
"); + } + /*****************************************************************************/ /************************* Put a link (form) to edit *************************/ /*****************************************************************************/ @@ -1438,10 +1455,10 @@ void Lay_PutLinkToPrintView1 (Act_Action_t NextAction) void Lay_PutLinkToPrintView2 (void) { extern const char *The_ClassFormul[The_NUM_THEMES]; - extern const char *Txt_Print_view; + extern const char *Txt_Print; - Act_LinkFormSubmit (Txt_Print_view,The_ClassFormul[Gbl.Prefs.Theme]); - Lay_PutSendIcon ("print",Txt_Print_view,Txt_Print_view); + Act_LinkFormSubmit (Txt_Print,The_ClassFormul[Gbl.Prefs.Theme]); + Lay_PutSendIcon ("print",Txt_Print,Txt_Print); fprintf (Gbl.F.Out,""); } diff --git a/swad_layout.h b/swad_layout.h index 10bc684a2..a6ccf0b33 100644 --- a/swad_layout.h +++ b/swad_layout.h @@ -86,6 +86,7 @@ typedef enum void Lay_WriteStartOfPage (void); void Lay_WriteTitle (const char *Title); +void Lay_PutFormToView (Act_Action_t Action); void Lay_PutFormToEdit (Act_Action_t Action); void Lay_PutSendIcon (const char *Icon,const char *Alt,const char *Text); void Lay_PutSendButton (const char *TextSendButton); diff --git a/swad_record.c b/swad_record.c index 16fa60a1b..8a983d45f 100644 --- a/swad_record.c +++ b/swad_record.c @@ -1280,12 +1280,12 @@ void Rec_ListRecordsTchsCrs (void) void Rec_ShowLinkToPrintPreviewOfRecords (void) { extern const char *The_ClassFormul[The_NUM_THEMES]; - extern const char *Txt_Print_view; + extern const char *Txt_Print; extern const char *Txt_record_cards_per_page; unsigned i; - Act_LinkFormSubmit (Txt_Print_view,The_ClassFormul[Gbl.Prefs.Theme]); - Lay_PutSendIcon ("print",Txt_Print_view,Txt_Print_view); + Act_LinkFormSubmit (Txt_Print,The_ClassFormul[Gbl.Prefs.Theme]); + Lay_PutSendIcon ("print",Txt_Print,Txt_Print); fprintf (Gbl.F.Out," (" "