column_virtuality.twig 961 B

12345678910111213141516171819202122232425262728293031
  1. <select name="field_virtuality[{{ column_number }}]"
  2. id="field_{{ column_number }}_{{ ci - ci_offset }}"
  3. class="virtuality">
  4. {% for key, value in options %}
  5. <option value="{{ key }}"
  6. {%- if column_meta['Extra'] is defined
  7. and key != ''
  8. and strpos(column_meta['Extra'], key) is same as(0) %}
  9. selected="selected"
  10. {%- endif %}>
  11. {{ value }}
  12. </option>
  13. {% endfor %}
  14. </select>
  15. {% if char_editing == 'textarea' %}
  16. {% apply spaceless %}
  17. <textarea name="field_expression[{{ column_number }}]"
  18. cols="15"
  19. class="textfield expression">
  20. {{ expression }}
  21. </textarea>
  22. {% endapply %}
  23. {% else %}
  24. <input type="text"
  25. name="field_expression[{{ column_number }}]"
  26. size="12"
  27. value="{{ expression }}"
  28. placeholder="{% trans 'Expression' %}"
  29. class="textfield expression" />
  30. {% endif %}