<% if (view === 'my_forms') { %>

My Forms

+ Create New Form
<%- include('partials/_forms_table', { forms: forms, appUrl: appUrl }) %> <% } else if (view === 'create_form') { %>

Create New Form

<% if (typeof error !== 'undefined' && error) { %>

<%= error %>

<% } %>
<% } else if (view === 'form_submissions') { %> <%- include('partials/_submissions_view', { submissions: submissions, formUuid: formUuid, formName: formName, pagination: pagination, appUrl: appUrl }) %> <% } else if (view === 'account_settings') { %>

Account Settings

Account settings will be here.

<% } else if (view === 'form_settings') { %>

Settings for <%= formName %>

Back to My Forms
<% if (typeof successMessage !== 'undefined' && successMessage) { %>
<%= successMessage %>
<% } %> <% if (typeof errorMessage !== 'undefined' && errorMessage) { %>
<%= errorMessage %>
<% } %>

General Settings

Email Notifications

style="margin-right: 0.5rem;">
If left blank, notifications will be sent to your account email: <%= user.email %>

Spam Protection

style="margin-right: 0.5rem;"> Uses the globally configured site and secret keys. Ensure these are set in your server's .env file.

Thank You Page

If a "Thank You URL" is provided, it will be used. Otherwise, this custom message will be shown. If both are blank, a default message is used.

Allowed Domains

Comma-separated list of domains. Leave blank to allow submissions from any domain.
<% } else if (view === 'api_keys') { %>

API Keys

<% if (typeof successMessage !== 'undefined' && successMessage) { %>
<%= successMessage %>
<% } %> <% if (typeof errorMessage !== 'undefined' && errorMessage) { %>
<%= errorMessage %>
<% } %> <% if (typeof newlyGeneratedApiKey !== 'undefined' && newlyGeneratedApiKey) { %>

New API Key Generated: <%= newlyGeneratedApiKeyName %>

Important: This is the only time you will see this API key. Copy it now and store it securely.

<%= newlyGeneratedApiKey %>
<% } %>

Generate New API Key

Your API Keys

<% if (apiKeys && apiKeys.length > 0) { %> <% apiKeys.forEach(key => { %> <% }) %>
Name Identifier (Prefix) Created At Last Used Actions
<%= key.key_name %> <%= key.api_key_identifier %> <%= new Date(key.created_at).toLocaleDateString() %> <%= key.last_used_at ? new Date(key.last_used_at).toLocaleDateString() : 'Never' %>
<% } else { %>

You have not generated any API keys yet.

<% } %>
<% } %>