109 lines
3.3 KiB
HTML
109 lines
3.3 KiB
HTML
{set layout="one_column_layout"}
|
|
<div id="user_newsletter" class="box roundies">
|
|
|
|
<div class="title">
|
|
<h2>{__ text="Newsletter"}</h2>
|
|
<p>{__ text="Podaj swój adres."}</p>
|
|
</div>
|
|
|
|
<div class="st_content" style="padding: 10px 70px ">
|
|
{$form_start}
|
|
|
|
<div id="newsletter_user_form" class="box_form roundies">
|
|
<h3>{__ text="Dane subskrypcji"}</h3>
|
|
<div style="padding:25px;">
|
|
<fieldset>
|
|
|
|
{if $update == 1}
|
|
<p style="color:#fff;text-align:center;background-color:#458B00;"><b>{__ text="Dane zostały zaktualizowane."}</b></p>
|
|
{/if}
|
|
|
|
<div id="email_field" class="st_row">
|
|
{$error_email}
|
|
<div class="st_field">
|
|
{$label_email}
|
|
{$input_email}
|
|
</div>
|
|
</div>
|
|
|
|
<div id="privacy_field" class="st_row">
|
|
<div class="st_field vertical-align-middle {if $error_privacy==1} red {/if}">
|
|
{$checkbox_privacy}
|
|
{$link_to_privacy}
|
|
</div>
|
|
</div>
|
|
|
|
<div id="captcha_form" style="display:none">
|
|
|
|
{if isset($captcha_on)}
|
|
|
|
<div class="st_row">
|
|
{$error_captcha}
|
|
<div style="margin-bottom: 2px;">
|
|
{$get_captcha}
|
|
</div>
|
|
<div class="st_field">
|
|
{$label_captcha}
|
|
{$input_captcha}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
{if $newsletterGroup}
|
|
{foreach key=row item=news_group from=$results}
|
|
<div class="group_content" style="border-bottom:1px solid #ccc; margin-bottom: 10px;">
|
|
|
|
<div class="st_row vertical-align-middle gray_text">
|
|
{$news_group.input}<span><b>{$news_group.name}</b></span>
|
|
</div>
|
|
{$news_group.description}
|
|
|
|
</div>
|
|
{/foreach}
|
|
{/if}
|
|
|
|
<div class="buttons right">
|
|
<button type="submit" class="regular roundies" >
|
|
{__ text="Zapisz mnie na newsletter"}
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{$hidden_new_user}
|
|
|
|
</fieldset>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
{literal}
|
|
<script type="text/javascript">
|
|
jQuery(function ($)
|
|
{
|
|
$(document).ready(function()
|
|
{
|
|
$("label").inFieldLabels();
|
|
|
|
$('#st_form-user-privacy').click(function(){
|
|
$("#captcha_form").toggle();
|
|
});
|
|
|
|
if($('#st_form-user-privacy').attr('checked'))
|
|
{
|
|
$("#captcha_form").show()
|
|
}else{
|
|
$("#captcha_form").hide();
|
|
}
|
|
});
|
|
|
|
|
|
});
|
|
</script>
|
|
{/literal} |