Go to file
Chirag Chhatrala 61e9493e1e
Add Template Creation Functionality in Admin Panel (#729)
* Add create template functionality in Admin Panel

- Implemented a new endpoint for creating templates in AdminController, utilizing the GenerateTemplate command.
- Added a form in the admin settings Vue component to allow users to input a template description and submit it.
- Enhanced the user experience with loading states and success/error alerts during template creation.

These changes facilitate the generation of new form templates directly from the admin interface, improving usability and functionality.

* Update template prompt validation length in AdminController

- Increased the maximum length of the 'template_prompt' field from 1000 to 4000 characters in the createTemplate method.

This change allows for more extensive template descriptions, enhancing the flexibility of template creation in the admin panel.

* Refactor template generation to use job-based approach

- Migrate template generation logic from the GenerateTemplate command to a new GenerateTemplateJob class for improved separation of concerns and better handling of asynchronous processing.
- Update AdminController to utilize the new job for generating templates, enhancing maintainability and clarity in the codebase.
- Remove unused dependencies and streamline the command's handle method for better performance and readability.

* fix lint

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-03-25 12:14:09 +01:00
.cursor/rules Enhance Back-end and Front-end Documentation 2025-03-15 10:21:31 +08:00
.github Update GitHub Actions workflow to use latest GitHub Actions versions 2025-02-01 22:11:54 +01:00
api Add Template Creation Functionality in Admin Panel (#729) 2025-03-25 12:14:09 +01:00
client Add Template Creation Functionality in Admin Panel (#729) 2025-03-25 12:14:09 +01:00
docker Refactor form property logic rule to load condition mapping from external JSON file (#698) 2025-02-14 22:32:55 +00:00
docs Update Docker Documentation to Address Line Ending Issues for Windows Users 2025-03-21 16:30:59 +01:00
integrations/zapier Updated zapier integration version 2024-08-23 09:42:44 +02:00
scripts Simplify Docker development setup with minimal configuration 2025-01-29 18:44:42 +01:00
.dockerignore Refactor Docker configuration and development setup 2025-01-29 17:19:36 +01:00
.editorconfig Initial commit 2022-09-20 21:59:52 +02:00
.gitattributes Initial commit 2022-09-20 21:59:52 +02:00
.gitignore Developer docker setup (#683) 2025-01-28 17:52:48 +01:00
LICENSE Changing license to AGPL 2022-09-20 22:03:59 +02:00
README.md Simplify Docker development setup with minimal configuration 2025-01-29 18:44:42 +01:00
amplify.yml Attempt to simplify build 2024-01-08 22:30:58 +01:00
docker-compose.dev.yml Simplify Docker development setup with minimal configuration 2025-01-29 18:44:42 +01:00
docker-compose.yml Remove bootstrap cache volume from docker-compose.yml 2025-01-29 21:45:50 +01:00
generate_tax_exports_2024.sh Update Docker Documentation to Address Line Ending Issues for Windows Users 2025-03-21 16:30:59 +01:00

README.md

OpnForm

Github Stars Commits per month License Report a bug Ask a question Ask a question Ask a question Open Bounties Rewarded Bounties

OpnForm is an open-source form builder.

Get Started

The easiest way to get started with OpnForm is to sign up for our managed service in the Cloud. You get support, backups, upgrades, and more. Your data is safe and secure, and you don't need to worry about maintenance or infrastructure. Check out our quick overview of cloud vs self-hosting.

Key Features

  • 🚀 No-code builder with unlimited forms & submissions
  • 📝 Various input types: Text, Date, URL, File uploads & much more
  • 🌐 Embed anywhere
  • 📧 Email notifications
  • 💬 Integrations (Slack, Webhooks, Discord)
  • 🧠 Form logic & customization
  • 🛡️ Captcha protection
  • 📊 Form analytics

For a complete list of features and detailed documentation, visit our Technical Documentation.

Quick Start

The easiest way to get started with OpnForm is through our official managed service in the Cloud.

For self-hosted installations, please refer to our Deployment Guides. For local development, we provide a minimal Docker-based setup - check out our Docker Development Guide.

Support & Community

If you need help or have questions, please join our Discord community. For more information and assistance, check out the following resources:

License

OpnForm is open-source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can find it here.