");
}
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,"