Main html table set to 90%; order of choices is based on numeric in Django

svn: r19552
This commit is contained in:
Doug Blank 2012-05-17 11:56:59 +00:00
parent 96f9d72540
commit 00213b2203
14 changed files with 15 additions and 14 deletions

View File

@ -17,7 +17,7 @@
<h3>{{source.title|escape}}</h3>
<div id="summaryarea">
<table class="infolist"> {% comment %} 2 cols {% endcomment %}
<table class="infolist" style="width:90%;"> {% comment %} 2 cols {% endcomment %}
<tbody>
<tr>
<td class="ColumnAttribute">Title:</td>

View File

@ -15,7 +15,7 @@
{% include "detail_breadcrumb.html" %}
<div id="summaryarea">
<table class="infolist">
<table class="infolist" style="width:90%;">
<trbody>
<tr>
<td class="ColumnAttribute">Event type:</td>

View File

@ -17,7 +17,7 @@
<h3>{{family.father|make_name:user}} and {{family.mother|make_name:user}}</h3>
<div id="summaryarea">
<table class="infolist"> {% comment %} 4 cols {% endcomment %}
<table class="infolist" style="width:90%;"> {% comment %} 4 cols {% endcomment %}
<tbody>
<tr>
<th colspan="2">Father</th>

View File

@ -19,7 +19,7 @@
<h3>{{person|make_name:user}} [{{person.gramps_id}}]</h3>
<div id="summaryarea">
<table class="infolist"> {% comment %} 4 cols {% endcomment %}
<table class="infolist" style="width:90%;"> {% comment %} 4 cols {% endcomment %}
<tbody>
{% if user.is_authenticated %}

View File

@ -15,7 +15,7 @@
{% include "detail_breadcrumb.html" %}
<div id="summaryarea">
<table class="infolist">
<table class="infolist" style="width:90%;">
<tbody>
<tr>
<td class="ColumnAttribute">ID:</td>

View File

@ -15,7 +15,7 @@
{% include "detail_breadcrumb.html" %}
<div id="summaryarea">
<table class="infolist"> {% comment %} 5 cols {% endcomment %}
<table class="infolist" style="width:90%;"> {% comment %} 5 cols {% endcomment %}
<tbody>
{% if user.is_authenticated %}
{% ifequal action "edit" %}

View File

@ -16,7 +16,7 @@
<div id="summaryarea">
<table class="infolist">
<table class="infolist" style="width:90%;">
<tr>
<td class="ColumnAttribute">Place Name:</td>
<td class="Columnvalue" id="data" colpan="3"> {{place.title|escape}}</td>

View File

@ -10,7 +10,7 @@
<div id="summaryarea">
<form name="RunForm" action="/report/{{report.handle}}/run">
<table class="infolist">
<table class="infolist" style="width:90%;">
<tr>
<td class="ColumnAttribute">Name:</td>
<td class="ColumnValue" id="data" colspan="5">{{report.name}} </td>

View File

@ -16,7 +16,7 @@
<div id="summaryarea">
<table class="infolist">
<table class="infolist" style="width:90%;">
<tr>
<td class="ColumnAttribute">Name:</td>
<td class="ColumnValue" id="data" colspan="5">{{repository.name}} </td>

View File

@ -17,7 +17,7 @@
<h3>{{source.title|escape}}</h3>
<div id="summaryarea">
<table class="infolist"> {% comment %} 2 cols {% endcomment %}
<table class="infolist" style="width:90%;"> {% comment %} 2 cols {% endcomment %}
<tbody>
<tr>
<td class="ColumnAttribute">Title:</td>

View File

@ -19,7 +19,7 @@
<h3>{{person|make_name:user}} [{{person.gramps_id}}]</h3>
<div id="summaryarea">
<table class="infolist"> {% comment %} 4 cols {% endcomment %}
<table class="infolist" style="width:90%;"> {% comment %} 4 cols {% endcomment %}
<tbody>
{% if user.is_authenticated %}

View File

@ -16,7 +16,7 @@
<div id="summaryarea">
<table class="infolist">
<table class="infolist" style="width:90%;">
<tr>
<td class="ColumnAttribute">Name:</td>
<td class="ColumnValue" id="data" colspan="5">{{tag.name}} </td>

View File

@ -69,7 +69,8 @@ def get_default_type(the_type):
return the_type.objects.get(val=val, name=name)
def get_datamap(grampsclass):
return [(x[0],x[2]) for x in grampsclass._DATAMAP]
return sorted([(x[0],x[2]) for x in grampsclass._DATAMAP],
key=lambda item: item[1])
#---------------------------------------------------------------------------
#

View File

@ -15,4 +15,4 @@ db = DbDjango()
def Print(m):
print m
import_file(db, "/tmp/dblank-im_ged.ged", Print)
#import_file(db, "/tmp/dblank-im_ged.ged", Print)