General Actions:
Zaloguj się
Zarejestruj
Wiki:
xwiki
▼
:
Document Index
»
Space:
AppWithinMinutes
▼
:
Document Index
»
Page:
Content
Search
default
Page Actions:
Eksportuj
▼
:
Eksportuj jako PDF
Eksportuj jako HTML
More actions
▼
:
Podgląd wydruku
View Source
Main.WebHome
»
App Within Minutes
»
FormField Class
»
Wiki source code of
Content
Ukryj numery linii
1: {{velocity}} 2: #if ($type == 'edit') 3: #set ($className = $object.getxWikiClass().name) 4: #if ($doc.fullName == $className) 5: ## We are editing the class so the content must be read from / written to the template document. 6: #set ($name = 'templateContent') 7: #set ($editedDocument = $xwiki.getDocument("$stringtool.removeEnd($className, 'Class')Template")) 8: ## Don't load the WYSIWYG editor when editing the class, because it's too heavy. 9: #set ($useWysiwygEditor = false) 10: #else 11: ## We are editing an application entry so the content must be read from / written to the current document. 12: #set ($name = 'content') 13: #set ($editedDocument = $tdoc) 14: ## Use the preferred content editor. 15: #set ($useWysiwygEditor = $xwiki.getUserPreference('editor') == 'Wysiwyg') 16: #end 17: {{html clean="false"}} 18: #if (!$useWysiwygEditor) 19: <div id="xwikieditcontentinner"> 20: ## The tool bar may have an entry to insert an HTML macro. Make sure it doesn't break the HTML macro we are currently in. 21: #set ($toolBar = "#template('simpleedittoolbar.vm')") 22: $!toolBar.replace('{{', '{{') 23: #end 24: ## The "content" id is expected by some JavaScript and CSS code. 25: <textarea id="content" cols="80" rows="25" name="$name">$escapetool.xml($editedDocument.content)</textarea> 26: #if ($useWysiwygEditor) 27: #wysiwyg_editProperty($editedDocument 'content' true) 28: #else 29: </div> 30: #end 31: {{/html}} 32: #elseif ("$!type" != '') 33: ## Include the content of the current document. 34: {{include reference=""/}} 35: #else 36: The display mode is not specified! 37: #end 38: {{/velocity}}
Kategorie
Koncepcja
Gatunki
Stanowiska
Sponsorzy
Klasyfikacja