Version 15.175.3

This commit is contained in:
Antonio Cañas Vargas 2016-04-03 14:42:22 +02:00
parent 3b6bcef14c
commit 344d1f3208
3 changed files with 38 additions and 3 deletions

View File

@ -140,14 +140,15 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.175.2 (2016-04-03)"
#define Log_PLATFORM_VERSION "SWAD 15.175.3 (2016-04-03)"
#define CSS_FILE "swad15.173.1.css"
#define JS_FILE "swad15.131.3.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.175.3: Apr 03, 2016 Check button to remove image when editing one test question. (? lines)
Version 15.175.4: Apr 03, 2016 Check button to remove image when editing one test question. (? lines)
Version 15.175.3: Apr 03, 2016 Change in edition of test question. (197804 lines)
Version 15.175.2: Apr 03, 2016 Code refactoring related to deleting image file. (197773 lines)
Version 15.175.1: Apr 03, 2016 Code refactoring related to deleting tests of a course. (197763 lines)
Version 15.175: Apr 03, 2016 Fixed bug when editing a test question.

View File

@ -1029,6 +1029,17 @@ void Tst_WriteQstStem (const char *Stem,const char *ClassStem)
static void Tst_PutFormToUploadNewQstImage (void)
{
extern const char *The_ClassForm[The_NUM_THEMES];
extern const char *Txt_Change_image;
/***** If an image exists, put label *****/
if (Gbl.Test.Image[0])
fprintf (Gbl.F.Out,"<label class=\"%s\">"
"%s: "
"</label>",
The_ClassForm[Gbl.Prefs.Theme],Txt_Change_image);
/****** Form field to upload a new image *****/
fprintf (Gbl.F.Out,"<input type=\"file\" name=\"%s\""
" size=\"40\" maxlength=\"100\" value=\"\" />",
Fil_NAME_OF_PARAM_FILENAME_ORG);
@ -4308,6 +4319,8 @@ static void Tst_PutFormEditOneQst (char *Stem,char *Feedback)
if (Gbl.Test.Image[0])
Img_ShowImage (Gbl.Test.Image,"TEST_IMG_EDIT_ONE");
Tst_PutFormToUploadNewQstImage ();
if (Gbl.Test.Image[0])
fprintf (Gbl.F.Out,"</td>"
"</tr>");

View File

@ -4236,6 +4236,27 @@ const char *Txt_Change_IDs =
"Alterar n&ordm;s. identif.";
#endif
const char *Txt_Change_image =
#if L==1
"Canviar imatge";
#elif L==2
"Abbild &auml;ndern";
#elif L==3
"Change image";
#elif L==4
"Cambiar imagen";
#elif L==5
"Changer image";
#elif L==6
"Moambue ta'&atilde;nga";
#elif L==7
"Cambiare immagine";
#elif L==8
"Zmie&nacute; obraz";
#elif L==9
"Alterar imagem";
#endif
const char *Txt_Change_logo =
#if L==1
"Canviar logo";
@ -4248,7 +4269,7 @@ const char *Txt_Change_logo =
#elif L==5
"Changer logo";
#elif L==6
"Cambiar logo"; // Okoteve traducción
"Moambue logo";
#elif L==7
"Cambiare logo";
#elif L==8