2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:36:36 +08:00
discourse/spec/fabricators/form_template_fabricator.rb
Juan David Martínez Cubillos 72f9714ddc
FEATURE: Implement tag group selection in dropdown and multi-select for topic creation and preview when using Form Templates (#32108)
Adds support for a tag-chooser in form templates. It supports single tag
and multi tags. The source of the displayed tags has to be a tag_group
name.

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2025-04-17 08:38:03 -05:00

7 lines
161 B
Ruby

# frozen_string_literal: true
Fabricator(:form_template) do
name { sequence(:name) { |i| "template_#{i}" } }
template "---\n- type: input
id: name\n"
end