-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c6092e
commit d3ba0de
Showing
5 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{#- | ||
!!!NOTE: This macro is included in all contact.md / offer.md / free-offer.md files. Edit with caution. | ||
-#} | ||
|
||
{%- include 'setup_vars.md' -%} | ||
|
||
{#- nype_config is the reference to page.meta.nype_config, so modify this to pass data to the theme templates. -#} | ||
{%- set _ = nype_config.required_js_keys.update({ 'contact_form_action_hex': {} }) -%} | ||
|
||
{%- set email_label = "E-mail:" if nype_config.js.contact_form_allow_personal_emails else "Company E-mail:" -%} | ||
{%- set email_placeholder = "Input your e-mail" if nype_config.js.contact_form_allow_personal_emails else "Input your company e-mail" -%} | ||
|
||
<div class="nype-form-wrapper"> | ||
<form class="nype-form" method="POST"> | ||
<label for="fullname">Full Name:</label> | ||
<input | ||
class="md-input" | ||
id="fullname" | ||
name="fullname" | ||
placeholder="Input your name" | ||
required | ||
type="text" | ||
> | ||
<label for="companyname">Company Name:</label> | ||
<input | ||
class="md-input" | ||
id="companyname" | ||
name="companyname" | ||
placeholder="Input your company name" | ||
required | ||
type="text" | ||
> | ||
<label for="email">{{- email_label -}}</label> | ||
<input | ||
autocomplete="email" | ||
class="md-input" | ||
id="email" | ||
name="email" | ||
placeholder="{{- email_placeholder -}}" | ||
required | ||
type="email" | ||
> | ||
<label for="message">What can we do for you?:</label> | ||
<textarea | ||
class="md-input" | ||
id="message" | ||
name="message" | ||
placeholder="Input your message" | ||
required | ||
></textarea> | ||
<button | ||
class="md-button md-button--primary" | ||
type="submit" | ||
>Submit</button> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{#- | ||
!!!NOTE: This macro is included in all contact.md / offer.md / free-offer.md files. Edit with caution. | ||
-#} | ||
|
||
{%- include 'setup_vars.md' -%} | ||
|
||
{#- nype_config is the reference to page.meta.nype_config, so modify this to pass data to the theme templates. -#} | ||
{%- set _ = nype_config.required_js_keys.update({ 'contact_form_email_hex': {} }) -%} | ||
|
||
{#- Whitespace #} <span class="nype-code-button nype-show-email">`Show e-mail`</span> {# Whitespace -#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{%- if page.meta and not page.meta.nype_config -%} | ||
{%- set _ = page.meta.update({ 'nype_config': {} }) -%} | ||
{%- endif -%} | ||
|
||
{%- if not nype_config -%} | ||
{%- set nype_config = page.meta.nype_config -%} | ||
{%- endif -%} | ||
|
||
{%- if not nype_config.js -%} | ||
{%- set _ = nype_config.update({ 'js': {} }) -%} | ||
{%- endif -%} | ||
|
||
{%- if not nype_config.required_js_keys -%} | ||
{%- set _ = nype_config.update({ 'required_js_keys': {} }) -%} | ||
{%- endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters