Last active
April 15, 2020 06:12
-
-
Save vishnusomanus/be1fea0ecef55438a163bce1ee917c51 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Success Message: Message sent successfully! | |
Contact Us Auto Response | |
------------------------- | |
<p>Hi {{ forms_getField(input,'name') | raw }},</p> | |
<p>We have received your message, and we will contact you shortly!</p> | |
<p>Thanks!<br></p> | |
<p>AR Audio Medical</p> | |
Contact Us To Admin | |
------------------------- | |
<p>Hi ,</p> | |
<p>There is an incoming contact message and here is the info the customer filled out:</p> | |
<p>{{ forms_input(input)|raw }}</p> | |
form code | |
------------------------- | |
{% set form = form('forms::contact_us').get%} | |
{{ form.open|raw }} | |
<div class="form-group"> | |
{{ form.fields.name.setAttributes({ 'required' : 'required','class' : 'form-control' }).input|raw }} | |
</div> | |
<div class="form-group row"> | |
<div class="col-6 form-group"> | |
{{ form.fields.email.setAttributes({ 'required' : 'required','class' : 'form-control' }).input|raw }} | |
</div> | |
<div class="col-6 form-group"> | |
{{ form.fields.phone.setAttributes({ 'required' : 'required','class' : 'form-control' }).input|raw }} | |
</div> | |
</div> | |
<div class="form-group row"> | |
<div class="col-6 form-group"> | |
{{ form.fields.services.setAttributes({ 'class' : 'form-control' }).input|raw }} | |
</div> | |
<div class="col-6 form-group"> | |
{{ form.fields.reservation_date.setAttributes({ 'class' : 'form-control' }).input|raw }} | |
</div> | |
</div> | |
<div class="form-group"> | |
{{ form.fields.message.setAttributes({ 'class' : 'form-control' }).input|raw }} | |
</div> | |
<div class="form-group"> | |
<div class="recaptcha"> | |
<div class="g-recaptcha" data-sitekey="6Lf_OMIUAAAAALgHGsCxoNi-YFAb0PChRiltcUHl"></div> | |
<label style="color: red;margin-left: 2%;display: none;" class="recaptcha_error">Recaptcha is required</label> | |
</div> | |
</div> | |
<button type="submit" class="btn btn-primary w-100 hvr-sweep-to-right"> SUBMIT </button> | |
<div class="form-group"> | |
{% include "templates::pagetwigs/messages" %} | |
</div> | |
{{form.close|raw}} | |
Messages | |
------------------------- | |
<section id="messages"> | |
<!-- Success Messages --> | |
{% if message_exists('success') %} | |
<div class="alert alert-success alert-dismissible"> | |
<button type="button" class="close" data-dismiss="alert"> | |
<span>×</span><span class="sr-only">Close</span> | |
</button> | |
{% for message in message_pull('success') %} | |
{{ trans(message)|markdown }} | |
{% endfor %} | |
</div> | |
{% endif %} | |
<!-- Informational Messages --> | |
{% if message_exists('info') %} | |
<div class="alert alert-info alert-dismissible"> | |
<button type="button" class="close" data-dismiss="alert"> | |
<span>×</span><span class="sr-only">Close</span> | |
</button> | |
{% for message in message_pull('info') %} | |
{{ trans(message)|markdown }} | |
{% endfor %} | |
</div> | |
{% endif %} | |
<!-- Warning Messages --> | |
{% if message_exists('warning') %} | |
<div class="alert alert-warning alert-dismissible"> | |
<button type="button" class="close" data-dismiss="alert"> | |
<span>×</span><span class="sr-only">Close</span> | |
</button> | |
{% for message in message_pull('warning') %} | |
{{ trans(message)|markdown }} | |
{% endfor %} | |
</div> | |
{% endif %} | |
<!-- Error Messages --> | |
{% if message_exists('error') %} | |
<div class="alert alert-danger alert-dismissible"> | |
<button type="button" class="close" data-dismiss="alert"> | |
<span>×</span><span class="sr-only">Close</span> | |
</button> | |
{% for message in message_pull('error') %} | |
{{ trans(message)|markdown }} | |
{% endfor %} | |
</div> | |
{% endif %} | |
</section> | |
menu edit | |
{% set menu = structure() | |
.linkAttributesDropdown({'data-toggle': 'dropdown'}) | |
.listClass('navbar-nav') | |
.itemClass('nav-item') | |
.activeClass('active') | |
.link_class('nav-link') | |
.selected_class('active') | |
.childListClass('dropdown-menu') |split('</ul>')[0] %} | |
{% set menu_add = '<li> new li </li> </ul>' %} | |
{{ (menu ~ menu_add) | raw }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment