Protect crashing from malformed data; working on locale-based issues; fast flush; UI focus

svn: r13647
This commit is contained in:
Doug Blank
2009-11-21 23:18:35 +00:00
parent 281fa65cd7
commit 4189b78df3
7 changed files with 155 additions and 34 deletions

View File

@@ -22,7 +22,7 @@
<script type="text/javascript" src="/styles/javascript/js/jquery-ui-1.7.2.custom.min.js"></script>
{% endblock %}
</head>
<body id= "NarrativeWeb">
<body id= "NarrativeWeb" onload="document.getElementById('get_focus').focus();">
<div id="header">
<h1 id="SiteTitle">{% block heading %}Gramps-Connect{% endblock %}</h1>
</div>

View File

@@ -1,4 +1,5 @@
{% extends "gramps-base.html" %}
{% load my_tags %}
{% block title %}Gramps-Connect{% endblock %}
{% block heading %}Gramps-Connect{% endblock %}
@@ -26,7 +27,7 @@ Database information:</p>
{% for view in views %}
<tr class="{% cycle odd,even %}">
<td align="left"><a href="/{{view.1}}">{{view.0}}</a></td>
<td align="right"><a href="/{{view.1}}">{{view.2.objects.count}}</td>
<td align="right"><a href="/{{view.1}}">{{view.2.objects.count|format_number}}</td>
</tr>
{% endfor %}
</table>

View File

@@ -7,9 +7,9 @@
{% block content %}
<p id="description">
<form>
<form name="SearchForm">
<input type="submit" value="Search:"></submit>
<input name="search" type="input" size="50" value="{{search}}"></input>
<input name="search" id="get_focus" type="input" size="50" value="{{search}}"></input>
</form>
</p>