search_and_replace.twig 757 B

12345678910111213141516171819202122232425
  1. {% trans 'Find:' %}
  2. <input type="text" value="" name="find" required />
  3. {% trans 'Replace with:' %}
  4. <input type="text" value="" name="replaceWith" />
  5. {% trans 'Column:' %}
  6. <select name="columnIndex">
  7. {% for i in 0..column_names|length - 1 %}
  8. {% set type = preg_replace('@\\(.*@s', '', column_types[i]) %}
  9. {% if sql_types.getTypeClass(type) == 'CHAR' %}
  10. {% set column = column_names[i] %}
  11. <option value="{{ i }}">
  12. {{ column }}
  13. </option>
  14. {% endif %}
  15. {% endfor %}
  16. </select>
  17. {% include 'checkbox.twig' with {
  18. 'html_field_id': 'useRegex',
  19. 'html_field_name': 'useRegex',
  20. 'label': 'Use regular expression'|trans,
  21. 'checked': false,
  22. 'onclick': false
  23. } only %}