Figured out auth & middlewares

This commit is contained in:
Julien Nahum 2023-12-16 19:21:03 +01:00
parent be891b0615
commit 7c2db2052a
38 changed files with 4862 additions and 1189 deletions

View File

@ -168,7 +168,7 @@ export default {
return null
},
workspace () {
return this.workspacesStore.getCurrent()
return this.workspacesStore.getCurrent
},
paidPlansEnabled () {
return this.config.paid_plans_enabled

View File

@ -69,7 +69,7 @@ export default {
computed: {
workspace () {
return this.workspacesStore.getCurrent()
return this.workspacesStore.getCurrent
}
},

View File

@ -41,7 +41,6 @@
</template>
<script>
import Cookies from 'js-cookie'
import ForgotPasswordModal from '../ForgotPasswordModal.vue'
export default {

View File

@ -32,7 +32,7 @@
<template-tags :slug="template.slug"
class="flex mt-4 items-center flex-wrap gap-3"
/>
<router-link :to="{params:{slug:template.slug},name:'templates.show'}" title="">
<router-link :to="{params:{slug:template.slug},name:'templates-slug'}" title="">
<span class="absolute inset-0" aria-hidden="true" />
</router-link>
</div>

View File

@ -45,7 +45,7 @@
<div class="grid grid-cols-1 gap-8 mt-8 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<router-link v-for="row in types" :key="row.slug"
:to="{params:{slug:row.slug}, name:'templates.types.show'}"
:to="{params:{slug:row.slug}, name:'templates-types'}"
:title="row.name"
class="text-gray-600 dark:text-gray-400 transition-colors duration-300 hover:text-nt-blue"
>
@ -65,7 +65,7 @@
<div class="grid grid-cols-1 gap-8 mt-8 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<router-link v-for="row in industries" :key="row.slug"
:to="{params:{slug:row.slug}, name:'templates.industries.show'}"
:to="{params:{slug:row.slug}, name:'templates-industries'}"
:title="row.name"
class="text-gray-600 dark:text-gray-400 transition-colors duration-300 hover:text-nt-blue"
>

View File

@ -1,8 +1,6 @@
import {serialize} from 'object-to-formdata';
import Errors from './Errors';
import cloneDeep from 'clone-deep';
import {useOpnFetch} from "~/composables/useOpnFetch.js";
function hasFiles(data) {
return data instanceof File ||
data instanceof Blob ||
@ -124,7 +122,7 @@ class Form {
}
return new Promise((resolve, reject) => {
useOpnFetch(config.url, config)
useOpnApi(config.url, config)
.then(({data, error}) => {
if (error.value) {
this.handleErrors(error);

View File

@ -2,7 +2,10 @@ import amplitude from 'amplitude-js'
import config from '~/opnform.config.js'
export default () => {
const amplitudeClient = config.amplitude_code ? amplitude.getInstance().init(config.amplitude_code) : null;
const amplitudeClient = config.amplitude_code ? amplitude.getInstance() : null;
if (amplitudeClient) {
amplitudeClient.init(config.amplitude_code)
}
const logEvent = function (eventName, eventData) {
if (!config.production || !amplitudeClient) {
@ -17,11 +20,12 @@ export default () => {
}
const setUser = function (user) {
if (!amplitudeClient) return
amplitudeClient.setUserId(user.id)
amplitudeClient.setUserProperties({
email: this.user.email,
subscribed: this.user.is_subscribed,
enterprise_subscription: this.user.has_enterprise_subscription
email: user.email,
subscribed: user.is_subscribed,
enterprise_subscription: user.has_enterprise_subscription
})
}

49
client/composables/useOpnApi.js vendored Normal file
View File

@ -0,0 +1,49 @@
import config from "~/opnform.config.js";
function addAuthHeader(request, options) {
const authStore = useAuthStore()
if (authStore.token) {
options.headers = {Authorization: `Bearer ${authStore.token}`, ...options.headers}
}
}
function addPasswordToFormRequest(request, options) {
const url = request.url
if (!url || !url.startsWith('/api/forms/')) return
const slug = url.split('/')[3]
const passwordCookie = useCookie('password-' + slug, {maxAge: 60 * 60 * 24 * 30}) // 30 days
if (slug !== undefined && slug !== '' && passwordCookie.value !== undefined) {
options.headers['form-password'] = passwordCookie.value
}
}
export function getOpnRequestsOptions(request, opts) {
opts.headers = {accept: 'application/json', ...opts.headers}
addAuthHeader(request, opts)
addPasswordToFormRequest(request, opts)
return {
baseURL: config.api_url,
onResponseError({response}) {
const authStore = useAuthStore()
const {status} = response
if (status === 401 && authStore.check) {
console.log("Logging out due to 401")
authStore.logout()
useRouter().push({name: 'login'})
}
if (status >= 500) {
console.error('Request error', status)
}
},
...opts
}
}
export const useOpnApi = (request, opts = {}) => {
return useFetch(request, getOpnRequestsOptions(request, opts))
}

View File

@ -1,5 +0,0 @@
import config from "~/opnform.config.js";
export const useOpnFetch = (request, opts) => {
return useFetch(request, { baseURL: config.api_url, ...opts })
}

View File

@ -0,0 +1,248 @@
[
"AF+93",
"AX+358",
"AL+355",
"DZ+213",
"AS+1684",
"AD+376",
"AO+244",
"AI+1264",
"AQ+672",
"AG+1268",
"AR+54",
"AM+374",
"AW+297",
"AU+61",
"AT+43",
"AZ+994",
"BS+1242",
"BH+973",
"BD+880",
"BB+1246",
"BY+375",
"BE+32",
"BZ+501",
"BJ+229",
"BM+1441",
"BT+975",
"BO+591",
"BA+387",
"BW+267",
"BV+47",
"BR+55",
"IO+246",
"BN+673",
"BG+359",
"BF+226",
"BI+257",
"KH+855",
"CM+237",
"CA+1",
"CV+238",
"KY+345",
"CF+236",
"TD+235",
"CL+56",
"CN+86",
"CX+61",
"CC+61",
"CO+57",
"KM+269",
"CG+242",
"CD+243",
"CK+682",
"CR+506",
"CI+225",
"HR+385",
"CU+53",
"CY+357",
"CZ+420",
"DK+45",
"DJ+253",
"DM+1767",
"DO+1849",
"EC+593",
"EG+20",
"SV+503",
"GQ+240",
"ER+291",
"EE+372",
"ET+251",
"FK+500",
"FO+298",
"FJ+679",
"FI+358",
"FR+33",
"GF+594",
"PF+689",
"TF+262",
"GA+241",
"GM+220",
"GE+995",
"DE+49",
"GH+233",
"GI+350",
"GR+30",
"GL+299",
"GD+1473",
"GP+590",
"GU+1671",
"GT+502",
"GG+44",
"GN+224",
"GW+245",
"GY+592",
"HT+509",
"HM+672",
"VA+379",
"HN+504",
"HK+852",
"HU+36",
"IS+354",
"IN+91",
"ID+62",
"IR+98",
"IQ+964",
"IE+353",
"IM+44",
"IL+972",
"IT+39",
"JM+1876",
"JP+81",
"JE+44",
"JO+962",
"KZ+7",
"KE+254",
"KI+686",
"KP+850",
"KR+82",
"XK+383",
"KW+965",
"KG+996",
"LA+856",
"LV+371",
"LB+961",
"LS+266",
"LR+231",
"LY+218",
"LI+423",
"LT+370",
"LU+352",
"MO+853",
"MK+389",
"MG+261",
"MW+265",
"MY+60",
"MV+960",
"ML+223",
"MT+356",
"MH+692",
"MQ+596",
"MR+222",
"MU+230",
"YT+262",
"MX+52",
"FM+691",
"MD+373",
"MC+377",
"MN+976",
"ME+382",
"MS+1664",
"MA+212",
"MZ+258",
"MM+95",
"NA+264",
"NR+674",
"NP+977",
"NL+31",
"AN+599",
"NC+687",
"NZ+64",
"NI+505",
"NE+227",
"NG+234",
"NU+683",
"NF+672",
"MP+1670",
"NO+47",
"OM+968",
"PK+92",
"PW+680",
"PS+970",
"PA+507",
"PG+675",
"PY+595",
"PE+51",
"PH+63",
"PN+64",
"PL+48",
"PT+351",
"PR+1939",
"QA+974",
"RO+40",
"RU+7",
"RW+250",
"RE+262",
"BL+590",
"SH+290",
"KN+1869",
"LC+1758",
"MF+590",
"PM+508",
"VC+1784",
"WS+685",
"SM+378",
"ST+239",
"SA+966",
"SN+221",
"RS+381",
"SC+248",
"SL+232",
"SG+65",
"SK+421",
"SI+386",
"SB+677",
"SO+252",
"ZA+27",
"SS+211",
"GS+500",
"ES+34",
"LK+94",
"SD+249",
"SR+597",
"SJ+47",
"SZ+268",
"SE+46",
"CH+41",
"SY+963",
"TW+886",
"TJ+992",
"TZ+255",
"TH+66",
"TL+670",
"TG+228",
"TK+690",
"TO+676",
"TT+1868",
"TN+216",
"TR+90",
"TM+993",
"TC+1649",
"TV+688",
"UG+256",
"UA+380",
"AE+971",
"GB+44",
"US+1",
"UY+598",
"UZ+998",
"VU+678",
"VE+58",
"VN+84",
"VG+1284",
"VI+1340",
"WF+681",
"YE+967",
"ZM+260",
"ZW+263"
]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,184 @@
{
"advertising_forms": {
"name": "Advertising Forms",
"slug": "advertising_forms",
"meta_title": "Supercharge Your Advertising Campaigns with OpnForm",
"meta_description": "Discover how OpnForm and our Advertising Form Templates can revolutionize your advertising campaigns. Customize, embed, and integrate forms to streamline data collection and improve collaboration with clients and team members.",
"description": "Attention all advertising professionals! Our Advertising Form Templates are designed to streamline your data collection process. Whether you need to gather client information, conduct market research surveys, or collect feedback from customers, OpnForm has you covered. With OpnForm, you can fully customize and brand your forms to represent your agency or brand. Embed these forms on your website or share them via email, social media, or any other online channel. Take advantage of features like email notifications for form owners and submitters, integration with Slack, Discord, and other tools via Zapier or webhooks, and the ability to protect your forms with a password. Plus, our forms support captchas to prevent spam submissions and allow you to add custom code for advanced functionality. Start optimizing your advertising workflow with OpnForm and our Advertising Form Templates today!"
},
"alumni_forms": {
"name": "Alumni Forms",
"slug": "alumni_forms",
"meta_title": "Unlock the Potential of Your Alumni Community with OpnForm",
"meta_description": "Discover how OpnForm empowers educational institutions, alumni associations, and professional networking groups to streamline alumni data collection, feedback gathering, and event organization. With our Alumni Form Templates, easily create customized forms, receive email notifications, integrate with popular tools, and enhance security measures. Start engaging with your alumni community like never before!",
"description": "Are you an educational institution, alumni association, or a professional networking group? Our Alumni Form Templates are designed to help you easily collect information from your alumni community. Whether you want to update contact details, gather feedback, or organize events, OpnForm provides a user-friendly platform to create and manage your forms. With our customizable templates, you can collect alumni data, track engagement, and improve communication effortlessly. OpnForm offers a wide range of features, including email notifications for both the form owner and submitter, fully customizable branding, the ability to host forms on a custom domain, and seamless integration with various tools such as Slack, Discord, and Zapier. Protect your forms with passwords, add captchas for enhanced security, and even allow respondents to edit their own submissions. Explore our Alumni Form Templates below and start connecting with your alumni community today!"
},
"animal_shelter_forms": {
"name": "Animal Shelter Forms",
"slug": "animal_shelter_forms",
"meta_title": "Simplify the Adoption Process | OpnForm Animal Shelter Form Templates",
"meta_description": "Are you an animal shelter or rescue organization? Streamline your adoption process with OpnForm's Animal Shelter Form Templates. Collect information from potential adopters, foster parents, and volunteers in a user-friendly manner. Customize and brand your forms, receive email notifications, integrate with popular tools, and enhance security. Discover the power of OpnForm for your animal shelter or rescue organization!",
"description": "Are you an animal shelter or rescue organization? OpnForm's Animal Shelter Form Templates are designed to streamline your workflow and help you efficiently manage the adoption process for your furry friends. With OpnForm, you can easily collect information from potential adopters, foster parents, and volunteers in a user-friendly manner. Customize and brand your forms to match your organization's identity. Our open-source form builder offers a wide range of features, including email notifications for both form owners and respondents, custom domains to host your forms, and the ability to embed forms on your website. Connect with popular tools like Slack, Discord, and more using our seamless integrations. Ensure the security of your forms with password protection and captchas. Let respondents edit their own submissions and create multi-page forms to gather comprehensive information. Get started with our Animal Shelter Form Templates today!"
},
"banking_forms": {
"name": "Banking Forms",
"slug": "banking_forms",
"meta_title": "Revolutionize Your Banking Processes with OpnForm's Banking Form Templates",
"meta_description": "Discover how OpnForm's Banking Form Templates can modernize your banking operations. Collect essential information like loan applications, account opening forms, and customer feedback with ease. Customize and brand your forms, protect them with passwords, embed them on your website, and integrate them with banking systems. Automate email notifications, enable form editing for respondents, enhance security with captchas, and add custom code. Optimize your banking processes today!",
"description": "Are you in the banking industry? Streamline your processes and enhance customer experiences with OpnForm's Banking Form Templates. Easily collect essential information from your customers, such as loan applications, account opening forms, or customer feedback. With OpnForm, you have access to a powerful open-source form builder that offers advanced features tailored for the banking industry. Customize and brand your forms, protect them with passwords, and embed them on your website or share them via a custom domain. Integrate your forms with tools like Slack, Discord, or other banking systems through Zapier or webhooks. Automate email notifications for both form owners and form submitters, and enable form editing for respondents to update their submissions. Enhance security with captchas and add custom code to meet your specific requirements. Optimize your banking operations with OpnForm and our Banking Form Templates."
},
"business_forms": {
"name": "Business Forms",
"slug": "business_forms",
"meta_title": "Supercharge Your Data Collection with OpnForm's Business Form Templates",
"meta_description": "Discover how OpnForm's open-source form builder and Business Form Templates can revolutionize your data collection processes. Collect valuable information from your customers, conduct market research, and streamline your business operations. With features like email notifications, custom branding, and integration with popular tools, OpnForm is the ultimate solution for efficient and effective data collection.",
"description": "Are you a business owner or manager looking for a better way to collect and manage information? Look no further! OpnForm's Business Form Templates are designed to streamline your data collection processes. Whether you need to gather customer feedback, conduct market research, or collect orders, OpnForm has you covered. With our open-source form builder, you can easily create customized forms that match your brand and meet your specific needs. Our templates come with powerful features, including email notifications for both the form owner and the submitter, the ability to embed forms on any website, and seamless integration with popular tools like Slack, Discord, and Zapier. Plus, you can add password protection, captchas, custom code, and pre-fill options to enhance your form's functionality. Don't miss out on the benefits of OpnForm and our Business Form Templates. Start simplifying your data collection processes today!"
},
"charity_forms": {
"name": "Charity Forms",
"slug": "charity_forms",
"meta_title": "Streamline Your Charity Organization with OpnForm",
"meta_description": "Discover how OpnForm and our Charity Form Templates can simplify data collection for your charity organization. Easily collect donations, volunteer registrations, event registrations, and more with our customizable forms. Explore powerful features such as email notifications, form customization, embedding forms on your website, integrating with popular tools, and more. Start streamlining your charity organization's processes today!",
"description": "Are you a charity organization looking for a simple and effective way to collect information from donors, volunteers, and beneficiaries? OpnForm's Charity Form Templates are designed specifically for your needs. With OpnForm, you can easily create customized forms to collect donations, volunteer registrations, event registrations, and more. Our templates are ready to use, but can also be easily customized to match your branding and requirements. With OpnForm, you have access to powerful features such as email notifications for both the form owner and the form submitter, form customization and branding, the ability to host forms on your own custom domain, and the option to embed forms on your website. Integrating with other tools is a breeze with OpnForm's integration capabilities with popular platforms like Slack, Discord, and many others via Zapier or webhooks. You can also protect your forms with a password, add captchas for added security, and even include custom code to further enhance your forms. In addition, OpnForm allows you to pre-fill forms via URL parameters, set closing dates or submission limits, and enables respondents to edit their own form submissions. Start streamlining your charity organization's data collection process today with OpnForm and our Charity Form Templates."
},
"church_forms": {
"name": "Church Forms",
"slug": "church_forms",
"meta_title": "Simplify Church Administration with OpnForm's Church Form Templates",
"meta_description": "OpnForm's Church Form Templates provide church administrators, pastors, and event organizers with an efficient way to collect information from their congregation or event attendees. With OpnForm's open-source form builder, customize your forms to match your church's branding, embed them on your website, and receive email notifications for every submission. Discover the features of OpnForm and simplify your church administration tasks today.",
"description": "Are you a church administrator, pastor, or event organizer? Our Church Form Templates are designed specifically for you. Streamline your administrative tasks and collect important information from your congregation or event attendees with ease. With OpnForm, you have access to a powerful open-source form builder that offers a wide range of features. Customize your forms to match your church's branding, embed them on your website, and receive email notifications for every submission. Integrate your forms with tools like Slack, Discord, or other apps via Zapier or webhooks. Ensure the security of your forms with password protection and add a captcha for extra security. In addition, you can pre-fill forms with url parameters, set form closure dates, and even allow respondents to edit their own submissions. Explore our Church Form Templates below and simplify your church administration tasks."
},
"customer_service_forms": {
"name": "Customer Service Forms",
"slug": "customer_service_forms",
"meta_title": "Boost Your Customer Service with OpnForm's Customer Service Form Templates",
"meta_description": "OpnForm offers a range of customizable Customer Service Form Templates that can help you streamline your customer service processes. Collect feedback, handle complaints, and gather customer information with ease. Customize your forms, integrate with Slack and other tools, and enhance security with passwords and captchas. Start using OpnForm now and enhance your customer service experience.",
"description": "Are you in the customer service industry? Our Customer Service Form Templates are designed to help you streamline your customer service processes. With OpnForm, you can easily create forms to collect valuable feedback, handle customer complaints, and gather customer information. Customize your forms with your branding and choose from a range of features like email notifications, custom domains, embedded forms, and integration with Slack and other tools via Zapier. Protect your forms with passwords and add captchas for enhanced security. With OpnForm, you have the flexibility to create forms that meet your specific customer service needs. Start using our Customer Service Form Templates now and enhance your customer service experience."
},
"ecommerce_forms": {
"name": "E-commerce Forms",
"slug": "ecommerce_forms",
"meta_title": "Supercharge Your E-commerce Business with OpnForm",
"meta_description": "Discover how OpnForm's E-commerce Form Templates can help you streamline your online sales process. Collect customer information, orders, and feedback with ease. Customize and brand your forms to match your website's design. Integrate your forms with Slack, Discord, and other tools to automate your workflow. Get email notifications for new submissions and enjoy the convenience of an open-source form builder. Boost your e-commerce business with OpnForm now!",
"description": "Attention E-commerce businesses! Boost your online sales with OpnForm's E-commerce Form Templates. Easily collect customer information, orders, and feedback with our user-friendly form builder. Customize and brand your forms to match your website's design and create a seamless customer experience. With OpnForm, you can integrate your forms with popular tools like Slack and Discord through Zapier or webhooks, streamlining your order processing and customer support workflow. Stay organized with email notifications for both you and your customers. Start optimizing your e-commerce processes with OpnForm today!"
},
"education_forms": {
"name": "Education Forms",
"slug": "education_forms",
"meta_title": "Streamline Administrative Tasks with Education Form Templates | OpnForm",
"meta_description": "Discover how OpnForm and our Education Form Templates can help educators and administrators streamline administrative tasks, gather important information, and simplify school processes. Enjoy email notifications, customization options, integration with popular tools, and more.",
"description": "Calling all educators and administrators! With OpnForm and our Education Form Templates, streamline your administrative tasks and gather important information from students, parents, and staff members. Easily create customized forms for school registrations, permission slips, surveys, and more. OpnForm is an open-source form builder that offers a wide range of features. Enjoy email notifications for both form owners and submitter, fully customizable and branded forms, the ability to host forms on your own custom domain, and the option to embed forms on any website. Integrate your forms with popular tools like Slack, Discord, and other applications via Zapier or webhooks. Protect your forms with passwords, add captchas for security, and even include custom code for advanced functionality. Pre-fill forms with URL parameters, set closing dates or submission limits, and allow respondents to edit their own submissions. Experience the power of OpnForm and our Education Form Templates today!"
},
"entertainment_forms": {
"name": "Entertainment Forms",
"slug": "entertainment_forms",
"meta_title": "Streamline Your Entertainment Workflows with OpnForm",
"meta_description": "Discover how OpnForm can revolutionize your entertainment business. Create custom forms to collect event details, booking inquiries, and attendee information. Benefit from email notifications, complete customization, form embedding, and integration with popular tools like Slack and Zapier. Experience the power of OpnForm and simplify your entertainment workflows today.",
"description": "Are you an event organizer, artist, or performer? Our Entertainment Form Templates are designed to streamline your event planning and management process. With OpnForm, you can easily create and customize forms to collect important information from clients, attendees, and participants. Whether it's booking inquiries, event registration, or feedback forms, OpnForm has got you covered. Benefit from the flexibility of our open-source form builder and enjoy features like email notifications, complete form customization, embedding forms on your website, and integrating with popular tools like Slack, Discord, or Zapier. Simplify your entertainment workflows with OpnForm and our versatile form templates below."
},
"gaming_forms": {
"name": "Gaming Forms",
"slug": "gaming_forms",
"meta_title": "Level up your data collection with OpnForm's Gaming Form Templates",
"meta_description": "Are you in the gaming industry? Discover how OpnForm's open-source form builder and Gaming Form Templates can help you streamline your data collection process. Collect feedback, registrations, and conduct surveys to improve your games. Fully customize and brand your forms, embed them on your gaming websites, and integrate them with Discord and other gaming tools. Maximize the potential of your gaming business with OpnForm!",
"description": "Are you in the gaming industry? OpnForm's Gaming Form Templates are designed specifically for game developers, esports teams, and gaming events organizers. With OpnForm, you can easily collect feedback from players, gather registration information for tournaments, and conduct surveys to improve your games. Our templates can be fully customized and branded to match your gaming brand. Host your forms on your own custom domain and embed them seamlessly on your gaming websites. OpnForm also offers integrations with popular gaming tools like Discord, allowing you to receive form submissions directly in your gaming community server. With OpnForm, you have complete control over your forms and can protect them with passwords, add captchas, or even add custom code. Start gathering valuable data and optimizing your gaming experiences with OpnForm and our Gaming Form Templates today!"
},
"healthcare_forms": {
"name": "Healthcare Forms",
"slug": "healthcare_forms",
"meta_title": "Streamline Your Healthcare Data Collection with OpnForm",
"meta_description": "OpnForm offers a range of Healthcare Form Templates to help healthcare professionals collect patient information, medical history, and appointment requests effortlessly. Customize and brand your forms, embed them on your website, and enjoy seamless integration with Slack, Discord, and other tools via Zapier. Explore OpnForm for efficient healthcare data collection.",
"description": "Are you working in the healthcare industry? Our Healthcare Form Templates are designed to streamline your data collection processes. Easily collect patient information, medical history, and appointment requests with OpnForm. As an open-source form builder, OpnForm allows you to fully customize and brand your forms to match your organization's identity. With email notifications, you'll never miss a form submission, ensuring timely responses and efficient patient care. Our templates can be embedded on your website or shared through a custom domain, making it convenient for patients to access and fill out the forms. Additionally, OpnForm integrates seamlessly with popular tools like Slack and Discord via Zapier or webhooks, enabling easy collaboration and integration with your existing workflows. Enhance your healthcare processes with OpnForm and our Healthcare Form Templates today."
},
"human_resources_forms": {
"name": "Human Resources Forms",
"slug": "human_resources_forms",
"meta_title": "Revolutionize Your HR Processes with OpnForm's Human Resources Form Templates",
"meta_description": "Discover how the Human Resources industry can benefit from OpnForm and our customizable form templates. Simplify your hiring process, employee evaluations, and feedback collection with the wide range of features offered by OpnForm. With easy integration, form protection, customization options, and more, OpnForm is the ideal tool for modern HR professionals.",
"description": "Are you in the Human Resources industry? Streamline your hiring process and employee management with OpnForm's Human Resources Form Templates. Easily collect job applications, conduct employee evaluations, and gather employee feedback using our customizable forms. With OpnForm, you have access to a wide range of features including email notifications, form customization and branding, embedding forms on your website, integration with Slack, Discord, and other tools via Zapier or webhooks, form protection with passwords, captcha support, adding custom code, pre-filling forms via URL parameters, closing forms at specific dates or after a certain number of submissions, allowing respondents to edit their own submissions, and creating forms with multiple pages. Start improving your HR processes today with OpnForm and our Human Resources Form Templates."
},
"it_forms": {
"name": "IT Forms",
"slug": "it_forms",
"meta_title": "Supercharge Your IT Data Collection with OpnForm",
"meta_description": "Discover how OpnForm and our IT form templates can revolutionize your data collection in the IT industry. With features like email notifications, customization options, integration with popular tools, and more, OpnForm is the perfect solution for IT professionals seeking efficient and streamlined data collection.",
"description": "Are you in the IT industry? Looking for a powerful and customizable form builder? Look no further! OpnForm is the perfect solution for IT professionals to streamline their data collection process. With OpnForm, you can create forms tailored to your specific needs, whether it's collecting bug reports, user feedback, or gathering customer information. Take advantage of OpnForm's open-source form builder and enjoy features like email notifications for form owners and submitters, full customization and branding options, integration with popular tools like Slack and Discord through Zapier or webhooks, and even form protection with passwords and captchas. Simplify your data collection process with OpnForm and our IT form templates today!"
},
"insurance_forms": {
"name": "Insurance Forms",
"slug": "insurance_forms",
"meta_title": "Revolutionize Your Insurance Forms with OpnForm",
"meta_description": "Discover how insurance professionals can optimize their form processes with OpnForm's Insurance Form Templates. Collect and manage data from clients, policyholders, and claimants effortlessly. Enjoy the features of an open-source form builder, customizable forms, email notifications, and seamless integration with popular tools. Enhance security with passwords and captchas. Empower respondents with edit capabilities and create intuitive multi-page forms. Get started with OpnForm today!",
"description": "Are you in the insurance industry? Streamline your form processes with OpnForm's Insurance Form Templates. Easily collect and manage information from clients, policyholders, and claimants. With OpnForm, enjoy the benefits of an open-source form builder that offers email notifications for both form owners and form submitters. Customize and brand your forms to match your insurance company's identity. Host your forms on your own custom domain or embed them seamlessly on your website. Integrate with popular tools like Slack, Discord, and more using Zapier or webhooks. Protect your forms with passwords and add captchas for enhanced security. Utilize advanced features like custom code, URL parameters for pre-filling forms, and limit form availability based on dates or submission quotas. Allow respondents to edit their own submissions or create multi-page forms for a seamless user experience."
},
"marketing_forms": {
"name": "Marketing Forms",
"slug": "marketing_forms",
"meta_title": "Supercharge Your Marketing Efforts with OpnForm's Marketing Form Templates",
"meta_description": "Discover how OpnForm's Marketing Form Templates can revolutionize your marketing campaigns. Collect valuable data, gather customer feedback, and conduct market research effortlessly. Customize and embed forms on your website, and integrate with popular tools like Slack and Discord. Take advantage of features like email notifications, password protection, and more. Start using OpnForm today!",
"description": "Calling all marketers! OpnForm's Marketing Form Templates are tailored specifically to meet the needs of marketing professionals like you. With OpnForm, you can easily create and manage forms to collect valuable data from your audience. Whether you need to gather customer feedback, conduct market research, or run promotional campaigns, OpnForm has got you covered. Enjoy the flexibility of fully customizable and branded forms that can be embedded on any website. With features like email notifications, integrations with popular tools like Slack and Discord via Zapier or webhooks, and the ability to protect forms with passwords, OpnForm offers everything you need to streamline your marketing efforts. Start using our Marketing Form Templates now and unlock the power of data-driven marketing!"
},
"photography_forms": {
"name": "Photography Forms",
"slug": "photography_forms",
"meta_title": "Simplify Photography Client Management with OpnForm",
"meta_description": "OpnForm's Photography Form Templates provide photographers and photography businesses with a simple and efficient solution to collect client information. Discover how OpnForm's open-source form builder, customizable features, and integrations with popular tools like Slack and Zapier can streamline your photography workflow.",
"description": "Are you a professional photographer or running a photography business? OpnForm's Photography Form Templates are designed to streamline your workflow and simplify the process of collecting information from clients. With OpnForm, you can easily create customized forms to gather details about client preferences, shoot requirements, and payment information. Our open-source form builder allows you to fully brand and customize your forms, ensuring a seamless experience for your clients. You can embed the forms on your website or share them via a custom domain. OpnForm also offers email notifications for both the form owner and submitter, keeping everyone informed throughout the process. Additionally, our integration with popular tools like Slack, Discord, and Zapier enables you to automate data collection and enhance collaboration. Try OpnForm's Photography Form Templates today and revolutionize your photography business."
},
"real_estate_forms": {
"name": "Real Estate Forms",
"slug": "real_estate_forms",
"meta_title": "Streamline Your Real Estate Transactions with OpnForm",
"meta_description": "Capture leads, gather property details, and streamline your real estate transactions with OpnForm's Real Estate Form Templates. Customize your forms, receive email notifications, and integrate with popular tools like Slack and Discord. Explore the possibilities of OpnForm for the real estate industry.",
"description": "Are you in the real estate industry? OpnForm's Real Estate Form Templates are designed specifically for real estate professionals. Easily collect client information, property details, and buyer preferences with our customizable forms. OpnForm is an open-source form builder that offers a range of features to streamline your workflow. With email notifications, you'll never miss a lead or inquiry. You can fully customize and brand your forms to match your agency's style. Host your forms on your own custom domain for a professional touch. Embed forms seamlessly on your website to capture leads directly. Integrate with popular tools like Slack, Discord, and more using Zapier or webhooks. Protect sensitive information with password protection and add an optional captcha for added security. Allow clients to edit their own form submissions to keep data up to date. With OpnForm, you have the flexibility to create multi-page forms to gather all the necessary information for your real estate transactions. Start using OpnForm and our Real Estate Form Templates today."
},
"seo_forms": {
"name": "SEO Forms",
"slug": "seo_forms",
"meta_title": "Optimize Your SEO Forms with OpnForm - Streamline Data Collection",
"meta_description": "Discover how OpnForm's SEO Form Templates can revolutionize your workflow in the SEO industry. Collect valuable data, streamline client communication, and optimize your website performance. With OpnForm, enjoy powerful features, easy customization, seamless integration, and enhanced security. Start using OpnForm today!",
"description": "Are you an SEO professional or agency looking to streamline your form creation process? OpnForm's SEO Form Templates are designed specifically to meet the needs of the SEO industry. Easily collect data and information from clients, track website optimization progress, and gather feedback from users. With OpnForm, you have access to powerful features such as email notifications for form owners and submitters, fully customizable and branded forms, the ability to host forms on your own custom domain, and seamless integration with popular tools like Slack and Discord via Zapier or webhooks. Protect your forms with passwords, add captchas for added security, and even incorporate custom code to meet your unique requirements. Pre-fill forms with URL parameters, set form submission limits or closing dates, and empower respondents to edit their own submissions. Take your SEO forms to the next level with OpnForm's versatile and user-friendly templates."
},
"salon_forms": {
"name": "Salon Forms",
"slug": "salon_forms",
"meta_title": "Transform Your Salon Operations with OpnForm's Salon Form Templates",
"meta_description": "Discover how salon owners, hairstylists, and beauty professionals can optimize their client intake process using OpnForm and our Salon Form Templates. Customize and brand your forms, collect important information, and integrate with popular tools. Streamline your salon operations today!",
"description": "Are you a salon owner, hairstylist, or beauty professional? Our Salon Form Templates are designed specifically for your industry. Streamline your client intake process and gather important information such as contact details, service preferences, and any allergies or sensitivities. With OpnForm, you get access to a powerful open-source form builder that allows you to customize and brand your forms to match your salon's unique style. Collect form submissions directly in OpnForm and receive email notifications for every submission. You can even integrate your forms with popular tools like Slack, Discord, or other platforms using Zapier or webhooks. Experience the convenience of online forms and simplify your salon operations with OpnForm and our Salon Form Templates."
},
"services_forms": {
"name": "Services Forms",
"slug": "services_forms",
"meta_title": "Supercharge Your Service Business with OpnForm's Services Form Templates",
"meta_description": "Discover how OpnForm's Services Form Templates can revolutionize your service-based business. Collect client information, streamline workflows, and improve customer satisfaction with our customizable forms. Integrate with popular tools like Slack, Discord, and more. Start optimizing your service business today!",
"description": "Are you a service-based business such as a cleaning company, consulting firm, or marketing agency? Our Services Form Templates are designed to streamline your client interactions and improve your workflow. With OpnForm, you can easily create and customize forms to collect information from your clients, whether it's for booking appointments, gathering project requirements, or conducting customer surveys. Take advantage of OpnForm's extensive features, such as email notifications, form customization, embedding forms on any website, and integrating with popular tools like Slack, Discord, and more via Zapier. Simplify your processes and enhance client satisfaction with our Services Form Templates below."
},
"sports_forms": {
"name": "Sports Forms",
"slug": "sports_forms",
"meta_title": "Streamline Your Sports Data Collection with OpnForm's Sports Form Templates",
"meta_description": "Easily collect player information, team registrations, and event sign-ups for your sports team or organization. OpnForm's Sports Form Templates offer a powerful and customizable solution for sports-related data collection. Discover the benefits of using OpnForm and streamline your sports data collection process today.",
"description": "Calling all sports teams, coaches, and event organizers! Sports Form Templates by OpnForm are designed to streamline your data collection process. Easily gather player information, team registrations, event sign-ups, and more with our customizable forms. With OpnForm, you have access to a powerful open-source form builder that offers features like email notifications for both form owners and submitter, fully customizable branding, and the ability to embed forms on any website. Take advantage of our integration options with popular tools like Slack, Discord, and Zapier to effortlessly connect your form submissions to your existing workflows. Plus, with features like password protection, captchas, and the ability to add custom code, you can ensure the security and functionality of your sports forms. Start using OpnForm and our Sports Form Templates today to streamline your sports-related data collection process!"
},
"summer_camps_forms": {
"name": "Summer Camps Forms",
"slug": "summer_camps_forms",
"meta_title": "Simplify Summer Camp Registration with OpnForm's Summer Camp Forms Templates",
"meta_description": "Make summer camp registration a breeze with OpnForm's open-source form builder and Summer Camp Forms Templates. Easily collect camper information, customize forms, and integrate with popular tools like Slack and Discord. Secure and streamline your registration process with password protection, captchas, and the ability for respondents to edit their own submissions. Get started today and make registration easy with OpnForm!",
"description": "Calling all summer camp organizers and administrators! Our Summer Camp Forms Templates are designed to simplify your registration and information gathering process. With OpnForm, you can easily create customized forms for camper registration, medical information, emergency contacts, activity preferences, and more. Take advantage of OpnForm's open-source form builder to tailor the templates to your specific needs. Enjoy the benefits of email notifications, fully customizable branding, and the ability to embed forms on your camp's website. Integrate with popular tools like Slack and Discord using Zapier or webhooks. Secure your forms with passwords and add captchas for enhanced security. With OpnForm, you have the flexibility to pre-fill forms via URL parameters, set form closure dates, and allow respondents to edit their own submissions. Get ready to streamline your summer camp registration process with OpnForm's Summer Camp Forms Templates!"
},
"veterinary_service_forms": {
"name": "Veterinary Service Forms",
"slug": "veterinary_service_forms",
"meta_title": "Streamline Your Veterinary Services with OpnForm",
"meta_description": "Discover how veterinary service providers can optimize their workflow using OpnForm's Veterinary Service Form Templates. Collect essential information, customize and brand your forms, integrate with tools, protect your data, and more. Start streamlining your client intake process today.",
"description": "Are you a veterinary service provider? Our Veterinary Service Form Templates are designed with you in mind. Streamline your client intake process and collect essential information about pets, medical history, and appointment preferences. OpnForm, an open-source form builder, offers a range of features to enhance your form-building experience. With email notifications, you'll never miss a form submission. Customize and brand your forms to create a professional look and feel. Host your forms on your own custom domain or embed them on your website. Integrate with tools like Slack, Discord, and more through Zapier or webhooks. Protect your forms with passwords and add captchas for added security. Pre-fill forms with URL parameters and set submission limits or close forms at specific dates. With OpnForm, you can even allow respondents to edit their own submissions and create multi-page forms. Use our Veterinary Service Form Templates below and start streamlining your workflow today."
},
"web_design_forms": {
"name": "Web Design Forms",
"slug": "web_design_forms",
"meta_title": "Supercharge Your Web Design Workflow with OpnForm",
"meta_description": "Discover the power of OpnForm for web designers and developers. Effortlessly collect project requirements, design preferences, and other essential information with our Web Design Form Templates. Customize and brand your forms, integrate them with popular tools, protect them with passwords, and much more. Explore OpnForm now!",
"description": "Are you a web designer or developer? Our Web Design Form Templates are tailored to your needs. Streamline your client onboarding process by collecting project requirements, design preferences, and other necessary information with OpnForm. As an open-source form builder, OpnForm offers a wide range of features to enhance your form building experience. Customize and brand your forms, host them on your own custom domain, and embed them seamlessly into your website. With OpnForm, you can integrate your forms with popular tools like Slack, Discord, and more using Zapier or webhooks. Protect your forms with passwords and add captchas to ensure security. Utilize the versatility of OpnForm by adding custom code and pre-filling forms via URL parameters. You can also set form closure dates or limit submissions. Additionally, OpnForm allows respondents to edit their own submissions and supports multi-page forms. Explore our collection of Web Design Form Templates below and begin optimizing your workflow today."
}
}

View File

@ -0,0 +1,324 @@
{
"order_forms": {
"name": "Order Forms",
"slug": "order_forms",
"meta_title": "Supercharge Your Order Management with OpnForm's Order Form Templates",
"meta_description": "Discover how OpnForm's Order Form Templates can streamline your order management process. Create customized order forms with ease, receive email notifications, integrate with popular tools, and more. Start simplifying your ordering process today!",
"description": "Looking to streamline your order management process? OpnForm's Order Form Templates are designed to simplify the collection of order details. With OpnForm, you can easily create customized order forms that fit your business needs. Take advantage of features like email notifications, form branding, custom domains, and integrations with popular tools like Slack and Discord. Whether you're running an online store or managing orders for a restaurant, OpnForm's Order Form Templates can help optimize your workflow and upgrade your ordering process."
},
"registration_forms": {
"name": "Registration Forms",
"slug": "registration_forms",
"meta_title": "Streamline Your Registration Process with OpnForm's Registration Form Templates",
"meta_description": "Looking for an easy way to collect attendee details for your event or workshop? Discover how OpnForm's open-source form builder and Registration Form Templates can simplify your registration process. Fully customizable forms, email notifications, integration options, and more!",
"description": "Are you organizing an event or workshop and need to collect attendee details? OpnForm's Registration Form Templates can help streamline your registration process! With our easy-to-use form builder, you can create customized registration forms to suit your specific needs. OpnForm's open-source platform allows you to fully customize and brand your forms, ensuring a seamless experience for your attendees. Additionally, our form builder provides features such as email notifications, integration with popular tools like Slack and Discord, password protection, captcha options, and the ability to add custom code. You can even pre-fill forms via URL parameters and set closing dates or submission limits. Simplify your registration process and make it a breeze with OpnForm and our Registration Form Templates!"
},
"event_registration_forms": {
"name": "Event Registration Forms",
"slug": "event_registration_forms",
"meta_title": "Streamline Event Registrations with OpnForm's Templates",
"meta_description": "Easily manage event registrations using OpnForm's Event Registration Form Templates. Customize and embed these forms on your website, streamline your registration process, and benefit from OpnForm's powerful features like email notifications, custom branding, and integrations with popular tools. Upgrade your event management with OpnForm!",
"description": "Planning an event and need to manage registrations? OpnForm offers Event Registration Form Templates that can simplify your work! With these templates, you can easily collect attendee information, streamline your registration process, and benefit from OpnForm's powerful features. Customize the form to match your event's branding, embed it on your website, and use OpnForm's integrations with tools like Slack and Discord for seamless event management. Upgrade your event registration process with OpnForm!"
},
"payment_forms": {
"name": "Payment Forms",
"slug": "payment_forms",
"meta_title": "Accept Payments Online with OpnForm's Payment Form Templates",
"meta_description": "OpnForm's Payment Form Templates make it simple for businesses and organizations to collect payments and donations. Discover how you can easily create secure and customizable payment forms, integrate with payment gateways, and accept payments online using OpnForm's open-source form builder and templates.",
"description": "Looking to collect payments online? OpnForm offers Payment Form Templates that can make it easy for you to accept payments and donations! With OpnForm, you can create secure and customizable payment forms, allowing you to sell products, collect membership fees, receive event registrations, and more. Benefit from features like email notifications, custom branding, integration with payment gateways, and the ability to embed forms on your website. Start accepting payments effortlessly with OpnForm's Payment Form Templates!"
},
"application_forms": {
"name": "Application Forms",
"slug": "application_forms",
"meta_title": "Simplify Your Application Process with OpnForm's Application Form Templates",
"meta_description": "Discover how OpnForm's Application Form Templates can help you collect and manage applications more efficiently. With our open-source form builder, you can easily create and customize application forms for job applications, scholarship applications, or membership applications. Streamline your process, receive email notifications, and integrate with tools like Slack and Discord. Start using OpnForm and our convenient application form templates today!",
"description": "Need to streamline your application process? OpnForm's Application Form Templates are designed to simplify the way you collect and manage applications. Whether you're accepting job applications, scholarship applications, or membership applications, OpnForm has you covered. With our open-source form builder, you can easily create and customize application forms to fit your specific needs. Benefit from our email notifications, branding options, embedding capabilities, and integrations with tools like Slack and Discord. Upgrade your application process today with OpnForm and our convenient application form templates!"
},
"file_upload_forms": {
"name": "File Upload Forms",
"slug": "file_upload_forms",
"meta_title": "Simplify File Uploads with OpnForm",
"meta_description": "OpnForm's File Upload Form Templates make it simple to collect files from your users. Create fully branded forms, receive email notifications, and integrate with Zapier or webhooks for seamless file management. Explore OpnForm's open-source form builder now!",
"description": "Need to collect files from your users? OpnForm's File Upload Form Templates make it easy! Whether you're running a photography contest, accepting job applications, or gathering design submissions, OpnForm has you covered. With OpnForm's open-source form builder, you can create custom file upload forms, fully branded with your own style. Allow your users to easily upload files, while you receive email notifications with the submissions. Use OpnForm's integration with Zapier or webhooks to automatically send the files to your preferred storage solution. Plus, with OpnForm's advanced features like password protection, custom code integration, and form pre-filling, you can create a secure and personalized experience for your users."
},
"booking_forms": {
"name": "Booking Forms",
"slug": "booking_forms",
"meta_title": "Streamline Your Booking Process with OpnForm's Booking Form Templates",
"meta_description": "Are you in need of a convenient and efficient way to handle bookings? Look no further! OpnForm's Booking Form Templates are the perfect solution. With OpnForm, you can easily create customized booking forms, integrate them with various tools, and simplify your booking process. Explore our templates today and see how OpnForm can revolutionize your booking experience!",
"description": "Planning an event or managing appointments? OpnForm's Booking Form Templates are designed to simplify the booking process. Whether you're a small business owner, a service provider, or an event organizer, our templates make it easy for you to collect booking details, streamline your workflow, and enhance your overall booking experience. With OpnForm, you can fully customize and brand your booking forms, integrate them with your favorite tools like Slack and Discord, and even protect them with passwords and captchas. Whether you need to schedule appointments, reserve tables, or organize events, OpnForm is here to help you make booking a breeze."
},
"survey_templates": {
"name": "Survey Templates",
"slug": "survey_templates",
"meta_title": "Create Engaging Surveys with OpnForm's Survey Template Collection",
"meta_description": "OpnForm's Survey Form Templates are built to simplify your survey creation process. Whether you are conducting customer satisfaction surveys, employee feedback surveys, or market research surveys, OpnForm provides an intuitive and customizable platform. Discover how OpnForm's open-source form builder, email notifications, custom branding, and integrations can enhance your survey experience.",
"description": "Looking to collect valuable feedback and insights? OpnForm's Survey Form Templates are designed to help you easily create and distribute surveys. Whether you need to conduct customer satisfaction surveys, employee feedback surveys, or market research surveys, OpnForm has got you covered. With our intuitive and customizable survey templates, you can streamline your data collection process, analyze responses effectively, and gain actionable insights. Take advantage of OpnForm's open-source form builder and leverage features like email notifications, custom branding, integrations with popular tools, and more to create impactful surveys."
},
"consent_forms": {
"name": "Consent Forms",
"slug": "consent_forms",
"meta_title": "Simplify Consent Forms with OpnForm",
"meta_description": "Discover how OpnForm's open-source form builder and Consent Form Templates can streamline your consent form process. Benefit from features like email notifications, customization options, form hosting on your custom domain, integrations with Slack and Discord, and more.",
"description": "Need consent forms for your business or organization? OpnForm provides a range of Consent Form Templates to simplify the process. With OpnForm's open-source form builder, you can easily create customized consent forms tailored to your specific needs. Benefit from features such as email notifications for both the form owner and submitter, full customization and branding options, the ability to host forms on your own custom domain, and easy integration with other tools like Slack and Discord via Zapier or webhooks. You can also add password protection, captcha, custom code, and pre-fill forms using URL parameters. Additionally, OpnForm allows you to set form expiration dates or submission limits, and even enables respondents to edit their own submissions. Streamline your consent form process with OpnForm today!"
},
"rsvp_forms": {
"name": "RSVP Forms",
"slug": "rsvp_forms",
"meta_title": "Simplify RSVP Management with OpnForm's RSVP Form Templates",
"meta_description": "Need to manage RSVPs for your event? OpnForm offers RSVP Form Templates that make it easy! Customize the template, embed it on your website, and enjoy features like email notifications, form customization, integrations with tools like Slack, and more. Upgrade your RSVP process with OpnForm today!",
"description": "Planning an event or gathering and need to manage RSVPs? OpnForm offers RSVP Form Templates that can simplify your work! With these form templates, you can easily collect RSVP details, streamline your RSVP process, and benefit from OpnForm's advanced features. Customize the RSVP form template to fit your event's needs, embed it on your website, and see how OpnForm can upgrade your RSVP management."
},
"appointment_forms": {
"name": "Appointment Forms",
"slug": "appointment_forms",
"meta_title": "Simplify Your Appointment Scheduling with OpnForm",
"meta_description": "Looking for a convenient way to collect appointment requests? Discover OpnForm's Appointment Form Templates and streamline your scheduling process. With OpnForm's open-source form builder, you can easily create customizable appointment forms, receive email notifications, integrate with tools like Slack and Discord, and more. Try OpnForm today and upgrade your appointment scheduling experience.",
"description": "Need to schedule appointments? OpnForm offers Appointment Form Templates that can simplify your scheduling process! These templates are targeted at businesses, professionals, and service providers who need to collect appointment requests from clients. With OpnForm, you can easily create customizable appointment forms, streamline your scheduling process, and benefit from features like email notifications, form customization, form embedding, and integrations with tools like Slack and Discord via Zapier or webhooks. Use an appointment form template below, customize it to fit your needs, and see how OpnForm can upgrade your appointment scheduling process."
},
"contact_forms": {
"name": "Contact Forms",
"slug": "contact_forms",
"meta_title": "Supercharge Your Communication with OpnForm Contact Form Templates",
"meta_description": "Need a reliable way to collect inquiries from your website? Check out OpnForm's Contact Form Templates. Easily create and customize a contact form that matches your brand. Receive email notifications, integrate with Slack or Discord, and streamline your communication process with OpnForm.",
"description": "Looking to improve communication with your clients? OpnForm's Contact Form Templates are designed to help you effortlessly collect and manage inquiries from your website. With OpnForm, you can easily create and customize a contact form that matches your brand. Receive email notifications for every form submission, ensuring you never miss a message. Seamlessly integrate your contact form with tools like Slack or Discord using Zapier or webhooks. Whether you're a small business owner or a blogger, OpnForm's Contact Form Templates empower you to engage with your audience and streamline your communication process."
},
"questionnaire_templates": {
"name": "Questionnaire Templates",
"slug": "questionnaire_templates",
"meta_title": "Create Powerful Questionnaires with OpnForm",
"meta_description": "Discover how OpnForm's Questionnaire Templates can simplify your data collection process. Customize and analyze your questionnaires, receive email notifications, and integrate with other tools. Start creating powerful questionnaires with OpnForm today!",
"description": "Looking to create a comprehensive questionnaire? OpnForm's Questionnaire Templates are designed to make the process simple and efficient. Whether you need to conduct surveys, gather feedback, or collect data, OpnForm provides all the necessary features to create and analyze your questionnaires. With OpnForm, you can easily customize and brand your forms, receive email notifications for both form owners and respondents, and even integrate with other tools like Slack or Discord. Take advantage of OpnForm's open-source form builder to create powerful questionnaires and streamline your data collection process."
},
"signup_forms": {
"name": "Signup Forms",
"slug": "signup_forms",
"meta_title": "Supercharge Your Signup Process with OpnForm's Signup Form Templates",
"meta_description": "Discover how OpnForm's Signup Form Templates can revolutionize your signup process. Streamline user registrations, collect essential information, and integrate with other tools seamlessly. Build professional and branded signup forms using OpnForm's open-source form builder. Try OpnForm now!",
"description": "Looking to build a signup form? OpnForm offers a wide range of Signup Form Templates that can cater to your needs! Whether you're running a small business, organizing an event, or managing a community, OpnForm provides an intuitive and customizable form builder to create professional signup forms. With OpnForm, you can easily collect user information, streamline your signup process, and benefit from seamless integrations with tools like Slack and Discord via Zapier or webhooks. Customize your form's branding, protect it with a password, and embed it on any website. Upgrade your signup process with OpnForm and our versatile Signup Form Templates!"
},
"abstract_forms": {
"name": "Abstract Forms",
"slug": "abstract_forms",
"meta_title": "Create and Manage Abstract Forms with OpnForm",
"meta_description": "Discover how OpnForm, an open-source form builder, simplifies the creation and management of abstract forms. Collect abstract data effortlessly, streamline your process, and benefit from OpnForm's extensive features. Start building your abstract forms with OpnForm's customizable templates today!",
"description": "Looking for a versatile form builder for your abstract forms? OpnForm has got you covered! With OpnForm's open-source form builder, you can easily create and customize abstract forms tailored to your needs. Collect abstract data effortlessly, streamline your abstract form process, and benefit from OpnForm's extensive features. With email notifications, custom branding, embeddable forms, and integrations with popular tools like Slack and Discord, OpnForm empowers you to create, manage, and analyze abstract form submissions efficiently."
},
"audit_forms": {
"name": "Audit Forms",
"slug": "audit_forms",
"meta_title": "Simplify Your Audits with OpnForm's Audit Form Templates",
"meta_description": "Looking for a hassle-free way to perform audits? Discover OpnForm's Audit Form Templates and streamline your audit process. With OpnForm's open-source form builder, you can easily create customized audit forms, receive email notifications, integrate with other tools, and embed forms on any website. Start simplifying your audits today!",
"description": "Need to perform audits for your business? OpnForm's Audit Form Templates are designed to help you simplify the audit process. With OpnForm, you can easily create custom audit forms tailored to your specific needs. Use our templates as a starting point, customize them with your own questions and sections, and streamline your audit workflow. With features like email notifications, form customization, integration with other tools, and the ability to embed forms on any website, OpnForm is the perfect tool for conducting audits efficiently and effectively."
},
"award_forms": {
"name": "Award Forms",
"slug": "award_forms",
"meta_title": "Simplify Your Award Process with OpnForm's Award Form Templates",
"meta_description": "Looking for a way to streamline your award process? OpnForm's Award Form Templates are designed to help you gather nominations, track submissions, and simplify the selection process. With OpnForm, you can fully customize and brand your award forms, receive email notifications, integrate with other tools, and more. Discover how OpnForm can enhance your award process today!",
"description": "Recognizing excellence in your organization? OpnForm offers Award Form Templates that can simplify the process! These form templates are designed to help you gather nominations, track submissions, and streamline the award selection process. With OpnForm's open-source form builder, you can fully customize and brand your award forms to match your organization's identity. You can also take advantage of features like email notifications, custom domains, form embedding, and integration with tools like Slack and Discord. Explore our award form templates below, customize them to fit your requirements, and see how OpnForm can enhance your award process."
},
"calculation_forms": {
"name": "Calculation Forms",
"slug": "calculation_forms",
"meta_title": "Streamline Your Calculations with OpnForm's Calculation Form Templates",
"meta_description": "Discover the power of OpnForm's Calculation Form Templates to simplify your data analysis and advanced calculations. Customize, integrate, and optimize your calculation forms with our open-source form builder. Explore the features of OpnForm, including email notifications, custom branding, form embedding, and integration with various tools. Upgrade your calculation process with OpnForm today!",
"description": "Are you in need of advanced calculation forms? Look no further than OpnForm! Our Calculation Form Templates are designed for businesses and individuals who require complex calculations and data analysis. With OpnForm, you can easily create and customize calculation forms to suit your needs. Benefit from our open-source form builder, which allows you to fully customize and brand your forms. You can also integrate your calculation forms with various tools, such as Slack and Discord, via Zapier or webhooks. With features like email notifications, custom domain hosting, password protection, and form pre-filling, OpnForm provides a complete solution for all your calculation form needs."
},
"checklist_forms": {
"name": "Checklist Forms",
"slug": "checklist_forms",
"meta_title": "Efficient Task Management with OpnForm's Checklist Form Templates",
"meta_description": "Utilize OpnForm's Checklist Form Templates to streamline your task management process. With OpnForm, easily create, customize, and track your to-do lists or task checklists. Benefit from features like email notifications, custom branding, form embedding, and integrations with tools like Slack and Discord. Secure your forms with passwords and captchas. Explore our checklist form templates and discover how OpnForm can enhance your task organization and efficiency.",
"description": "Managing a to-do list or organizing tasks? OpnForm's Checklist Form Templates are designed to help you stay organized and streamline your workflow. With OpnForm, you can easily create and customize checklist forms, enabling you to track and manage tasks efficiently. Take advantage of OpnForm's email notifications, custom branding, and form embedding capabilities. Integrate your checklist forms with tools like Slack and Discord using Zapier or webhooks. Protect your forms with a password and add a captcha for enhanced security. With OpnForm, you can pre-fill form fields via URL parameters, set deadlines for form submissions, and even allow respondents to edit their own submissions. Explore our checklist form templates below and experience the power of OpnForm in simplifying your task management process."
},
"content_forms": {
"name": "Content Forms",
"slug": "content_forms",
"meta_title": "Boost Your Content Creation with OpnForm's Content Form Templates",
"meta_description": "Discover how OpnForm's Content Form Templates can revolutionize your content creation process. Whether you're running a blog, managing a website, or creating online content, OpnForm provides you with the tools to engage your audience, capture valuable feedback, and gather user-generated content. Start using OpnForm's open-source form builder and templates today!",
"description": "Looking to create engaging and interactive content? OpnForm's Content Form Templates are designed for content creators, bloggers, and website owners who want to gather valuable feedback, opinions, and user-generated content. With OpnForm, you can easily create stunning forms that capture user responses, embed them on your website, and benefit from advanced customization options. Harness the power of OpnForm's open-source form builder to collect data, interact with your audience, and enhance your content creation process."
},
"donation_forms": {
"name": "Donation Forms",
"slug": "donation_forms",
"meta_title": "Collect Donations Easily with OpnForm's Donation Form Templates",
"meta_description": "Looking for a simple and efficient way to collect donations online? Explore OpnForm's Donation Form Templates and discover how you can leverage our open-source form builder to create personalized donation forms, customize them to match your branding, and streamline your fundraising efforts. With features like email notifications, custom domain hosting, and integrations with popular tools like Slack and Zapier, OpnForm is the perfect solution for non-profit organizations seeking to collect donations online.",
"description": "Want to collect donations for your non-profit organization? OpnForm offers Donation Form Templates that make it easy to gather donations online. With OpnForm, you can create personalized donation forms, customize them to match your organization's branding, and collect donations securely. Take advantage of OpnForm's email notifications, custom domain hosting, and integrations with popular tools like Slack and Zapier to streamline your donation collection process. Start using one of our donation form templates below, and see how OpnForm can simplify your fundraising efforts."
},
"employment_forms": {
"name": "Employment Forms",
"slug": "employment_forms",
"meta_title": "Simplify Your Hiring Process with OpnForm's Employment Form Templates",
"meta_description": "OpnForm's Employment Form Templates are designed to help businesses and organizations streamline their hiring process. With features like email notifications, custom branding, and integrations with popular tools, OpnForm makes it easy to collect employment information and find the right candidates for your team.",
"description": "Looking to streamline your hiring process? OpnForm's Employment Form Templates are designed to make it easy for businesses and organizations to collect employment information. With OpnForm's open-source form builder, you can customize and brand your employment forms to match your company's identity. Our templates offer features such as email notifications for both the form owner and the applicant, integration with popular tools like Slack and Discord, and the ability to embed forms on any website. Use OpnForm's Employment Form Templates to simplify your hiring process and find the right candidates for your team."
},
"enrollment_forms": {
"name": "Enrollment Forms",
"slug": "enrollment_forms",
"meta_title": "Streamline Your Enrollment Process with OpnForm's Enrollment Form Templates",
"meta_description": "Discover how OpnForm's Enrollment Form Templates can simplify the enrollment process for educational institutions and training programs. Capture student or participant information easily, customize the forms to fit your needs, and benefit from OpnForm's advanced features like email notifications, branding options, and integrations. Start using OpnForm today and revolutionize your enrollment management!",
"description": "Are you running an educational institution or organizing a training program? OpnForm offers Enrollment Form Templates specifically designed for capturing student or participant information. With OpnForm, you can easily create and customize enrollment forms, streamline the enrollment process, and benefit from our various features. Collect all the necessary details, such as personal information, educational background, and program preferences, using our user-friendly templates. Utilize OpnForm's email notifications, branding options, and integration capabilities to enhance your enrollment management. Start using our Enrollment Form Templates now and enjoy a seamless enrollment experience!"
},
"evaluation_forms": {
"name": "Evaluation Forms",
"slug": "evaluation_forms",
"meta_title": "Revolutionize Performance Evaluation and Feedback Collection with OpnForm",
"meta_description": "Looking for an efficient and user-friendly way to conduct performance evaluations and gather feedback? Discover OpnForm's Evaluation Form Templates! With OpnForm, you can easily create customized and branded evaluation forms, streamline the evaluation process, and benefit from integrations with tools like Slack. Join thousands of satisfied users who have upgraded their performance evaluation and feedback collection processes with OpnForm!",
"description": "Struggling with evaluating employee performance or gathering feedback from customers? OpnForm's Evaluation Form Templates are here to help! Whether you need to conduct performance reviews, collect customer satisfaction surveys, or gather feedback from event attendees, our templates provide the perfect foundation. With OpnForm, you can easily customize and brand your evaluation forms, ensuring they align with your company's identity. Take advantage of our intuitive form builder, email notifications, and integrations with Slack and other tools to streamline the evaluation process. Start using OpnForm's Evaluation Form Templates today and revolutionize how you assess performance and gather feedback!"
},
"feedback_forms": {
"name": "Feedback Forms",
"slug": "feedback_forms",
"meta_title": "Collect Valuable Feedback with OpnForm's Feedback Form Templates",
"meta_description": "Discover how OpnForm's Feedback Form Templates can help you gather valuable feedback from your customers or website visitors. Create customizable feedback forms with OpnForm's open-source form builder. Embed them on your website or share them via a unique link. Take advantage of features like email notifications, form customization, integrations, and more. Start collecting feedback today!",
"description": "Want to gather feedback from your customers or website visitors? OpnForm's Feedback Form Templates are designed to make feedback collection easy! With OpnForm, you can create custom feedback forms that can be embedded on your website or shared via a unique link. Collect valuable feedback, opinions, and suggestions, and improve your products or services. OpnForm's open-source form builder allows you to fully customize your feedback forms and brand them to match your business. You can also take advantage of features like email notifications, form customization, integrations with tools like Slack and Discord, password protection, captcha, custom code, pre-filling forms via URL parameters, form submission editing, and multi-page forms. Start gathering valuable feedback today with OpnForm's Feedback Form Templates!"
},
"inspection_forms": {
"name": "Inspection Forms",
"slug": "inspection_forms",
"meta_title": "Simplify Your Inspections with OpnForm's Inspection Form Templates",
"meta_description": "OpnForm offers a range of Inspection Form Templates that can help you streamline your inspection process. Create customized inspection forms with ease and collect all the necessary data. Discover the benefits of OpnForm's features like email notifications, form customization, and integrations with tools like Slack and Discord. Use OpnForm and its inspection form templates to enhance your inspection workflow.",
"description": "Are you in the business of conducting inspections? OpnForm provides Inspection Form Templates that can simplify the process for you! With OpnForm, you can easily create and customize inspection forms to collect relevant data. Whether you need to conduct safety inspections, property inspections, or any other type of inspection, OpnForm has got you covered. Benefit from features like email notifications, form customization, form embedding, and integrations with tools like Slack and Discord. Explore our inspection form templates below, customize them to fit your specific requirements, and witness how OpnForm streamlines your inspection process."
},
"interview_forms": {
"name": "Interview Forms",
"slug": "interview_forms",
"meta_title": "Simplify Your Hiring Process with OpnForm's Interview Form Templates",
"meta_description": "Discover how OpnForm's Interview Form Templates can help you streamline your hiring process. Collect information from job applicants easily and efficiently with our open-source form builder. Customize your forms, integrate with communication tools, and simplify your workflow. Upgrade your interview process with OpnForm's Interview Form Templates now!",
"description": "Looking to streamline your hiring process? OpnForm offers Interview Form Templates that can help you efficiently collect information from job applicants. With OpnForm's open-source form builder, you can easily create customized interview forms that match your company's unique requirements. Take advantage of features like email notifications, form customization, custom domains, and form embedding to simplify the interview process. Plus, integrate with popular communication tools like Slack and Discord using Zapier or webhooks. Enhance your hiring process with OpnForm's Interview Form Templates today!"
},
"lead_generation_forms": {
"name": "Lead Generation Forms",
"slug": "lead_generation_forms",
"meta_title": "Supercharge Your Lead Generation with OpnForm's Form Templates",
"meta_description": "Discover how OpnForm's Lead Generation Form Templates can help you capture high-quality leads for your business. Create custom forms, host them on your own domain, and receive email notifications for every new lead. Integrate with popular tools and streamline your lead management process. Try OpnForm today for better lead generation!",
"description": "Looking to generate leads for your business? OpnForm's Lead Generation Form Templates are designed to help you do just that! Whether you're a small startup or a large corporation, these templates provide an efficient way to collect valuable information from potential customers. With OpnForm, you can easily create customized lead generation forms, brand them to match your company's identity, and host them on your own domain. Capture leads effortlessly and receive email notifications for every new submission. Take advantage of our integrations with popular tools like Slack and Discord to streamline your lead management process. Enhance your lead generation efforts with OpnForm and start converting more prospects into customers today!"
},
"legal_forms": {
"name": "Legal Forms",
"slug": "legal_forms",
"meta_title": "Simplify Your Legal Processes with OpnForm's Legal Form Templates",
"meta_description": "Need legal forms? OpnForm's open-source form builder and customizable legal form templates can streamline your legal processes. Benefit from features like email notifications, customization options, form embedding, tool integration, and more. Start simplifying your legal document workflow today!",
"description": "Need legal forms? OpnForm provides a range of Legal Form Templates to simplify your legal processes! Whether you need a simple contract, a rental agreement, or a non-disclosure agreement, OpnForm has got you covered. With OpnForm's open-source form builder and our customizable legal form templates, you can easily create and manage legal documents. Benefit from features like email notifications for both form owner and submitter, full customization and branding options, custom domain hosting, form embedding, integration with tools like Slack and Discord, password protection, captchas, custom code, pre-filling via URL parameters, form closure options, the ability for respondents to edit submissions, and support for multiple pages. Discover how OpnForm can revolutionize your legal document workflow!"
},
"membership_forms": {
"name": "Membership Forms",
"slug": "membership_forms",
"meta_title": "Simplify Membership Management with OpnForm Membership Form Templates",
"meta_description": "Streamline your membership management process with OpnForm's Membership Form Templates. Create customized forms, collect member details, and benefit from features like email notifications, form customization, and integrations with other tools. Try OpnForm today!",
"description": "Looking to build a membership form? OpnForm offers Membership Form Templates that can simplify the process of collecting membership details. Whether you run a club, an organization, or any other type of membership-based entity, OpnForm has you covered. With our templates, you can easily create customized membership forms that align with your branding and collect all the necessary information from your members. OpnForm's open-source form builder allows you to fully customize and brand your forms, ensuring a seamless membership form experience. Additionally, you can benefit from features such as email notifications for both the form owner and the submitter, integration with various tools via Zapier or webhooks, and the option to protect your forms with a password. Start building your membership form today and see how OpnForm can elevate your membership management process!"
},
"petition_forms": {
"name": "Petition Forms",
"slug": "petition_forms",
"meta_title": "Powerful Petition Form Templates for Your Cause | OpnForm",
"meta_description": "Create impactful petition forms with OpnForm's Petition Form Templates. Customize the design, protect the form, and integrate with tools like Slack or Discord. Gather signatures and support for your cause easily with OpnForm.",
"description": "Are you trying to make a difference and rally support for a cause? OpnForm's Petition Form Templates are designed to help you gather signatures and support for your petition. By using our easy-to-use form builder, you can create impactful and professional petition forms in minutes. Customize the design and branding, protect the form with a password, and integrate it with tools like Slack or Discord. With OpnForm, you can amplify your message and gain momentum for your cause."
},
"polls": {
"name": "Polls",
"slug": "polls",
"meta_title": "Discover the Power of Poll Form Templates with OpnForm",
"meta_description": "Looking to gather opinions or insights from your audience? Learn how OpnForm's Poll Form Templates can help you create engaging polls, customize them to match your brand, and gain valuable insights. Harness the power of OpnForm's open-source form builder and start creating interactive polls today!",
"description": "Running a blog or website and want to engage your audience? OpnForm offers Poll Form Templates that make it easy for you to create interactive polls and gather valuable insights. With OpnForm, you can customize your poll forms to match your brand, embed them on your site, and leverage features such as multiple pages and custom code integration. Engage your readers, collect valuable data, and enhance your content strategy with OpnForm's Poll Form Templates!"
},
"quiz_forms": {
"name": "Quiz Forms",
"slug": "quiz_forms",
"meta_title": "Create Engaging Quizzes with OpnForm's Quiz Form Templates",
"meta_description": "Looking for a user-friendly and customizable solution to create quizzes? OpnForm's Quiz Form Templates offer educators, trainers, and businesses the perfect tool. With email notifications, easy embedding, and integration options, OpnForm and our templates simplify the quiz creation process. Discover how you can streamline your assessments with OpnForm!",
"description": "Need to create engaging quizzes? OpnForm offers Quiz Form Templates that are perfect for educators, trainers, and businesses looking to assess knowledge and gather data. With OpnForm's open-source form builder, you can easily create interactive quiz forms, customize them to fit your branding, and harness powerful features to enhance your quiz-taking experience. Enjoy email notifications, seamless form embedding, integration with various tools, and the ability to protect your quizzes with passwords. Take your quizzes to the next level with OpnForm!"
},
"quote_forms": {
"name": "Quote Forms",
"slug": "quote_forms",
"meta_title": "Streamline Your Quote Collection Process with OpnForm",
"meta_description": "OpnForm is an open-source form builder that offers Quote Form Templates to simplify the process of gathering quotes. With features like email notifications, full customization options, and integrations with popular tools, OpnForm makes it easy to streamline your quote collection process. Try OpnForm and our templates today!",
"description": "Are you in need of a quick and easy way to gather quotes? OpnForm provides Quote Form Templates that can simplify the process for you! Whether you're a business owner looking to get quotes from potential vendors or a contractor gathering quotes from clients, OpnForm has got you covered. With our open-source form builder, you can easily create and customize quote forms to suit your specific needs. Benefit from features like email notifications, full customization options, embedding forms on any website, and integrations with popular tools like Slack and Discord. Start streamlining your quote collection process today!"
},
"recommendation_forms": {
"name": "Recommendation Forms",
"slug": "recommendation_forms",
"meta_title": "Effortless Recommendation Forms with OpnForm",
"meta_description": "Discover how OpnForm can simplify the process of collecting recommendations. With a wide range of customizable Recommendation Form Templates, OpnForm offers an open-source form builder with features like email notifications, branding options, integration with popular tools, and more. Start using OpnForm to streamline your recommendation process today!",
"description": "Looking for a reliable recommendation form solution? OpnForm offers a range of Recommendation Form Templates designed to make your recommendation process seamless. Whether you need to collect recommendations for products, services, or professionals, OpnForm has you covered. With OpnForm's open-source form builder, you can easily create and customize recommendation forms to suit your needs. Benefit from features like email notifications, fully customizable branding, and the ability to embed forms on any website. Integrate with popular tools like Slack or Discord through Zapier or webhooks. Ensure the security of your recommendation forms with password protection and captcha. Use OpnForm's custom code feature to enhance your forms further. Pre-fill forms via URL parameters, set form closing dates, or limit submissions as needed. Respondents can even edit their own submissions with OpnForm's multiple page functionality."
},
"report_forms": {
"name": "Report Forms",
"slug": "report_forms",
"meta_title": "Simplify Your Reporting with OpnForm's Report Form Templates",
"meta_description": "Discover how OpnForm and our Report Form Templates can revolutionize your reporting process. Customize and brand your report forms, receive instant email notifications, and streamline your workflow. Find the perfect template for your needs and start reporting with ease today!",
"description": "Are you in need of a simple and efficient way to collect reports? OpnForm's Report Form Templates are here to help! Whether you're a manager, supervisor, or team leader, these templates are designed to streamline the reporting process. With OpnForm, you can easily customize and brand your forms, receive instant email notifications for every submission, and even integrate the forms with tools like Slack or Discord. Simply choose a report form template below, customize it to fit your needs, and experience the convenience of OpnForm for all your reporting needs."
},
"request_forms": {
"name": "Request Forms",
"slug": "request_forms",
"meta_title": "Efficiently Manage Requests with OpnForm's Request Form Templates",
"meta_description": "Discover how OpnForm's Request Form Templates can simplify your process of collecting requests. Customize the templates to fit your needs, receive email notifications, integrate with other tools, and streamline your request management with OpnForm.",
"description": "Need to collect requests and gather information efficiently? OpnForm offers Request Form Templates that can streamline the process! These templates are designed for individuals, businesses, and organizations looking to manage incoming requests. With OpnForm, you can easily customize these templates, collect data securely, and benefit from various features like email notifications, form customization, integrations with Slack and other tools, and much more. Start using OpnForm's Request Form Templates today and simplify the way you handle requests!"
},
"reservation_forms": {
"name": "Reservation Forms",
"slug": "reservation_forms",
"meta_title": "Simplify Your Reservation Management with OpnForm",
"meta_description": "Looking for an easy way to manage reservations? Discover how OpnForm's Reservation Form Templates can streamline your booking process. Customize your form, collect reservation details, and leverage powerful features like email notifications, embeddable forms, and integrations with popular tools. Upgrade your reservation management with OpnForm now!",
"description": "Planning an event or managing bookings? OpnForm offers Reservation Form Templates to simplify the process! Whether you run a hotel, a restaurant, or any other business that requires reservations, OpnForm has got you covered. With our templates, you can easily collect reservation details, streamline your booking process, and benefit from OpnForm's powerful features. Customize your reservation form to match your branding, embed it on your website, and leverage our integrations with tools like Slack and Discord via Zapier or webhooks. Take advantage of features like email notifications, form customization, password protection, and more. Upgrade your reservation management with OpnForm today!"
},
"sponsorship_forms": {
"name": "Sponsorship Forms",
"slug": "sponsorship_forms",
"meta_title": "Simplify Sponsorship Management with OpnForm's Templates",
"meta_description": "OpnForm's Sponsorship Form Templates are the ultimate solution for event organizers, non-profits, and businesses seeking sponsorships. Create customized forms, streamline the application process, and leverage OpnForm's features such as branding, email notifications, integrations, and more. Explore the power of OpnForm today!",
"description": "Looking for a hassle-free way to manage sponsorships? OpnForm's Sponsorship Form Templates are designed to simplify the process! These templates are targeted at event organizers, non-profit organizations, and businesses seeking sponsorships. With OpnForm, you can easily create custom sponsorship forms tailored to your needs. Collect important information from potential sponsors, streamline your sponsorship application process, and enjoy the benefits of OpnForm's powerful features. Customize your form's branding, protect it with a password, and even embed it on your website. With email notifications, you'll stay updated on new submissions, while respondents receive confirmation emails. OpnForm also offers integrations with popular tools like Slack, Discord, and more, enabling seamless communication and automation. Discover the possibilities of OpnForm's Sponsorship Form Templates today!"
},
"subscription_forms": {
"name": "Subscription Forms",
"slug": "subscription_forms",
"meta_title": "Supercharge Your Subscriptions with OpnForm",
"meta_description": "Streamline your subscription process with OpnForm's Subscription Form Templates. Collect subscription information easily, customize your forms, and benefit from OpnForm's integrations. Choose a template, make it your own, and see how OpnForm can simplify your subscription management.",
"description": "Looking to gather subscriptions? OpnForm's Subscription Form Templates are perfect for anyone who needs to collect subscription information easily and efficiently. Whether you're running a newsletter, membership site, or online service, OpnForm has the tools you need. With features like email notifications, custom branding, and integrations with popular tools, OpnForm can help you streamline your subscription process. Choose a template below, customize it to your needs, and see how OpnForm can simplify your subscription management."
},
"summer_camp_surveys": {
"name": "Summer Camp Surveys",
"slug": "summer_camp_surveys",
"meta_title": "Upgrade Your Summer Camp Surveys with OpnForm!",
"meta_description": "If you're an organizer looking to improve your summer camp experience, OpnForm is here to help! Our open-source form builder provides Summer Camp Survey Form Templates that can make collecting feedback a breeze. With OpnForm, you can easily customize and embed these survey forms on your camp's website. Take advantage of features like email notifications and custom domains to streamline your survey process. Upgrade your summer camp surveys today with OpnForm!",
"description": "Planning a summer camp and need to gather feedback? OpnForm offers Summer Camp Survey Form Templates that can simplify your work! These templates are designed specifically for summer camp organizers to collect valuable feedback from parents and campers. With OpnForm, you can easily create and customize these survey forms to fit your camp's unique needs. Take advantage of OpnForm's features like email notifications, form customization, custom domains, and form embedding to streamline your survey process. Upgrade your summer camp surveys today with OpnForm!"
},
"telecommuting_forms": {
"name": "Telecommuting Forms",
"slug": "telecommuting_forms",
"meta_title": "Streamline Telecommuting with OpnForm's Templates",
"meta_description": "Transitioning to telecommuting? Discover OpnForm's Telecommuting Form Templates and simplify the process. Customize your forms, collect vital information, and streamline communication. Benefit from OpnForm's features like email notifications, form branding, and integration with collaboration tools such as Slack and Discord. Upgrade your telecommuting experience with OpnForm!",
"description": "Are you transitioning your workforce to telecommuting? OpnForm offers Telecommuting Form Templates that can simplify the process! With these form templates, you can easily collect information from your employees, streamline communication, and ensure a smooth transition to remote work. OpnForm, an open-source form builder, provides features such as customizable forms, email notifications, form branding, and integration with collaboration tools like Slack and Discord. Use our Telecommuting Form Templates to gather essential information, communicate effectively, and leverage OpnForm's powerful features to facilitate seamless telecommuting."
},
"tracking_forms": {
"name": "Tracking Forms",
"slug": "tracking_forms",
"meta_title": "Simplify Tracking with OpnForm's Tracking Form Templates",
"meta_description": "Looking for a simple and efficient way to track shipments and packages? Discover OpnForm's Tracking Form Templates and see how you can leverage our open-source form builder and customizable templates to streamline your tracking process.",
"description": "Need to track shipments or packages? OpnForm offers Tracking Form Templates that make it easy to monitor and manage your tracking information. With OpnForm, you can create customized forms to collect tracking details, streamline your tracking process, and benefit from our integration capabilities. Use a tracking form template below, tailor it to your specific needs, and discover how OpnForm can enhance your tracking workflow."
},
"voting_forms": {
"name": "Voting Forms",
"slug": "voting_forms",
"meta_title": "Streamline Your Voting Process with OpnForm's Voting Form Templates",
"meta_description": "Find the perfect solution for your voting needs with OpnForm's Voting Form Templates. Create customizable forms to collect votes, opinions, and feedback easily. Discover the power of OpnForm's open-source form builder, email notifications, form embedding, custom domains, integrations, security features, and more!",
"description": "Looking to collect votes and opinions? OpnForm's Voting Form Templates are here to help! Whether you're running an election, conducting a survey, or seeking feedback, OpnForm provides user-friendly templates that simplify the voting process. With OpnForm's open-source form builder, you can fully customize and brand your voting forms. Take advantage of features like email notifications, form embedding, custom domains, and integrations with popular tools like Slack and Discord via Zapier or webhooks. Ensure the security of your voting forms with password protection and captchas. Plus, you can pre-fill forms, set submission limits, allow respondents to edit their submissions, and even create multi-page forms. Discover how OpnForm can enhance your voting experience today!"
},
"wedding_forms": {
"name": "Wedding Forms",
"slug": "wedding_forms",
"meta_title": "Simplify Your Wedding Planning with OpnForm's Wedding Form Templates",
"meta_description": "OpnForm's Wedding Form Templates make wedding planning a breeze! Collect RSVPs, manage guest details, and send out wedding invitations effortlessly. Customize your forms, protect them with passwords, and embed them on your wedding website. Get started with OpnForm and make your wedding planning experience a memorable one.",
"description": "Planning a wedding has never been easier! OpnForm's Wedding Form Templates are designed specifically for those organizing their special day. With OpnForm, you can effortlessly collect RSVPs, manage guest details, and send out wedding invitations. Our form builder offers a range of features to enhance your wedding planning experience. Customize your forms to match your wedding theme, protect them with passwords, and embed them on your wedding website. Plus, with OpnForm's email notifications, you'll never miss a response. Start simplifying your wedding planning process with OpnForm's Wedding Form Templates today!"
},
"volunteer_forms": {
"name": "Volunteer Forms",
"slug": "volunteer_forms",
"meta_title": "Simplify Volunteer Recruitment with OpnForm's Volunteer Form Templates",
"meta_description": "OpnForm's Volunteer Form Templates are the perfect solution for organizations seeking to simplify their volunteer recruitment process. With OpnForm's open-source form builder, you can easily create personalized volunteer forms, customize and brand them to match your organization's identity, and benefit from powerful features like email notifications, integration with popular tools, form protection, and more. Discover how OpnForm can help you streamline your volunteer recruitment today!",
"description": "Looking to recruit volunteers? OpnForm offers Volunteer Form Templates that can make the process easier for you! These form templates are designed to help you gather information from potential volunteers, streamline your volunteer recruitment process, and benefit from OpnForm's powerful features. Customize and brand your forms, receive email notifications for new volunteer submissions, integrate with tools like Slack and Discord, and even protect your forms with a password. With OpnForm, you can create engaging and user-friendly volunteer forms that will make it simple for candidates to apply and for you to manage applications."
}
}

View File

@ -0,0 +1,492 @@
{
"email": {
"comparators": {
"equals": {
"expected_type": "string"
},
"does_not_equal": {
"expected_type": "string"
},
"contains": {
"expected_type": "string"
},
"does_not_contain": {
"expected_type": "string"
},
"starts_with": {
"expected_type": "string"
},
"ends_with": {
"expected_type": "string"
},
"is_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"is_not_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"content_length_equals": {
"expected_type": "number"
},
"content_length_does_not_equal": {
"expected_type": "number"
},
"content_length_greater_than": {
"expected_type": "number"
},
"content_length_greater_than_or_equal_to": {
"expected_type": "number"
},
"content_length_less_than": {
"expected_type": "number"
},
"content_length_less_than_or_equal_to": {
"expected_type": "number"
}
}
},
"url": {
"comparators": {
"equals": {
"expected_type": "string"
},
"does_not_equal": {
"expected_type": "string"
},
"contains": {
"expected_type": "string"
},
"does_not_contain": {
"expected_type": "string"
},
"starts_with": {
"expected_type": "string"
},
"ends_with": {
"expected_type": "string"
},
"is_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"is_not_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"content_length_equals": {
"expected_type": "number"
},
"content_length_does_not_equal": {
"expected_type": "number"
},
"content_length_greater_than": {
"expected_type": "number"
},
"content_length_greater_than_or_equal_to": {
"expected_type": "number"
},
"content_length_less_than": {
"expected_type": "number"
},
"content_length_less_than_or_equal_to": {
"expected_type": "number"
}
}
},
"phone_number": {
"comparators": {
"equals": {
"expected_type": "string"
},
"does_not_equal": {
"expected_type": "string"
},
"contains": {
"expected_type": "string"
},
"does_not_contain": {
"expected_type": "string"
},
"starts_with": {
"expected_type": "string"
},
"ends_with": {
"expected_type": "string"
},
"is_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"is_not_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"content_length_equals": {
"expected_type": "number"
},
"content_length_does_not_equal": {
"expected_type": "number"
},
"content_length_greater_than": {
"expected_type": "number"
},
"content_length_greater_than_or_equal_to": {
"expected_type": "number"
},
"content_length_less_than": {
"expected_type": "number"
},
"content_length_less_than_or_equal_to": {
"expected_type": "number"
}
}
},
"text": {
"comparators": {
"equals": {
"expected_type": "string"
},
"does_not_equal": {
"expected_type": "string"
},
"contains": {
"expected_type": "string"
},
"does_not_contain": {
"expected_type": "string"
},
"starts_with": {
"expected_type": "string"
},
"ends_with": {
"expected_type": "string"
},
"is_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"is_not_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"content_length_equals": {
"expected_type": "number"
},
"content_length_does_not_equal": {
"expected_type": "number"
},
"content_length_greater_than": {
"expected_type": "number"
},
"content_length_greater_than_or_equal_to": {
"expected_type": "number"
},
"content_length_less_than": {
"expected_type": "number"
},
"content_length_less_than_or_equal_to": {
"expected_type": "number"
}
}
},
"number": {
"comparators": {
"equals": {
"expected_type": "number"
},
"does_not_equal": {
"expected_type": "number"
},
"greater_than": {
"expected_type": "number"
},
"less_than": {
"expected_type": "number"
},
"greater_than_or_equal_to": {
"expected_type": "number"
},
"less_than_or_equal_to": {
"expected_type": "number"
},
"is_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"is_not_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"content_length_equals": {
"expected_type": "number"
},
"content_length_does_not_equal": {
"expected_type": "number"
},
"content_length_greater_than": {
"expected_type": "number"
},
"content_length_greater_than_or_equal_to": {
"expected_type": "number"
},
"content_length_less_than": {
"expected_type": "number"
},
"content_length_less_than_or_equal_to": {
"expected_type": "number"
}
}
},
"checkbox": {
"comparators": {
"equals": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"does_not_equal": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
}
}
},
"select": {
"comparators": {
"equals": {
"expected_type": "string"
},
"does_not_equal": {
"expected_type": "string"
},
"is_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"is_not_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
}
}
},
"multi_select": {
"comparators": {
"contains": {
"expected_type": ["object", "string"],
"format": {
"type": "uuid"
}
},
"does_not_contain": {
"expected_type": ["object", "string"],
"format": {
"type": "uuid"
}
},
"is_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"is_not_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
}
}
},
"date": {
"comparators": {
"equals": {
"expected_type": "string",
"format": {
"type": "date"
}
},
"before": {
"expected_type": "string",
"format": {
"type": "date"
}
},
"after": {
"expected_type": "string",
"format": {
"type": "date"
}
},
"on_or_before": {
"expected_type": "string",
"format": {
"type": "date"
}
},
"on_or_after": {
"expected_type": "string",
"format": {
"type": "date"
}
},
"is_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"is_not_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"past_week": {
"expected_type": "object",
"format": {
"type": "empty",
"values": "{}"
}
},
"past_month": {
"expected_type": "object",
"format": {
"type": "empty",
"values": "{}"
}
},
"past_year": {
"expected_type": "object",
"format": {
"type": "empty",
"values": "{}"
}
},
"next_week": {
"expected_type": "object",
"format": {
"type": "empty",
"values": "{}"
}
},
"next_month": {
"expected_type": "object",
"format": {
"type": "empty",
"values": "{}"
}
},
"next_year": {
"expected_type": "object",
"format": {
"type": "empty",
"values": "{}"
}
}
}
},
"files": {
"comparators": {
"is_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
},
"is_not_empty": {
"expected_type": "boolean",
"format": {
"type": "enum",
"values": [
true
]
}
}
}
}
}

1373
client/data/timezones.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
export default defineNuxtRouteMiddleware(async(to, from) => {
const authStore = useAuthStore()
authStore.initStore(useCookie('token').value, useCookie('admin_token').value)
if (authStore.token && !authStore.user) {
const {data, error} = await useOpnApi('user')
authStore.setUser(data.value)
}
})

View File

@ -1,8 +1,7 @@
import {useAuthStore} from "../../resources/js/stores/auth.js";
export default defineNuxtRouteMiddleware((to, from) => {
const authStore = useAuthStore()
if (!authStore.user?.admin) {
navigateTo({ name: 'home' })
if (authStore.check && !authStore.user?.admin) {
console.log('redirecting to home')
return navigateTo({ name: 'home' })
}
})

View File

@ -1,11 +1,10 @@
import {useAuthStore} from "../../resources/js/stores/auth.js";
export default defineNuxtRouteMiddleware((to, from) => {
const authStore = useAuthStore()
if (!authStore.check) {
useCookie('intended_url').value = to.path
navigateTo({ name: 'login' })
console.log('redirecting to login')
return navigateTo({ name: 'login' })
}
})

View File

@ -1,5 +0,0 @@
export default defineNuxtRouteMiddleware((to, from) => {
const authStore = useAuthStore()
authStore.loadTokenFromCookie()
authStore.fetchUserIfNotFetched()
})

View File

@ -0,0 +1,16 @@
import opnformConfig from "~/opnform.config.js";
function getDomain (url) {
return (new URL(url)).hostname
}
export default defineNuxtRouteMiddleware((to, from) => {
if (opnformConfig.custom_domains_enabled && process.client) {
const isCustomDomain = getDomain(window.location.href) !== getDomain(opnformConfig.app_url)
if (isCustomDomain && !['forms.show_public'].includes(to.name)) {
// If route isn't a public form, redirect
return navigateTo({name: 'home',query: {utm_source: 'failed_custom_domain_redirect'}});
}
}
})

9
client/middleware/guest.js vendored Normal file
View File

@ -0,0 +1,9 @@
export default defineNuxtRouteMiddleware((to, from) => {
const authStore = useAuthStore()
if (authStore.check) {
console.log('redirecting to home')
return navigateTo({ name: 'home' })
}
})

7
client/middleware/subscribed.js vendored Normal file
View File

@ -0,0 +1,7 @@
export default defineNuxtRouteMiddleware((to, from) => {
const authStore = useAuthStore()
if (authStore.check && !authStore.user?.is_subscribed) {
return navigateTo({ name: 'pricing' })
}
})

View File

@ -1,5 +1,6 @@
export default {
"app_ame": "OpnForm",
"app_url": "https://opnform.test",
"api_url": "https://opnform.test/api",
"locale": "en",
"locales": {"en": "EN"},
@ -20,11 +21,11 @@ export default {
"production": false,
"hCaptchaSiteKey": "4ee2dabb-4012-477e-8eb6-8017355f07cd",
"google_analytics_code": "",
"amplitude_code": "",
"amplitude_code": "9952c8b914ce3f2bd494fce2dba18243",
"sentry_dsn": "https://f1829a9d456704e776eccc73e1b30369@o4504910866612224.ingest.sentry.io/4506014678646784",
"crisp_website_id": "94219d77-06ff-4aec-b07a-5bf26ec8fde1",
"ai_features_enabled": true,
"s3_enabled": false,
"paid_plans_enabled": true,
"custom_domains_enabled": true
"custom_domains_enabled": false
}

1704
client/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,9 +22,6 @@
"@hcaptcha/vue3-hcaptcha": "^1.3.0",
"@nuxtjs/sentry": "^8.0.6",
"@pinia/nuxt": "^0.5.1",
"@sentry/integrations": "^7.53.1",
"@sentry/tracing": "^6.11.0",
"@sentry/vue": "^6.11.0",
"@vueuse/components": "^10.5.0",
"@vueuse/core": "^10.5.0",
"@vueuse/motion": "^2.0.0",

View File

@ -8,8 +8,10 @@
Your Forms
</h2>
<v-button v-track.create_form_click :to="{name:'forms-create'}">
<svg class="w-4 h-4 text-white inline mr-1 -mt-1" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.99996 1.1665V12.8332M1.16663 6.99984H12.8333" stroke="currentColor" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round" />
<svg class="w-4 h-4 text-white inline mr-1 -mt-1" viewBox="0 0 14 14" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M6.99996 1.1665V12.8332M1.16663 6.99984H12.8333" stroke="currentColor" stroke-width="1.67"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
Create a new form
</v-button>
@ -45,12 +47,15 @@
<h3 class="w-full mt-4 text-center text-gray-900 font-semibold">
No forms found
</h3>
<div v-if="isFilteringForms && enrichedForms.length === 0 && searchForm.search" class="mt-2 w-full text-center">
<div v-if="isFilteringForms && enrichedForms.length === 0 && searchForm.search"
class="mt-2 w-full text-center">
Your search "{{ searchForm.search }}" did not match any forms. Please try again.
</div>
<v-button v-if="forms.length === 0" v-track.create_form_click class="mt-4" :to="{name:'forms-create'}">
<svg class="w-4 h-4 text-white inline mr-1 -mt-1" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.99996 1.1665V12.8332M1.16663 6.99984H12.8333" stroke="currentColor" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round" />
<svg class="w-4 h-4 text-white inline mr-1 -mt-1" viewBox="0 0 14 14" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M6.99996 1.1665V12.8332M1.16663 6.99984H12.8333" stroke="currentColor" stroke-width="1.67"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
Create a new form
</v-button>
@ -60,7 +65,8 @@
<div v-for="(form) in enrichedForms" :key="form.id"
class="mt-4 p-4 flex group bg-white hover:bg-gray-50 dark:bg-notion-dark items-center"
>
<div class="flex-grow items-center truncate cursor-pointer" role="button" @click.prevent="viewForm(form)">
<div class="flex-grow items-center truncate cursor-pointer" role="button"
@click.prevent="viewForm(form)">
<span class="font-semibold text-gray-900 dark:text-white">{{ form.title }}</span>
<ul class="flex text-gray-500">
<li class="pr-1">
@ -74,7 +80,8 @@
Edited {{ form.last_edited_human }}
</li>
</ul>
<div v-if="['draft','closed'].includes(form.visibility) || (form.tags && form.tags.length > 0)" class="mt-1 flex items-center flex-wrap gap-3">
<div v-if="['draft','closed'].includes(form.visibility) || (form.tags && form.tags.length > 0)"
class="mt-1 flex items-center flex-wrap gap-3">
<span v-if="form.visibility=='draft'"
class="inline-flex items-center rounded-full bg-yellow-100 px-2 py-1 text-xs font-medium text-yellow-600 ring-1 ring-inset ring-gray-500/10 dark:text-white dark:bg-gray-700">
Draft
@ -90,25 +97,25 @@
</span>
</div>
</div>
<extra-menu :form="form" :is-main-page="true" />
<extra-menu :form="form" :is-main-page="true"/>
</div>
</div>
</div>
<div v-if="formsLoading" class="text-center">
<Loader class="h-6 w-6 text-nt-blue mx-auto" />
<Loader class="h-6 w-6 text-nt-blue mx-auto"/>
</div>
</div>
</div>
</div>
<open-form-footer class="mt-8 border-t" />
<open-form-footer class="mt-8 border-t"/>
</div>
</template>
<script>
import { computed } from 'vue'
import { useAuthStore } from '../stores/auth';
import { useFormsStore } from '../stores/forms';
import { useWorkspacesStore } from '../stores/workspaces';
import {computed} from 'vue'
import {useAuthStore} from '../stores/auth';
import {useFormsStore} from '../stores/forms';
import {useWorkspacesStore} from '../stores/workspaces';
import Fuse from 'fuse.js'
import Form from 'vform'
import TextInput from '../components/forms/TextInput.vue'
@ -120,35 +127,43 @@ const loadForms = function () {
const workspacesStore = useWorkspacesStore()
formsStore.startLoading()
return workspacesStore.loadIfEmpty().then(() => {
if (process.client) {
formsStore.loadIfEmpty(workspacesStore.currentId)
}
})
}
export default {
components: { OpenFormFooter, TextInput, ExtraMenu },
middleware: 'auth',
components: {OpenFormFooter, TextInput, ExtraMenu},
props: {
metaTitle: { type: String, default: 'Your Forms' },
metaDescription: { type: String, default: 'All of your OpnForm are here. Create new forms, or update your existing one!' }
metaTitle: {type: String, default: 'Your Forms'},
metaDescription: {
type: String,
default: 'All of your OpnForm are here. Create new forms, or update your existing one!'
}
},
async setup () {
async setup() {
const authStore = useAuthStore()
const formsStore = useFormsStore()
const workspacesStore = useWorkspacesStore()
definePageMeta({
middleware: "auth"
})
loadForms()
return {
formsStore,
workspacesStore,
user : computed(() => authStore.user),
forms : computed(() => formsStore.content),
formsLoading : computed(() => formsStore.loading)
user: computed(() => authStore.user),
forms: computed(() => formsStore.content),
formsLoading: computed(() => formsStore.loading)
}
},
data () {
data() {
return {
showEditFormModal: false,
selectedForm: null,
@ -159,14 +174,15 @@ export default {
}
},
mounted () {},
mounted() {
},
methods: {
editForm (form) {
editForm(form) {
this.selectedForm = form
this.showEditFormModal = true
},
onTagClick (tag) {
onTagClick(tag) {
const idx = this.selectedTags.indexOf(tag)
if (idx === -1) {
this.selectedTags.push(tag)
@ -174,16 +190,16 @@ export default {
this.selectedTags.splice(idx, 1)
}
},
viewForm (form) {
this.$router.push({ name: 'forms.show', params: { slug: form.slug } })
viewForm(form) {
this.$router.push({name: 'forms.show', params: {slug: form.slug}})
}
},
computed: {
isFilteringForms () {
isFilteringForms() {
return (this.searchForm.search !== '' && this.searchForm.search !== null) || this.selectedTags.length > 0
},
enrichedForms () {
enrichedForms() {
let enrichedForms = this.forms.map((form) => {
form.workspace = this.workspacesStore.getById(form.workspace_id)
return form
@ -213,7 +229,7 @@ export default {
return res.item
})
},
allTags () {
allTags() {
return this.formsStore.getAllTags
}
}

View File

@ -62,7 +62,11 @@ export default {
LoginForm
},
middleware: 'guest',
setup() {
definePageMeta({
middleware: "guest"
})
},
data: () => ({
metaTitle: 'Login',

View File

@ -23,6 +23,7 @@
import OpenFormFooter from '../components/pages/OpenFormFooter.vue'
import TemplatesList from '../components/pages/templates/TemplatesList.vue'
import SeoMeta from '../mixins/seo-meta.js'
import {useTemplatesStore} from "~/stores/templates.js";
export default {
@ -34,6 +35,11 @@ export default {
metaDescription: { type: String, default: 'Our collection of beautiful templates to create your own forms!' }
},
setup() {
const templatesStore = useTemplatesStore()
templatesStore.loadAll()
},
data () {
return {}
},

View File

@ -76,7 +76,7 @@
<div class="grid grid-cols-1 gap-8 mt-8 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<router-link v-for="row in otherIndustries" :key="row.slug"
:to="{params:{slug:row.slug}, name:'templates.industries.show'}"
:to="{params:{slug:row.slug}, name:'templates-industries'}"
:title="row.name"
class="text-gray-600 dark:text-gray-400 transition-colors duration-300 hover:text-nt-blue"
>

View File

@ -76,7 +76,7 @@
<div class="grid grid-cols-1 gap-8 mt-8 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<router-link v-for="row in otherTypes" :key="row.slug"
:to="{params:{slug:row.slug}, name:'templates.types.show'}"
:to="{params:{slug:row.slug}, name:'templates-types'}"
:title="row.name"
class="text-gray-600 dark:text-gray-400 transition-colors duration-300 hover:text-nt-blue"
>

View File

@ -1,48 +0,0 @@
import { ofetch } from 'ofetch'
import {useAuthStore} from "~/stores/auth.js";
function addAuthHeader(request, options) {
console.log('insidecookie', useRequestHeaders('cookie'))
const authStore = useAuthStore()
if (authStore.token) {
options.headers = { Authorization: `Bearer ${authStore.token}` }
console.log('addidng auth',options)
}
}
function addPasswordToFormRequest (request) {
const url = request.url
if (!url || !url.startsWith('/api/forms/')) return
const slug = url.split('/')[3]
const passwordCookie = useCookie('password-' + slug, { maxAge: 60 * 60 * 24 * 30 }) // 30 days
if (slug !== undefined && slug !== '' && passwordCookie.value !== undefined) {
request.headers['form-password'] = passwordCookie.value
}
}
export default defineNuxtPlugin((_nuxtApp) => {
globalThis.$fetch = ofetch.create({
onRequest ({ request, options }) {
// TODO: check that it's our own domain called
console.log(request)
options.headers = { accept: 'application/json', ...options.headers }
addAuthHeader(request, options)
addPasswordToFormRequest(request)
},
onResponseError ({ response }) {
const authStore = useAuthStore()
const { status } = response
if (status === 401 && authStore.check) {
// TODO: check that it's our own domain called
authStore.logout()
useRouter().push({ name: 'login' })
}
if (status >= 500) {
console.error('Request error', status)
}
}
})
})

51
client/stores/auth.js vendored
View File

@ -1,6 +1,5 @@
import {defineStore} from 'pinia'
import axios from 'axios'
import {useOpnFetch} from "~/composables/useOpnFetch.js";
export const useAuthStore = defineStore('auth', {
state: () => {
@ -27,39 +26,34 @@ export const useAuthStore = defineStore('auth', {
},
setToken(token) {
useCookie('token', {maxAge: 60 * 60 * 24 * 30}).value = token
this.setCookie('token', token)
this.token = token
},
setAdminToken(token) {
useCookie('admin_token', {maxAge: 60 * 60 * 24 * 30}).value = token
this.setCookie('admin_token', token)
this.admin_token = token
},
loadTokenFromCookie() {
this.token = useCookie('token').value
this.admin_token = useCookie('admin_token').value
setCookie(name, value) {
if (process.client) {
useCookie(name).value = value
}
},
async fetchUser() {
useOpnFetch('/user').then(({data, error}) => {
console.log('fetch user', data,error)
if (error.value) {
console.error('Error fetching user', error.value)
initStore(token, adminToken) {
this.token = token
this.admin_token = adminToken
},
setUser(user) {
if (!user) {
console.error('Error.setting.user')
this.setToken(null)
}
this.user = data.value
this.user = user
this.initServiceClients()
return this.user
})
},
async fetchUserIfNotFetched() {
if (this.user === null && this.token) {
await this.fetchUser()
}
},
updateUser(payload) {
@ -73,13 +67,14 @@ export const useAuthStore = defineStore('auth', {
useCrisp().setUser(this.user)
// Init sentry
Sentry.configureScope((scope) => {
scope.setUser({
id: this.user.id,
email: this.user.email,
subscription: this.user?.is_subscribed
})
})
// console.log(process)
// $sentry.configureScope((scope) => {
// scope.setUser({
// id: this.user.id,
// email: this.user.email,
// subscription: this.user?.is_subscribed
// })
// })
},
async logout() {

View File

@ -1,5 +1,4 @@
import {defineStore} from 'pinia'
import {useOpnFetch} from "~/composables/useOpnFetch.js";
export const formsEndpoint = '/open/workspaces/{workspaceId}/forms'
export let currentPage = 1
@ -56,13 +55,14 @@ export const useFormsStore = defineStore('forms', {
},
load(workspaceId) {
this.startLoading()
return useOpnFetch(formsEndpoint.replace('{workspaceId}', workspaceId) + '?page=' + currentPage).get().then((response) => {
return useOpnApi(formsEndpoint.replace('{workspaceId}', workspaceId) + '?page=' + currentPage)
.then(({data, error}) => {
if (currentPage === 1) {
this.set(response.data.data)
this.set(data.value.data)
} else {
this.append(response.data.data)
this.append(data.value.data)
}
if (currentPage < response.data.meta.last_page) {
if (currentPage < data.value.meta.last_page) {
currentPage += 1
this.load(workspaceId)
} else {

View File

@ -1,9 +1,6 @@
import axios from 'axios'
import { defineStore } from 'pinia'
export const templatesEndpoint = '/api/templates'
import {defineStore} from 'pinia'
export const templatesEndpoint = '/templates'
export const useTemplatesStore = defineStore('templates', {
state: () => ({
content: [],
@ -19,56 +16,57 @@ export const useTemplatesStore = defineStore('templates', {
},
getTemplateTypes: (state) => (slugs) => {
if (state.types.length === 0) return null
return Object.values(state.types).filter((val) => slugs.includes(val.slug)).map((item) => { return item.name })
return Object.values(state.types).filter((val) => slugs.includes(val.slug)).map((item) => {
return item.name
})
},
getTemplateIndustries: (state) => (slugs) => {
if (state.industries.length === 0) return null
return Object.values(state.industries).filter((val) => slugs.includes(val.slug)).map((item) => { return item.name })
return Object.values(state.industries).filter((val) => slugs.includes(val.slug)).map((item) => {
return item.name
})
}
},
actions: {
set (items) {
set(items) {
this.content = items
this.allLoaded = true
},
append (items) {
const ids = items.map((item) => { return item.id })
append(items) {
const ids = items.map((item) => {
return item.id
})
this.content = this.content.filter((val) => !ids.includes(val.id))
this.content = this.content.concat(items)
},
addOrUpdate (item) {
addOrUpdate(item) {
this.content = this.content.filter((val) => val.id !== item.id)
this.content.push(item)
},
remove (item) {
remove(item) {
this.content = this.content.filter((val) => val.id !== item.id)
},
startLoading () {
startLoading() {
this.loading = true
},
stopLoading () {
stopLoading() {
this.loading = false
},
setAllLoaded (val) {
setAllLoaded(val) {
this.allLoaded = val
},
resetState () {
resetState() {
this.set([])
this.stopLoading()
},
loadTypesAndIndustries () {
if (Object.keys(this.industries).length === 0) {
import('@/data/forms/templates/industries.json').then((module) => {
this.industries = module.default
})
}
if (Object.keys(this.types).length === 0) {
import('@/data/forms/templates/types.json').then((module) => {
this.types = module.default
})
async loadTypesAndIndustries() {
if (Object.keys(this.industries).length === 0 || Object.keys(this.types).length === 0) {
const files = import.meta.glob('~/data/forms/templates/*.json')
this.industries = await files['/data/forms/templates/industries.json']()
this.types = await files['/data/forms/templates/types.json']()
}
},
loadTemplate (slug) {
loadTemplate(slug) {
this.startLoading()
this.loadTypesAndIndustries()
@ -77,31 +75,31 @@ export const useTemplatesStore = defineStore('templates', {
return Promise.resolve()
}
return axios.get(templatesEndpoint + '/' + slug).then((response) => {
this.addOrUpdate(response.data)
return useOpnApi(templatesEndpoint + '/' + slug).then(({data, error}) => {
this.addOrUpdate(data.value)
this.stopLoading()
}).catch((error) => {
this.stopLoading()
})
},
loadAll (options=null) {
loadAll(options = null) {
this.startLoading()
this.loadTypesAndIndustries()
// Prepare with options
let queryStr = ''
if(options !== null){
if (options !== null) {
for (const [key, value] of Object.entries(options)) {
queryStr += '&' + encodeURIComponent(key) + '=' + encodeURIComponent(value)
}
queryStr = queryStr.slice(1)
}
return axios.get((queryStr) ? templatesEndpoint + '?' + queryStr : templatesEndpoint).then((response) => {
if(options !== null){
this.set(response.data)
return useOpnApi((queryStr) ? templatesEndpoint + '?' + queryStr : templatesEndpoint).then(({data, error}) => {
if (options !== null) {
this.set(data.value)
this.setAllLoaded(false)
} else {
this.append(response.data)
this.append(data.value)
this.setAllLoaded(true)
}
this.stopLoading()
@ -109,7 +107,7 @@ export const useTemplatesStore = defineStore('templates', {
this.stopLoading()
})
},
loadIfEmpty () {
loadIfEmpty() {
if (!this.allLoaded) {
return this.loadAll()
}

View File

@ -1,5 +1,4 @@
import {defineStore} from 'pinia'
import {useOpnFetch} from "~/composables/useOpnFetch.js"
import {useStorage} from "@vueuse/core"
export const workspaceEndpoint = 'open/workspaces/'
@ -17,9 +16,9 @@ export const useWorkspacesStore = defineStore('workspaces', {
if (state.content.length === 0) return null
return state.content.find(item => item.id === id)
},
getCurrent: (state) => () => {
if (state.content.length === 0 || state.currentId === null) return null
return state.content.find(item => item.id === state.currentId)
getCurrent (){
if (this.content.length === 0 || this.currentId === null) return null
return this.content.find(item => item.id === this.currentId)
}
},
actions: {
@ -71,9 +70,8 @@ export const useWorkspacesStore = defineStore('workspaces', {
load() {
this.set([])
this.startLoading()
return useOpnFetch(workspaceEndpoint,{server: false}).then(({data,error}) => {
console.log(data,error)
this.set(data)
return useOpnApi(workspaceEndpoint).then(({data, error}) => {
this.set(data.value)
this.stopLoading()
})
},
@ -85,8 +83,8 @@ export const useWorkspacesStore = defineStore('workspaces', {
},
delete(id) {
this.startLoading()
return useOpnFetch(workspaceEndpoint + id, {method: 'DELETE'}).then((response) => {
this.remove(response.data.workspace_id)
return useOpnApi(workspaceEndpoint + id, {method: 'DELETE'}).then(({data}) => {
this.remove(data.value.workspace_id)
this.stopLoading()
})
}

View File

@ -1,19 +0,0 @@
import { useAuthStore } from '../stores/auth';
export default async (to, from, next) => {
const authStore = useAuthStore()
if (authStore.check && authStore.user?.workspaces_count === 0) {
if ([
'forms.create',
'forms.show',
'forms.edit',
'home'
].includes(to.name)
) {
next({ name: 'onboarding' })
return
}
}
next()
}

View File

@ -1,21 +0,0 @@
import { useAuthStore } from '../stores/auth';
/**
* This is middleware to check the current user role.
*
* middleware: 'role:admin,manager',
*/
export default (to, from, next, roles) => {
const authStore = useAuthStore()
// Split roles into an array
roles = roles.split(',')
// Check if the user has one of the required roles...
if (!roles.includes(authStore.user?.role)) {
next('/unauthorized')
}
next()
}