create newsletter template
This commit is contained in:
@@ -297,13 +297,17 @@ URL: http://www.thelia.net
|
||||
<div class="block-heading"><h3 class="block-title">{intl l="Newsletter"}</h3></div>
|
||||
<div class="block-content">
|
||||
<p id="newletter-describe">{intl l="Sign up to receive our latest news."}</p>
|
||||
{form name="thelia.newsletter"}
|
||||
<form id="form-newsletter" action="{url path="/newsletter"}" method="post" role="form">
|
||||
{form_field form=$form field="email"}
|
||||
<div class="form-group">
|
||||
<label for="email">{intl l="Email address"}</label>
|
||||
<input type="email" name="email" id="email" class="form-control" placeholder="{intl l="Your email address"}" aria-describedby="newletter-describe" aria-required="true" required autocomplete="off">
|
||||
<label for="{$label_attr.for}">{intl l="Email address"}</label>
|
||||
<input type="email" name="{$name}" id="{$label_attr.for}" class="form-control" placeholder="{intl l="Your email address"}" aria-describedby="newletter-describe" {if $required} aria-required="true" required{/if} autocomplete="off">
|
||||
</div>
|
||||
{/form_field}
|
||||
<button type="submit" class="btn btn-subscribe">{intl l="Subscribe"}</button>
|
||||
</form>
|
||||
{/form}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
15
templates/default/newsletter-success.html
Normal file
15
templates/default/newsletter-success.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{extends file="layout.tpl"}
|
||||
|
||||
{* Breadcrumb *}
|
||||
{block name='no-return-functions' append}
|
||||
{$breadcrumbs = [['title' => {intl l="Thanks !"}, 'url'=>{url path="/contact/success"}]]}
|
||||
{/block}
|
||||
|
||||
{block name="main-content"}
|
||||
<div class="main">
|
||||
<article class="col-main" role="main" aria-labelledby="main-label">
|
||||
<h1 id="main-label" class="page-header">{intl l="Thanks !"}</h1>
|
||||
<p>{intl l="Thanks for your subscrition to the newsletter"}</p>
|
||||
</article>
|
||||
</div>
|
||||
{/block}
|
||||
46
templates/default/newsletter.html
Normal file
46
templates/default/newsletter.html
Normal file
@@ -0,0 +1,46 @@
|
||||
{extends file="layout.tpl"}
|
||||
|
||||
{* Breadcrumb *}
|
||||
{block name='no-return-functions' append}
|
||||
{$breadcrumbs = [['title' => {intl l="Newsletter"}, 'url'=>{url path="/newsletter"}]]}
|
||||
{/block}
|
||||
|
||||
{block name="main-content"}
|
||||
<div class="main">
|
||||
<article class="col-main" role="main" aria-labelledby="main-label">
|
||||
<h1 id="main-label" class="page-header">{intl l="Newsletter"}</h1>
|
||||
|
||||
{form name="thelia.newsletter"}
|
||||
<form id="form-contact" class="form-horizontal" action="{url path="/newsletter"}" method="post" role="form">
|
||||
{form_hidden_fields form=$form}
|
||||
<fieldset id="contact-info" class="panel panel">
|
||||
<div class="panel-heading">
|
||||
1. {intl l="Personal Informations"}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{form_field form=$form field="email"}
|
||||
<div class="form-group group-firstname {if $error}has-error{elseif $value != "" && !$error}has-success{/if}">
|
||||
<label class="control-label" for="{$label_attr.for}">{$label}{if $required} <span class="required">*</span>{/if}</label>
|
||||
<div class="control-input">
|
||||
<input type="email" name="{$name}" id="{$label_attr.for}" class="form-control" placeholder="johndoe@domain.com" value="{$value}" {if $required} aria-required="true" required{/if}{if !isset($error_focus) && $error} autofocus{/if}>
|
||||
{if $error }
|
||||
<span class="help-block"><i class="icon-remove"></i> {$message}</span>
|
||||
{assign var="error_focus" value="true"}
|
||||
{elseif $value != "" && !$error}
|
||||
<span class="help-block"><i class="icon-ok"></i></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
{/form_field}
|
||||
<div class="form-group group-btn">
|
||||
<div class="control-btn">
|
||||
<button type="submit" class="btn btn-register">{intl l="Subscribe"}</button>
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
{/form}
|
||||
</article>
|
||||
</div>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user