Working on name_origin_type
svn: r19541
This commit is contained in:
parent
b9eb3cefd3
commit
ba4f791bb7
@ -50,8 +50,8 @@
|
|||||||
<td class="ColumnAttribute" align="right">{{nameform.surname.label}}:</td>
|
<td class="ColumnAttribute" align="right">{{nameform.surname.label}}:</td>
|
||||||
<td class="ColumnValue" id="data">{% render nameform.prefix user action %}</td>
|
<td class="ColumnValue" id="data">{% render nameform.prefix user action %}</td>
|
||||||
<td class="ColumnValue" id="data" colspan="2">{% render nameform.surname user action %}</td>
|
<td class="ColumnValue" id="data" colspan="2">{% render nameform.surname user action %}</td>
|
||||||
<td class="ColumnAttribute" align="right">{{nameform.origin.label}}:</td>
|
<td class="ColumnAttribute" align="right">{{nameform.name_origin_type.label}}:</td>
|
||||||
<td class="ColumnValue" id="data" colspan="2">{% render nameform.origin user action %}</td>
|
<td class="ColumnValue" id="data" colspan="2">{% render nameform.name_origin_type user action %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="ColumnAttribute" align="right">{{personform.gender_type.label}}:</td>
|
<td class="ColumnAttribute" align="right">{{personform.gender_type.label}}:</td>
|
||||||
|
@ -94,8 +94,8 @@ class NameForm(forms.ModelForm):
|
|||||||
nick = forms.CharField(label="Nick",
|
nick = forms.CharField(label="Nick",
|
||||||
required=False,
|
required=False,
|
||||||
widget=TextInput(attrs={'size':'15'}))
|
widget=TextInput(attrs={'size':'15'}))
|
||||||
origin = forms.CharField(required=False,
|
|
||||||
widget=TextInput(attrs={'size':'15'}))
|
name_origin_type = forms.ChoiceField()
|
||||||
|
|
||||||
class NameFormFromPerson(NameForm):
|
class NameFormFromPerson(NameForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
@ -587,6 +587,7 @@ def get_person_forms(handle, protect=False, empty=False):
|
|||||||
"suffix": make_empty(empty, name.suffix, " suffix "),
|
"suffix": make_empty(empty, name.suffix, " suffix "),
|
||||||
"first_name": name.first_name,
|
"first_name": name.first_name,
|
||||||
"name_type": name.name_type,
|
"name_type": name.name_type,
|
||||||
|
"name_origin_type": primary_surname.name_origin_type,
|
||||||
"title": name.title,
|
"title": name.title,
|
||||||
"nick": name.nick,
|
"nick": name.nick,
|
||||||
"call": name.call,
|
"call": name.call,
|
||||||
|
@ -325,9 +325,9 @@ def source_table(obj, user, action, url=None, *args):
|
|||||||
if citation_ref.citation.source:
|
if citation_ref.citation.source:
|
||||||
source = citation_ref.citation.source
|
source = citation_ref.citation.source
|
||||||
table.row(source,
|
table.row(source,
|
||||||
source_ref.ref_object.title,
|
source.title,
|
||||||
source_ref.ref_object.author,
|
source.author,
|
||||||
source_ref.page,
|
citation_ref.citation.page,
|
||||||
)
|
)
|
||||||
retval += table.get_html()
|
retval += table.get_html()
|
||||||
if user.is_authenticated() and url and action == "view":
|
if user.is_authenticated() and url and action == "view":
|
||||||
|
Loading…
Reference in New Issue
Block a user