~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to views/forms.twig

  • Committer: Dan Garner
  • Date: 2016-02-01 11:09:24 UTC
  • mfrom: (454.4.85)
  • Revision ID: git-v1:c2a7712fa4fd339a76780537fc77492c50667b9d
Merge pull request #135 from dasgarner/develop

Fixes for alpha3

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
 
143
143
                {% for option in tempOptions %}
144
144
 
145
 
                    {% set itemOptionId = attribute(option, optionId) %}
146
 
                    {% set itemOptionValue = attribute(option, optionValue) %}
 
145
                    {% if optionId == "" %}
 
146
                        {% set itemOptionId = option %}
 
147
                        {% set itemOptionValue = option %}
 
148
                    {% else %}
 
149
                        {% set itemOptionId = attribute(option, optionId) %}
 
150
                        {% set itemOptionValue = attribute(option, optionValue) %}
 
151
                    {% endif %}
147
152
 
148
153
                    {% if type == "dropdownmulti" %}
149
154
                        {% set selected = (itemOptionId in value) %}