Skip to content

Commit

Permalink
Dev: new core XML configuration files for each question type
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikvitt committed Aug 28, 2018
1 parent 0d20657 commit 3ebe0fe
Show file tree
Hide file tree
Showing 28 changed files with 13,399 additions and 0 deletions.
278 changes: 278 additions & 0 deletions application/views/survey/questions/answer/5pointchoice/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
<?xml version="1.0" encoding="UTF-8"?>

<config>
<!-- Metadata -->
<metadata>
<name>5pointchoice</name>
<title>5 point choice</title>
<creationDate>09/08/2018</creationDate>
<author>Dominik Vitt</author>
<authorEmail>dominik.vitt@limesurvey.org</authorEmail>
<authorUrl>http://www.limesurvey.org</authorUrl>
<copyright>Copyright (C) 2005 - 2018 LimeSurvey Gmbh, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later</license>
<version>1.0</version>
<apiVersion>1</apiVersion>
<description>5 point choice question type configuration</description>
<type>5</type>
</metadata>

<!--
List of the css/js files to load.
Any file here will be loaded via the asset manager (when in config.php debug = 0)
-->
<files>
<css>
<filename></filename>
</css>
<js>
<filename></filename>
</js>
<preview>
<filename></filename>
</preview>
</files>

<!-- Question attributes -->
<attributes>
<attribute>
<name>statistics_showgraph</name>
<category>Statistics</category>
<inputtype>switch</inputtype>
<sortorder>101</sortorder>
<options>
<option>
<value>1</value>
<text>Yes</text>
</option>
<option>
<value>0</value>
<text>No</text>
</option>
</options>
<help>Display a chart in the statistics?</help>
<caption>Display chart</caption>
<default>1</default>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
<expression></expression>
</attribute>
<attribute>
<name>statistics_graphtype</name>
<category>Statistics</category>
<inputtype>singleselect</inputtype>
<sortorder>102</sortorder>
<options>
<option>
<value>0</value>
<text>Bar chart</text>
</option>
<option>
<value>1</value>
<text>Pie chart</text>
</option>
<option>
<value>2</value>
<text>Radar</text>
</option>
<option>
<value>3</value>
<text>Line</text>
</option>
<option>
<value>4</value>
<text>PolarArea</text>
</option>
<option>
<value>5</value>
<text>Doughnut</text>
</option>
</options>
<help>Select the type of chart to be displayed</help>
<caption>Chart type</caption>
<default>0</default>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
<expression></expression>
</attribute>
<attribute>
<name>hide_tip</name>
<category>Display</category>
<sortorder>100</sortorder>
<inputtype>switch</inputtype>
<options>
<option>
<value>0</value>
<text>No</text>
</option>
<option>
<value>1</value>
<text>Yes</text>
</option>
</options>
<default>0</default>
<help>Hide the tip that is normally shown with a question</help>
<caption>Hide tip</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
<expression></expression>
</attribute>
<attribute>
<name>hidden</name>
<category>Display</category>
<sortorder>101</sortorder>
<inputtype>switch</inputtype>
<options>
<option>
<value>0</value>
<text>No</text>
</option>
<option>
<value>1</value>
<text>Yes</text>
</option>
</options>
<default>0</default>
<help>Hide this question at any time. This is useful for including data using answer prefilling.</help>
<caption>Always hide this question</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
<expression></expression>
</attribute>
<attribute>
<name>cssclass</name>
<category>Display</category>
<sortorder>102</sortorder>
<inputtype>text</inputtype>
<expression>1</expression>
<help>Add additional CSS class(es) for this question. Use a space between multiple CSS class names. You may use expressions - remember this part is static.</help>
<caption>CSS class(es)</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
<attribute>
<name>page_break</name>
<category>Other</category>
<sortorder>100</sortorder>
<inputtype>switch</inputtype>
<options>
<option>
<value>0</value>
<text>No</text>
</option>
<option>
<value>1</value>
<text>Yes</text>
</option>
</options>
<default>0</default>
<help>Insert a page break before this question in printable view by setting this to Yes.</help>
<caption>Insert page break in printable view</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
<expression></expression>
</attribute>
<attribute>
<name>printable_help</name>
<category>Display</category>
<sortorder>201</sortorder>
<inputtype>text</inputtype>
<expression>1</expression>
<i18n>1</i18n>
<default></default>
<help>In the printable version replace the relevance equation with this explanation text.</help>
<caption>Relevance help for printable survey</caption>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
</attribute>
<attribute>
<name>public_statistics</name>
<category>Statistics</category>
<sortorder>80</sortorder>
<inputtype>switch</inputtype>
<options>
<option>
<value>0</value>
<text>No</text>
</option>
<option>
<value>1</value>
<text>Yes</text>
</option>
</options>
<default>0</default>
<help>Show statistics of this question in the public statistics page</help>
<caption>Show in public statistics</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
<expression></expression>
</attribute>
<attribute>
<name>slider_rating</name>
<category>Display</category>
<sortorder>90</sortorder>
<inputtype>buttongroup</inputtype>
<options>
<option>
<value>0</value>
<text>Off</text>
</option>
<option>
<value>1</value>
<text>Stars</text>
</option>
<option>
<value>2</value>
<text>Slider with emoticon</text>
</option>
</options>
<default>0</default>
<help>Use slider layout</help>
<caption>Use slider layout</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
<expression></expression>
</attribute>
<attribute>
<name>random_group</name>
<category>Logic</category>
<sortorder>180</sortorder>
<inputtype>text</inputtype>
<help>Place questions into a specified randomization group, all questions included in the specified group will appear in a random order</help>
<caption>Randomization group name</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
<expression></expression>
</attribute>
<attribute>
<name>question_template</name>
<category>Display</category>
<sortorder>100</sortorder>
<inputtype>question_template</inputtype>
<default>core</default>
<help>Use a customized question theme for this question</help>
<caption>Question theme</caption>
<i18n></i18n>
<readonly></readonly>
<readonly_when_active></readonly_when_active>
<expression></expression>
</attribute>
</attributes>

<!-- Core question js/css configuration -->
<engine>
<load_core_css>true</load_core_css>
<load_core_js>true</load_core_js>
<show_as_template>true</show_as_template>
<show_as_question_type>true</show_as_question_type>
</engine>
</config>

0 comments on commit 3ebe0fe

Please sign in to comment.