From b0bfa388bfc63f24ab660cffef700074eb6c079d Mon Sep 17 00:00:00 2001 From: jensp Date: Fri, 5 Dec 2014 12:41:05 +0000 Subject: [PATCH] Foundry now supports the ccm-cms-types-decisiontree git-svn-id: https://svn.libreccm.org/ccm/trunk@3007 8810af33-2d31-482b-a856-94f89814c4df --- .../themes/foundry-base/conf/templates.xml | 3 + .../content-items/decisiontree-detail.xml | 35 +++ .../templates/portlets/simple-portlet.xml | 8 + .../foundry-base/texts/decisiontree.xml | 11 + .../web/themes/foundry-base/user/user.xsl | 43 ++++ .../lib/template-tags/content-items.xsl | 1 + .../content-items/decisiontree.xsl | 230 ++++++++++++++++++ .../template-tags/portlets/simple-portlet.xsl | 33 +++ 8 files changed, 364 insertions(+) create mode 100644 ccm-core/web/themes/foundry-base/templates/content-items/decisiontree-detail.xml create mode 100644 ccm-core/web/themes/foundry-base/templates/portlets/simple-portlet.xml create mode 100644 ccm-core/web/themes/foundry-base/texts/decisiontree.xml create mode 100644 ccm-core/web/themes/foundry-base/user/user.xsl create mode 100644 ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/decisiontree.xsl create mode 100644 ccm-core/web/themes/foundry/foundry/lib/template-tags/portlets/simple-portlet.xsl diff --git a/ccm-core/web/themes/foundry-base/conf/templates.xml b/ccm-core/web/themes/foundry-base/conf/templates.xml index 74390ca58..51742526e 100644 --- a/ccm-core/web/themes/foundry-base/conf/templates.xml +++ b/ccm-core/web/themes/foundry-base/conf/templates.xml @@ -21,6 +21,9 @@ content-items/bookmark-detail.xml + + content-items/decisiontree-detail.xml + content-items/event-detail.xml diff --git a/ccm-core/web/themes/foundry-base/templates/content-items/decisiontree-detail.xml b/ccm-core/web/themes/foundry-base/templates/content-items/decisiontree-detail.xml new file mode 100644 index 000000000..98dbc5237 --- /dev/null +++ b/ccm-core/web/themes/foundry-base/templates/content-items/decisiontree-detail.xml @@ -0,0 +1,35 @@ + + + + + +
+ +
+ +
+ +

+ +

+ +
+ +
+ + + decisiontree-section + formgroup + option-label + option-input + submit-cancel-section + decisiontree-cancel + decisiontree-submit + + +
+
+ +
\ No newline at end of file diff --git a/ccm-core/web/themes/foundry-base/templates/portlets/simple-portlet.xml b/ccm-core/web/themes/foundry-base/templates/portlets/simple-portlet.xml new file mode 100644 index 000000000..6d0a55a39 --- /dev/null +++ b/ccm-core/web/themes/foundry-base/templates/portlets/simple-portlet.xml @@ -0,0 +1,8 @@ + + + +
+ +
+ +
\ No newline at end of file diff --git a/ccm-core/web/themes/foundry-base/texts/decisiontree.xml b/ccm-core/web/themes/foundry-base/texts/decisiontree.xml new file mode 100644 index 000000000..7837bc65e --- /dev/null +++ b/ccm-core/web/themes/foundry-base/texts/decisiontree.xml @@ -0,0 +1,11 @@ + + + + Abbrechen + Cancel + + + Weiter + Next + + \ No newline at end of file diff --git a/ccm-core/web/themes/foundry-base/user/user.xsl b/ccm-core/web/themes/foundry-base/user/user.xsl new file mode 100644 index 000000000..4b3eca6b1 --- /dev/null +++ b/ccm-core/web/themes/foundry-base/user/user.xsl @@ -0,0 +1,43 @@ + + + + ]> + + + + + + \ No newline at end of file diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl index 0ab29fb31..aba772b61 100644 --- a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items.xsl @@ -31,6 +31,7 @@ + diff --git a/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/decisiontree.xsl b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/decisiontree.xsl new file mode 100644 index 000000000..d2e260792 --- /dev/null +++ b/ccm-core/web/themes/foundry/foundry/lib/template-tags/content-items/decisiontree.xsl @@ -0,0 +1,230 @@ + + + + + + Tags for displaying a Decisiontree item + +

+ The tags are used to configure the output of the decisiontree item. For technical + reasons it is not yet possible to customise the HTML for the decisiontree + completely. +

+

+ For title and description of the decisiontree the standard tags can be used. +

+
+
+ + + +

+ Root element for outputting the current section of a decisiontree. +

+
+
+ + + + + + + + + + + + + + + + + + + + +

+ Outputs the title of the current section of a decisiontree. +

+
+
+ + + + + + + + +

+ Outputs the instructions for the current section of a decisiontree. +

+
+
+ + + + + + + + +

+ Outputs the options for the current section of a decisiontree. This tag outputs + a complete HTML form because the current implementation of the decisiontree does not + provide enough information in the XML to support a fully customisable HTML. +

+

+ Nevertheless this it is possible to customise the classes set on various of the HTML + in the created form using subelements: +

+
+
+ class-form +
+
+ Classes for the form itself. +
+
+ class-formgroup +
+
+ Classes to set on the div surrouding each pair of a label and an + input element. +
+
+ class-label +
+
+ Classes to set on each label. +
+
+ class-input +
+
+ Classes to set on each input element. +
+
+ class-buttons +
+
+ Classes to set on the div surrounding the submit and cancel button. +
+
+ class-cancel +
+
+ Classes to set on the cancel button. +
+
+ class-submit +
+
+ Classes to set on the submit button. +
+
+
+
+ + + + + + + + + + + + + + +