First draft of gramps-connect using django Forms
svn: r13831
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p id="description">Welcome to Gramps Connect, a new web-based collaboration tool.
|
||||
<p id="description">Welcome to Gramps-Connect, a new web-based collaboration tool.
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
You are now logged in
|
||||
|
||||
@@ -48,11 +48,13 @@
|
||||
</ul>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tabs-sources">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-notes">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-gallery">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tabs-attributes">
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-attributes">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tabs-references">
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-references">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -11,33 +11,39 @@
|
||||
</script>
|
||||
|
||||
<div class="content" id="IndividualDetail">
|
||||
<h3>{{name|make_name:user}}</h3>
|
||||
<h3>NAME{# form|make_name:user #}</h3>
|
||||
<div id="summaryarea">
|
||||
<table class="infolist"> {% comment %} 4 cols {% endcomment %}
|
||||
<tbody>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
{% ifequal action "edit" %}
|
||||
{% for error in form.errors %}
|
||||
{{error}}<br>
|
||||
{% endfor %}
|
||||
<form method="post">
|
||||
{% endifequal %}
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Family:</td>
|
||||
<td class="ColumnValue" id="data">{{name.surname}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.surname|render:action}}</td>
|
||||
<td class="ColumnAttribute">Prefix:</td>
|
||||
<td class="ColumnValue" id="data">{{name.prefix}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.prefix|render:action}}</td>
|
||||
</tr>
|
||||
<td class="ColumnAttribute">Given:</td>
|
||||
<td class="ColumnValue" id="data">{{name.first_name}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.first_name|render:action}}</td>
|
||||
<td class="ColumnAttribute">Call Name:</td>
|
||||
<td class="ColumnValue" id="data">{{name.call}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.call|render:action}}</td>
|
||||
<tr>
|
||||
</tr>
|
||||
<td class="ColumnAttribute">Title:</td>
|
||||
<td class="ColumnValue" id="data">{{name.title}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.title|render:action}}</td>
|
||||
<td class="ColumnAttribute">Suffix:</td>
|
||||
<td class="ColumnValue" id="data">{{name.suffix}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.suffix|render:action}}</td>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Patronymic:</td>
|
||||
<td class="ColumnValue" id="data">{{name.patronymic}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.patronymic|render:action}}</td>
|
||||
<td class="ColumnAttribute">Type:</td>
|
||||
<td class="ColumnValue" id="data">{{name.name_type}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.name_type|render:action}}</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -47,7 +53,7 @@
|
||||
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Family:</td>
|
||||
<td class="ColumnValue" id="data">{{name.surname}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.surname}}</td>
|
||||
<td class="ColumnAttribute">Prefix:</td>
|
||||
<td class="ColumnValue" id="data">[Private]</td>
|
||||
<tr>
|
||||
@@ -65,7 +71,7 @@
|
||||
<td class="ColumnAttribute">Patronymic:</td>
|
||||
<td class="ColumnValue" id="data">[Private]</td>
|
||||
<td class="ColumnAttribute">Type:</td>
|
||||
<td class="ColumnValue" id="data">{{name.name_type}}</td>
|
||||
<td class="ColumnValue" id="data">{{form.name_type}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -91,6 +97,17 @@
|
||||
</div>
|
||||
|
||||
[<a href="/person/{{person.handle}}/">Back to Person Details</a>]
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
{% ifequal action "edit" %}
|
||||
<input type="hidden" name="action" value="save"/>
|
||||
<input type="submit" value="Submit"/>
|
||||
</form>
|
||||
{% else %}
|
||||
[<a href="/person/{{person.handle}}/name/{{order}}/edit">Edit Name</a>]
|
||||
[<a href="/person/{{person.handle}}/name/{{order}}/delete">Delete Name</a>]
|
||||
[<a href="/person/{{person.handle}}/name/{{order}}/add">Add Name</a>]
|
||||
{% endifequal %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user