PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/django/contrib/admin/templates/mako/admin/template_validator.html

https://code.google.com/p/mango-py/
HTML | 51 lines | 35 code | 16 blank | 0 comment | 0 complexity | a2744440304ff2a4500c05ff642b774d MD5 | raw file
 1<%inherit file="admin/base_site.html"/>
 2
 3${self.block_content()}<%def name="block_content()">
 4
 5<div id="content-main">
 6
 7<form action="" method="post">{% csrf_token %}
 8
 9
10% if form['errors']:
11
12<p class="errornote">Your template had ${form['errors']} error${form['errors']}:</p>
13
14% endif
15
16
17<fieldset class="module aligned">
18<div class="form-row
19% if form['errors']['site']:
20 error
21% endif
22 required">
23    
24% if form['errors']['site']:
25${form['errors']['site']}
26% endif
27
28    <h4><label for="id_site">${form['site']['label']}:</label> ${form['site']}</h4>
29</div>
30<div class="form-row
31% if form['errors']['template']:
32 error
33% endif
34 required">
35    
36% if form['errors']['template']:
37${form['errors']['template']}
38% endif
39
40    <h4><label for="id_template">${form['template']['label']}:</label> ${form['template']}</h4>
41</div>
42</fieldset>
43
44<div class="submit-row">
45    <input type="submit" value="Check for errors" class="default" />
46</div>
47
48</form>
49</div>
50
51</%def>