diff --git a/css/swad15.192.css b/css/swad15.192.6.css
similarity index 99%
rename from css/swad15.192.css
rename to css/swad15.192.6.css
index 5b6346437..0119b882f 100644
--- a/css/swad15.192.css
+++ b/css/swad15.192.6.css
@@ -1743,12 +1743,13 @@ a:hover img.CENTRE_PHOTO_SHOW
.TEST_EXA_LIGHT {color:#A0A0A0; font-size:12pt;}
.TEST_EDI {color:#404040; font-size:12pt;}
.TEST_EDI_LIGHT {color:#A0A0A0; font-size:12pt;}
-.TEST_IMG_SHOW_STEM {width:600px; border-radius:4px; margin:10px 0;}
-.TEST_IMG_SHOW_ANS {width:450px; border-radius:4px; margin:10px 0;}
-.TEST_IMG_EDIT_LIST_STEM {width:300px; border-radius:2px; margin:5px 0;}
-.TEST_IMG_EDIT_LIST_ANS {width:225px; border-radius:2px; margin:5px 0;}
-.TEST_IMG_EDIT_ONE_STEM {width:600px; border-radius:4px;}
-.TEST_IMG_EDIT_ONE_ANS {width:450px; border-radius:4px;}
+.TEST_IMG_SHOW_STEM {width:100%; border-radius:4px; margin:10px 0;}
+.TEST_IMG_SHOW_ANS {width:100%; border-radius:4px; margin:10px 0;}
+.TEST_IMG_EDIT_LIST_STEM {width:100%; border-radius:2px; margin:5px 0;}
+.TEST_IMG_EDIT_LIST_ANS {width:100%; border-radius:2px; margin:5px 0;}
+.TEST_IMG_EDIT_ONE_CONTAINER {margin:15px 0; text-align:left; vertical-align:top;}
+.TEST_IMG_EDIT_ONE_STEM {width:100%; border-radius:4px;}
+.TEST_IMG_EDIT_ONE_ANS {width:100%; border-radius:4px;}
.TEST_EDI_ANS_LEFT_COL
{
box-sizing:border-box;
diff --git a/swad_centre.c b/swad_centre.c
index 5b419248f..3b4a0bc11 100644
--- a/swad_centre.c
+++ b/swad_centre.c
@@ -2031,8 +2031,7 @@ void Ctr_RequestPhoto (void)
fprintf (Gbl.F.Out,""
- "",
The_ClassForm[Gbl.Prefs.Theme],
Txt_File_with_the_photo,
diff --git a/swad_changelog.h b/swad_changelog.h
index d2b0c6c46..4ad4d8a90 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -134,13 +134,15 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
-#define Log_PLATFORM_VERSION "SWAD 15.192.5 (2016-04-11)"
-#define CSS_FILE "swad15.192.css"
+#define Log_PLATFORM_VERSION "SWAD 15.192.6 (2016-04-11)"
+#define CSS_FILE "swad15.192.6.css"
#define JS_FILE "swad15.190.1.js"
// 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 sql/swad*.sql | tail -1
/*
+ Version 15.192.6: Apr 11, 2016 Changes in layout of test edition.
+ Changes in forms to upload files. (199359 lines)
Version 15.192.5: Apr 11, 2016 Fixed bug in edition of tests. (199369 lines)
Version 15.192.4: Apr 11, 2016 Fixed bug when removing messages. (199370 lines)
Version 15.192.3: Apr 11, 2016 Fixed bugs when receiving forum image. (199355 lines)
diff --git a/swad_file_browser.c b/swad_file_browser.c
index 7092096ee..212d9ffa3 100644
--- a/swad_file_browser.c
+++ b/swad_file_browser.c
@@ -7994,8 +7994,7 @@ static void Brw_PutFormToUploadOneFileClassic (const char *FileNameToShow)
break;
}
Brw_ParamListFiles (Brw_IS_FOLDER,Gbl.FileBrowser.Priv.PathInTreeUntilFilFolLnk,Gbl.FileBrowser.FilFolLnkName);
- fprintf (Gbl.F.Out,"",
+ fprintf (Gbl.F.Out,"",
Fil_NAME_OF_PARAM_FILENAME_ORG);
/* Button to send */
diff --git a/swad_forum.c b/swad_forum.c
index 92e76b5fe..4e1cecbca 100644
--- a/swad_forum.c
+++ b/swad_forum.c
@@ -3848,8 +3848,7 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
" alt=\"%s\" title=\"%s (%s)\""
" class=\"ICON20x20\" />"
""
- ""
+ ""
"
",
Gbl.Prefs.IconsURL,
Txt_Image,Txt_Image,Txt_optional);
diff --git a/swad_image.c b/swad_image.c
index bd88f7726..23bf0f375 100644
--- a/swad_image.c
+++ b/swad_image.c
@@ -171,13 +171,6 @@ void Img_GetImageFromForm (unsigned NumOpt,struct Image *Image,
/***** Secondly, get the image name and the file *****/
switch (Image->Action)
{
- case Img_ACTION_NO_IMAGE: // Do not use image (remove current image if exists)
- break;
- case Img_ACTION_KEEP_IMAGE: // Keep current image unchanged
- /***** Get image name *****/
- if (GetImageFromDB)
- GetImageFromDB (NumOpt,Image);
- break;
case Img_ACTION_NEW_IMAGE: // Upload new image
/***** Get new image (if present ==> process and create temporary file) *****/
Img_GetAndProcessImageFileFromForm (Image,ParamFile,
@@ -189,15 +182,22 @@ void Img_GetImageFromForm (unsigned NumOpt,struct Image *Image,
Image->Name[0] = '\0';
}
break;
+ case Img_ACTION_KEEP_IMAGE: // Keep current image unchanged
+ /***** Get image name *****/
+ if (GetImageFromDB != NULL)
+ GetImageFromDB (NumOpt,Image);
+ break;
case Img_ACTION_CHANGE_IMAGE: // Replace old image by new image
/***** Get new image (if present ==> process and create temporary file) *****/
Img_GetAndProcessImageFileFromForm (Image,ParamFile,
Width,Height,Quality);
if (Image->Status != Img_FILE_PROCESSED && // No new image received-processed successfully
- GetImageFromDB)
+ GetImageFromDB != NULL)
/* Get image name */
GetImageFromDB (NumOpt,Image);
break;
+ case Img_ACTION_NO_IMAGE: // Do not use image (remove current image if exists)
+ break;
}
/***** By last, get image title from form *****/
diff --git a/swad_image.h b/swad_image.h
index a09a3099b..dd6e275da 100644
--- a/swad_image.h
+++ b/swad_image.h
@@ -41,10 +41,10 @@
#define Img_NUM_ACTIONS 4
typedef enum
{
- Img_ACTION_NO_IMAGE, // Do not use image (remove current image if exists)
- Img_ACTION_KEEP_IMAGE, // Keep current image unchanged
Img_ACTION_NEW_IMAGE, // Upload new image
+ Img_ACTION_KEEP_IMAGE, // Keep current image unchanged
Img_ACTION_CHANGE_IMAGE, // Change existing image by a new image
+ Img_ACTION_NO_IMAGE, // Do not use image (remove current image if exists)
} Img_Action_t;
/***** Status of an image file *****/
diff --git a/swad_info.c b/swad_info.c
index dd95eaa0f..22451e512 100644
--- a/swad_info.c
+++ b/swad_info.c
@@ -1041,8 +1041,7 @@ void Inf_FormToSendPage (Inf_InfoSrc_t InfoSrc)
"%s:"
""
"