Modifiche per il documento Nuovo corso
Dalla versione 13.1
modificato da Andrea Omicini
il 15/03/2022 18:46
il 15/03/2022 18:46
Cambia il commento:
Nessun commento per questa versione
Alla versione 15.1
modificato da Andrea Omicini
il 22/07/2022 01:16
il 22/07/2022 01:16
Cambia il commento:
Nessun commento per questa versione
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,56 +1,23 @@ 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.ClassNew" excludeFirstHeading="true"/}} 53 53 20 +{{velocity}} 54 54 #if( $xcontext.language=="it" ) 55 55 == Come inserire un nuovo corso in {{apice/}} == 56 56