DEV: Show form templates in the composer (#21190)

This commit is contained in:
Keegan George
2023-05-29 14:47:18 -07:00
committed by GitHub
parent 5abe98afb5
commit c74c90bae5
26 changed files with 548 additions and 96 deletions

View File

@ -4,7 +4,7 @@ class Admin::FormTemplatesController < Admin::StaffController
before_action :ensure_form_templates_enabled
def index
form_templates = FormTemplate.all
form_templates = FormTemplate.all.order(:id)
render_serialized(form_templates, AdminFormTemplateSerializer, root: "form_templates")
end