-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create standalone contact page (#1522)
- Loading branch information
Showing
13 changed files
with
108 additions
and
84 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
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
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,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Shopsys\MigrationBundle\Component\Doctrine\Migrations\AbstractMigration; | ||
|
||
class Version20191121171000 extends AbstractMigration | ||
{ | ||
/** | ||
* @param \Doctrine\DBAL\Schema\Schema $schema | ||
*/ | ||
public function up(Schema $schema) | ||
{ | ||
$this->sql('DELETE FROM friendly_urls WHERE slug=\'contact\''); | ||
$this->sql('DELETE FROM articles WHERE name=\'Contact\' AND placement=\'footer\''); | ||
} | ||
|
||
/** | ||
* @param \Doctrine\DBAL\Schema\Schema $schema | ||
*/ | ||
public function down(Schema $schema) | ||
{ | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,46 @@ | ||
{% extends 'Front/Layout/layoutWithPanel.html.twig' %} | ||
|
||
{% block title %} | ||
{{ 'Contact'|trans }} | ||
{% endblock %} | ||
|
||
{% block main_content %} | ||
<div class="h2">{{ 'Contact us'|trans }}</div> | ||
|
||
<div class="in-user-text margin-bottom-20"> | ||
{{ mainText|raw }} | ||
</div> | ||
|
||
{{ form_start(form) }} | ||
|
||
{{ form_errors(form) }} | ||
|
||
{{ form_row(form.name, { label: 'Full name'|trans }) }} | ||
{{ form_row(form.email, { label: 'Email'|trans }) }} | ||
{{ form_row(form.message, { label: 'Message'|trans }) }} | ||
<dl class="form-line"> | ||
<dt></dt> | ||
<dd> | ||
<div class="form-choice"> | ||
{{ form_widget(form.privacyPolicy, { attr: { class: "css-checkbox" }} )}} | ||
<label for="{{ form.privacyPolicy.vars.id }}" class="css-checkbox__image"> | ||
{% if privacyPolicyArticle is not null %} | ||
{% set articleUrl = url('front_article_detail', {'id': privacyPolicyArticle.id}) %} | ||
{{ 'I agree with <a href="%url%" target="_blank">privacy policy</a>.'|trans({'%url%': articleUrl})|raw }} | ||
{% else %} | ||
{{ 'I agree with privacy policy.'|trans }} | ||
{% endif %} | ||
</label> | ||
<span class="js-validation-errors-list js-validation-error-list-{{ form.privacyPolicy.vars.id }} form-error form-error--choice display-none"> | ||
<span class="form-error__icon"> | ||
<i class="svg svg-warning"></i> | ||
</span> | ||
<ul class="form-error__list"></ul> | ||
</span> | ||
</div> | ||
</dd> | ||
</dl> | ||
{{ form_widget(form.send, { label: 'Send'|trans }) }} | ||
|
||
{{ form_end(form) }} | ||
{% endblock %} |
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
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
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