Skip to content

Commit

Permalink
[#29] Update contact page
Browse files Browse the repository at this point in the history
  • Loading branch information
dedenbangkit committed Feb 18, 2025
1 parent 33e0894 commit e090b6d
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{% extends "page.html" %}

{% block breadcrumb_content %}
<li class="active">{% link_for _('Contact'), 'home.index' %}</li>
{% endblock %}

{% block primary_content %}
<article class="module">
<div class="module-content">
<h1 class="page-heading">{{ _('Contact us') }}</h1>

{% block contact_form_content %}
{% include "contact/snippets/form.html" %}
{% endblock %}

</div>
</article>
{% endblock %}

{% block secondary_content %}
<div class="module module-narrow module-shallow">
<h2 class="module-heading">
<i class="fa fa-envelope inline-icon-left"></i>
{{ _('Contact') }}
</h2>
<div class="module-content">
<p>
Questions? Comments? We are always glad to hear from you!
</p>
</div>
</div>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@

<fieldset>
{% block contact_form_legend %}
<legend>
{% block contact_form_legend_content %}
{{ _('Questions? Comments? We are always glad to hear from you!') }}
{% endblock %}
</legend>
{% endblock %}
{% block contact_form_fields %}
{{ form.input('name', label=_('Contact Name'), id='field-name', value=data.name, error=errors.name, classes=['control-medium'], is_required=true) }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% extends "page.html" %}

{% block breadcrumb_content %}
<li class="active">{% link_for _('Contact'), 'home.index' %}</li>
{% endblock %}

{% block primary_content %}
<article class="module">
<div class="module-content">
<h1 class="page-heading">Thank you!</h1>
<p>Your comment has been sent and we will answer you as soon as possible.</p>
</div>
</article>
{% endblock %}

{% block secondary_content %}
<div class="module module-narrow module-shallow">
<h2 class="module-heading">
<i class="fa fa-envelope inline-icon-left"></i>
{{ _('Contact') }}
</h2>
<div class="module-content">
<p>
Questions? Comments? We are always glad to hear from you!
</p>
</div>
</div>
{% endblock %}

0 comments on commit e090b6d

Please # to comment.