Updated tag modules

This commit is contained in:
Oleg Lavrovsky 2017-04-08 15:47:03 +02:00
parent 454be3bff5
commit 8e5ef47d4c
6 changed files with 35 additions and 21 deletions

View file

@ -1,2 +1,3 @@
from .forms import *
from .models import *
from .snippets import *

View file

@ -1,5 +1,3 @@
<div class="col-md-4" id="contact">
<address>
<p>{{ contact.trans_title }}<br>
{{ contact.address }}
@ -8,21 +6,3 @@
<a href="{{ contact.email_link }}">{{ contact.email }}</a><br>
<a href="{{ contact.www }}">{{ contact.www_domain }}</a></p>
</address>
</div>
<div class="col-md-4" id="contactform">
<form action="https://formspree.io/{{ contact.email }}" method="POST">
<div class="form-group">
<input name="name" id="name" type="text" placeholder="Name / Nom" class="form-control">
</div>
<div class="form-group">
<input name="_replyto" id="email" type="email" placeholder="E-Mail" class="form-control">
</div>
<div class="form-group">
<textarea name="message" id="message" rows="3" placeholder="" class="form-control"></textarea>
</div>
<button class="btn btn-priamry" type="submit">Senden / Envoi</button>
</form>
</div>

View file

@ -12,3 +12,10 @@ def contact_info():
return {
'contact': Contact.objects.last(),
}
# Contact form (footer)
@register.inclusion_tag('tags/contact_form.html')
def contact_form():
return {
'contact': Contact.objects.last(),
}

View file

@ -3,3 +3,4 @@
@import "banner";
@import "footer";
@import "news";
@import "forms";

View file

@ -8478,6 +8478,7 @@ footer#footer a {
#news-details {
background: white;
padding-top: 0;
}
#news-details .category {
margin-top: 2em;
@ -8508,6 +8509,25 @@ footer#footer a {
#news-details .backlink {
margin-top: 3em;
}
#news-details .img-responsive {
width: 100%;
}
#news-details .links {
display: inline-block;
border-bottom: 1px solid #999;
padding: 1em;
margin: 0em;
list-style-type: none;
}
#news-details .links li:first-child {
display: none;
}
#contact-page form label {
width: 15em;
border-bottom: 1px dashed #ccc;
line-height: 155%;
}
body {
margin-top: 104px;

View file

@ -9,7 +9,12 @@
<!-- Bottom Menu -->
{% footer_menu parent=site_root calling_page=self %}
</div>
{% contact_info %}
<div class="col-md-4" id="contact-info">
{% contact_info %}
</div>
<div class="col-md-4" id="contact-form">
{% contact_form %}
</div>
</div><!-- /row -->
</div><!-- /container -->
</footer>