Difference between revisions of "CreateTopicForm"

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search
 
Line 29: Line 29:
 
{%- set dump = property_properties.append(pp) -%}
 
{%- set dump = property_properties.append(pp) -%}
 
{%- endfor %}
 
{%- endfor %}
Debug properties:{{ properties }}
 
Debug topic_properties:{{ topic_properties }}
 
Debug property_printouts:{{ property_printouts.query_vars }}
 
Debug topic_property_properties:{{ topic_property_properties }}
 
Debug property_properties:{{ property_properties }}
 
 
<noinclude>
 
<noinclude>
 
This is the {{'{{'}}smartMediaWiki{{'}}'}}-Form for "{{ row.name }}".
 
This is the {{'{{'}}smartMediaWiki{{'}}'}}-Form for "{{ row.name }}".
Line 58: Line 53:
 
<!-- {{ pp["type"] }} {{ pp["name"] }} -->
 
<!-- {{ pp["type"] }} {{ pp["name"] }} -->
 
| {{'{{{'}}field
 
| {{'{{{'}}field
|{{ pp["name"] }}
+
    |{{ pp["name"] }}
|property={{ row.name }} {{ pp["name"] }}
+
    |property={{ row.name }} {{ pp["name"] }}
|size= {%- if pp["size"] -%} {{ pp["size"] }} {% else %} 80 {% endif %}
+
    |size= {%- if pp["size"] -%} {{ pp["size"] }} {% else %} 80 {% endif %}
{%- if pp["mandatory"] or pp["mandatory"] == 'True' or pp["mandatory"] == 'T' or pp["mandatory"] == 't' or pp["mandatory"] == 'true' -%}|mandatory {%- endif %}
+
    {%- if pp["mandatory"] and (pp["mandatory"] == 'True' or pp["mandatory"] == 'T' or pp["mandatory"] == 't' or pp["mandatory"] == 'true') -%}|mandatory {%- endif %}
{%- if pp["inputType"] -%}|input type={{ pp["inputType"] }} {% endif %}
+
    {%- if pp["inputType"] -%}|input type={{ pp["inputType"] }} {% endif %}
{%- if pp["allowedValues"] -%}|values={{ pp["allowedValues"] }} {% endif %}
+
    {%- if pp["allowedValues"] -%}|values={{ pp["allowedValues"] }} {% endif %}
{%- if pp["values from "] -%}|values from {{ pp["values from "] }} {% endif %}
+
    {%- if pp["values from "] -%}|values from {{ pp["values from "] }} {% endif %}
{%- if pp["default"] -%}|default={{ pp["default"] }} {% endif %}
+
    {%- if pp["default"] -%}|default={{ pp["default"] }} {% endif %}
 
{{'}}}'}}
 
{{'}}}'}}
 
{%- endfor %}
 
{%- endfor %}
Line 88: Line 83:
 
<!-- {{ pp["type"] }} {{ pp["name"] }} -->
 
<!-- {{ pp["type"] }} {{ pp["name"] }} -->
 
| {{'{{{'}}field
 
| {{'{{{'}}field
|{{ pp["name"] }}
+
    |{{ pp["name"] }}
|property=Property {{ pp["name"] }}
+
    |property=Property {{ pp["name"] }}
|size= {%- if pp["size"] -%} {{ pp["size"] }} {% else %} 80 {% endif %}
+
    |size= {%- if pp["size"] -%} {{ pp["size"] }} {% else %} 80 {% endif %}
{%- if pp["mandatory"] or pp["mandatory"] == 'True' or pp["mandatory"] == 'T' or pp["mandatory"] == 't' or pp["mandatory"] == 'true' -%}|mandatory {%- endif %}
+
    {%- if pp["mandatory"] and (pp["mandatory"] == 'True' or pp["mandatory"] == 'T' or pp["mandatory"] == 't' or pp["mandatory"] == 'true') -%}|mandatory {%- endif %}
{%- if pp["inputType"] -%}|input type={{ pp["inputType"] }} {% endif %}
+
    {%- if pp["inputType"] -%}|input type={{ pp["inputType"] }} {% endif %}
{%- if pp["allowedValues"] -%}|values={{ pp["allowedValues"] }} {% endif %}
+
    {%- if pp["allowedValues"] -%}|values={{ pp["allowedValues"] }} {% endif %}
{%- if pp["values from "] -%}|values from {{ pp["values from "] }} {% endif %}
+
    {%- if pp["values from "] -%}|values from {{ pp["values from "] }} {% endif %}
{%- if pp["default"] -%}|default={{ pp["default"] }} {% endif %}
+
    {%- if pp["default"] -%}|default={{ pp["default"] }} {% endif %}
 
{{'}}}'}}
 
{{'}}}'}}
 
{%- endfor %}
 
{%- endfor %}

Latest revision as of 01:59, 15 February 2021

Sourcecode

Sourcecode
edit
id  CreateTopicForm
lang  jinja
author  Tim Holzheim
since  2021/02/14
test  
'"`UNIQ--pre-00000000-QINU`"'
url  

Freitext