- implement contact_form.forms.ContactForm - implement contact_form.views.ContactFormView and contact_form.views.ContactSuccessView - add new URL patterns 'contact_form' and 'contact_success' in contact_form.urls - add contact_form templates base.html, contact_form.html, contact_form.txt, contact_form_subject.txt and contact_success.html - add german translation for new strings - add contact_form to .coveragerc - add generated code documentation for contact_form app - add changelog entry
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			543 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			543 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "contact_form/base.html" %}
 | 
						|
{% load i18n crispy_forms_tags %}
 | 
						|
 | 
						|
{% block title %}{{ block.super }} - {% trans "Contact" %}{% endblock title %}
 | 
						|
{% block page_title %}{% trans "Contact" %}{% endblock page_title %}
 | 
						|
 | 
						|
{% block content %}
 | 
						|
{% crispy form %}
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block extra_js %}
 | 
						|
<script type="text/javascript">
 | 
						|
$(document).ready(function() {
 | 
						|
  if ($('input[type=text]').first().val() != '') {
 | 
						|
    $('textarea').first().focus();
 | 
						|
  } else {
 | 
						|
    $('input[type=text]').first().focus();
 | 
						|
  }
 | 
						|
});
 | 
						|
</script>
 | 
						|
{% endblock extra_js %}
 |