Wiki source code of P4P AppsSheet
Version 3.1 by Zenna Elfen on 2025/11/24 10:26
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | #set ($object = $doc.getObject('P4P Apps.Code.P4P AppsClass')) | ||
| 3 | #if (!$object) | ||
| 4 | #set ($messageKey = 'p4p apps.sheet.description') | ||
| 5 | #set ($messageType = 'info') | ||
| 6 | #if ($doc.documentReference.name != 'P4P AppsSheet') | ||
| 7 | #set ($messageKey = 'p4p apps.sheet.noObject') | ||
| 8 | #set ($messageType = 'warning') | ||
| 9 | #end | ||
| 10 | {{$messageType}} | ||
| 11 | $services.localization.render($messageKey) | ||
| 12 | {{/$messageType}} | ||
| 13 | #stop | ||
| 14 | #end | ||
| 15 | #set ($discard = $xwiki.jsfx.use('uicomponents/edit/editableProperty.js', { | ||
| 16 | 'forceSkinAction': true, | ||
| 17 | 'language': $xcontext.locale | ||
| 18 | })) | ||
| 19 | #set ($discard = $doc.use($object)) | ||
| 20 | #set ($editing = $xcontext.action == 'edit') | ||
| 21 | {{html wiki="true" clean="false"}} | ||
| 22 | <div class="xform"> | ||
| 23 | <dl> | ||
| 24 | <dt #if (!$editing && $hasEdit) | ||
| 25 | class="editableProperty" | ||
| 26 | data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('title1')))" | ||
| 27 | data-property-type="object"#end> | ||
| 28 | <label#if ($editing) for="P4P Apps.Code.P4P AppsClass_0_title1"#end> | ||
| 29 | $escapetool.xml($doc.displayPrettyName('title1', false, false)) | ||
| 30 | </label> | ||
| 31 | <span class="xHint"> | ||
| 32 | $escapetool.xml($services.localization.render('What is the application called?')) | ||
| 33 | </span> | ||
| 34 | </dt> | ||
| 35 | <dd>$doc.display('title1')</dd> | ||
| 36 | <dt #if (!$editing && $hasEdit) | ||
| 37 | class="editableProperty" | ||
| 38 | data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('shortText1')))" | ||
| 39 | data-property-type="object"#end> | ||
| 40 | <label#if ($editing) for="P4P Apps.Code.P4P AppsClass_0_shortText1"#end> | ||
| 41 | $escapetool.xml($doc.displayPrettyName('shortText1', false, false)) | ||
| 42 | </label> | ||
| 43 | <span class="xHint"> | ||
| 44 | $escapetool.xml($services.localization.render('What is the website for the application?')) | ||
| 45 | </span> | ||
| 46 | </dt> | ||
| 47 | <dd>$doc.display('shortText1')</dd> | ||
| 48 | <dt #if (!$editing && $hasEdit) | ||
| 49 | class="editableProperty" | ||
| 50 | data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('page1')))" | ||
| 51 | data-property-type="object"#end> | ||
| 52 | <label#if ($editing) for="P4P Apps.Code.P4P AppsClass_0_page1"#end> | ||
| 53 | $escapetool.xml($doc.displayPrettyName('page1', false, false)) | ||
| 54 | </label> | ||
| 55 | <span class="xHint"> | ||
| 56 | $escapetool.xml($services.localization.render('Hint')) | ||
| 57 | </span> | ||
| 58 | </dt> | ||
| 59 | <dd>$doc.display('page1')</dd> | ||
| 60 | <dt #if (!$editing && $hasEdit) | ||
| 61 | class="editableProperty" | ||
| 62 | data-property="$escapetool.xml($services.model.serialize($object.getPropertyReference('content1')))" | ||
| 63 | data-property-type="object"#end> | ||
| 64 | <label#if ($editing) for="P4P Apps.Code.P4P AppsClass_0_content1"#end> | ||
| 65 | $escapetool.xml($doc.displayPrettyName('content1', false, false)) | ||
| 66 | </label> | ||
| 67 | <span class="xHint"> | ||
| 68 | $escapetool.xml($services.localization.render('Add an image by clicking on the image button and uploading your picture. ')) | ||
| 69 | </span> | ||
| 70 | </dt> | ||
| 71 | <dd>$doc.display('content1')</dd> | ||
| 72 | </dl> | ||
| 73 | </div> | ||
| 74 | {{/html}} | ||
| 75 | {{/velocity}} |