options_zoom.twig 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <table class="data">
  2. {# Select options for data label #}
  3. <tr>
  4. <td>
  5. <label for="dataLabel">
  6. {% trans 'Use this column to label each point' %}
  7. </label>
  8. </td>
  9. <td>
  10. <select name="dataLabel" id="dataLabel" >
  11. <option value = "">
  12. {% trans 'None' %}
  13. </option>
  14. {% for i in 0..column_names|length - 1 %}
  15. {% if data_label is defined and data_label == column_names[i]|e %}
  16. <option value="{{ column_names[i] }}" selected="selected">
  17. {{ column_names[i] }}
  18. </option>
  19. {% else %}
  20. <option value="{{ column_names[i] }}" >
  21. {{ column_names[i] }}
  22. </option>
  23. {% endif %}
  24. {% endfor %}
  25. </select>
  26. </td>
  27. </tr>
  28. {# Inputbox for changing default maximum rows to plot #}
  29. <tr>
  30. <td>
  31. <label for="maxRowPlotLimit">
  32. {% trans 'Maximum rows to plot' %}
  33. </label>
  34. </td>
  35. <td>
  36. <input type="number"
  37. name="maxPlotLimit"
  38. id="maxRowPlotLimit"
  39. required="required"
  40. value="{{ max_plot_limit }}" />
  41. </td>
  42. </tr>
  43. </table>