Changes for page New Course
From version 13.1
edited by Andrea Omicini
on 15/03/2022 18:46
on 15/03/2022 18:46
Change comment:
There is no comment for this version
To version 18.1
edited by Andrea Omicini
on 22/07/2022 14:00
on 22/07/2022 14:00
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,58 +1,25 @@ 1 -={{ stringEngIta="NewCourse"ita="Nuovo corso"/}}=1 += {{italiano}}Nuovo{{/italiano}}{{english}}New{{/english}} = 2 2 3 -{{velocity}} 3 +{{include reference="Courses.Environment" excludeFirstHeading="true"/}}{{velocity}} 4 4 #if( $isGuest ) 5 5 {{warning}}{{stringEngIta ita="Siamo spiacenti, ma l'inserimento di nuovi corsi non è operazione disponibile a visitatori esterni" eng="Sorry, the insertion of new courses is not an operation available to external viewers"/}}{{/warning}} 6 6 #stop 7 7 #end 8 8 #### START utility variables 9 -#set( $obj = $doc.getObject("Courses.CourseClass")) 10 -## 11 11 #define( $insertButtonIt )Inserisci nuovo corso in italiano#end 12 12 #define( $insertButtonEn )Insert New Course in English#end 13 -#define( $insertTextIt )NomeDocCorso#end 14 -#define( $insertTextEn )CourseDocName#end 11 +#define( $insertTextIt )NomeDocumentoCorso#end 12 +#define( $insertTextEn )CourseDocumentName#end 15 15 #define( $insertOtherLangIt )No, devo inserire un nuovo corso in inglese#end 16 16 #define( $insertOtherLangEn )No, I have to insert a new course in Italian#end 17 17 #define( $newCourseIt )Nuovo corso#end 18 18 #define( $newCourseEn )New Course#end 19 19 #### END utility variables 20 -#if( $context.language == 'it' ) 21 -#set( $insertButton = $insertButtonIt ) 22 -#set( $insertText = $insertTextIt ) 23 -#set( $insertOtherLang = $insertOtherLangIt ) 24 -###set( $newCourse = $newCourseIt ) 25 -#set( $thisLang = 'language=it' ) 26 -#set( $otherLang = 'language=en' ) 27 -#else 28 -#set( $insertButton = $insertButtonEn ) 29 -#set( $insertText = $insertTextEn ) 30 -#set( $insertOtherLang = $insertOtherLangEn ) 31 -###set( $newCourse = $newCourseEn ) 32 -#set( $thisLang = 'language=en' ) 33 -#set( $otherLang = 'language=it' ) 34 -#end 35 -{{html clean="false" wiki="true"}} 36 -(% style="border-style: none; background-color:$theme.borderColor; padding: 5px; margin-bottom: 10px" %) 37 -(((<form action="" id="newpubs" method="post"> 38 -<input type="hidden" name="parent" value="Courses.WebHome"/> 39 -<input type="hidden" name="template" value="CourseTemplate"/> 40 -<input type="hidden" name="title" value=""/> 41 -<input type="hidden" name="sheet" value="1"/> 42 -<input type="hidden" name="webname" value="Courses" /> 43 -## button for new journal or series 44 -(((<input type="button" value="$insertButton" onclick='if( updateName(this.form.name) ) {this.form.action="../../edit/" + this.form.webname.value + "/" + this.form.name.value + "?$thisLang"; this.form.submit(); }'/>))) 45 -## text field for new journal or series document name 46 -(((<input type="text" name="name" value="<$insertText>" size="40" 47 - onfocus="if(this.value=='<$insertText>') this.value=''" 48 - onblur="if(this.value=='') this.value='<$insertText>'"/>))) 49 -## link for the same page in the other language 50 -(((<a href="$doc.getURL('view', $otherLang )"><em>$insertOtherLang</em></a>))) 51 -</form>))) 52 -{{/html}} 18 +{{/velocity}}{{include reference="Main.Class.New" excludeFirstHeading="true"/}} 53 53 54 -#if( $xcontext.language=="it" ) 55 -== Come inserire un nuovo corso in {{apice/}} == 20 +{{velocity}} 21 +{{italiano}} 22 +== Come inserire un $newObjectItaSingular.toLowerCase() in {{apice/}} == 56 56 57 57 Per aggiungere un nuovo corso in italiano allo spazio {{apice/}}, si deve innanzitutto scegliere un nome per il documento, scriverlo nel campo di testo sopra (“$insertTextIt”), quindi premere il pulsante a sinistra del campo (“$insertButtonIt”). Questo genera un nuovo documento {{apice/}} nello spazio ”Courses” che contiene una nuova presentazione in italiano, con il nome prescelto, e pronto a essere riempito con i dati relativi al corso. 58 58 ... ... @@ -65,7 +65,7 @@ 65 65 * il nome dovrebbe seguire la convenzione di nome delle Java Class—//camel case//, con iniziali maiuscole 66 66 67 67 Per esempio, quindi, il documento per il corso di “Sistemi Multi-Agente LS” per l'A.A. 2007-2008 dovrebbe avere il nome “SmaLs0708”. 68 - #else35 +{{/italiano}}{{english}} 69 69 == How to insert a new course in {{apice/}} == 70 70 71 71 In order to add a new course in English to the {{apice/}} space, you should first choose a name for your document, write it in the text field above (“$insertTextEn”), then click the left-side button (“$insertButtonEn”). This generates a new document in the “Courses” space, named after the name chosen, and ready to be filled with the course's information. ... ... @@ -79,5 +79,5 @@ 79 79 * it should follow the Java Class naming convention—CamelCase, UpperCase Initials 80 80 81 81 So for instance the document for the course “Sistemi Multi-Agente LS” of the A.Y. 2007-2008 should be named “SmaLs0708”. 82 - #end49 +{{/english}} 83 83 {{velocity}}