make URL field longer; remove view similar
This commit is contained in:
parent
7eb4b7bbb4
commit
cafa78538c
|
@ -43,7 +43,7 @@ class FeatureTypeFilter(SimpleListFilter):
|
|||
'''
|
||||
|
||||
class authRecordForm(forms.ModelForm):
|
||||
uri = forms.CharField(label="URI", required=True, widget=forms.TextInput(attrs={'size': '40'}))
|
||||
uri = forms.CharField(label="URI", required=True, widget=forms.TextInput(attrs={'size': '50'}))
|
||||
|
||||
class Meta:
|
||||
model = AuthorityRecord
|
||||
|
@ -51,7 +51,7 @@ class authRecordForm(forms.ModelForm):
|
|||
class featuresForm(forms.ModelForm):
|
||||
url = forms.CharField(label='URI',
|
||||
required=True,
|
||||
widget=forms.TextInput(attrs={'size': '40'}))
|
||||
widget=forms.TextInput(attrs={'size': '50'}))
|
||||
authority_record = AutoCompleteSelectField('authority_record', required=False)
|
||||
time_frame = AutoCompleteSelectField('time_frame', required=False)
|
||||
feature_type = AutoCompleteSelectField('feature_type', required=False)
|
||||
|
|
|
@ -39,8 +39,8 @@ $(function() {
|
|||
function getRow(props) {
|
||||
var $tr = $('<tr />');
|
||||
var $one = $('<td />').appendTo($tr);
|
||||
var $a = $('<a />').attr("target", "_blank").attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name + " ").appendTo($one);
|
||||
var $a2 = $('<a />').addClass("viewSimilar").attr("target", "_blank").attr("href", "/search_related?id=" + props.id).text("view similar").appendTo($one);
|
||||
var $a = $('<a />').attr("target", "_blank").attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name).appendTo($one);
|
||||
// var $a2 = $('<a />').addClass("viewSimilar").attr("target", "_blank").attr("href", "/search_related?id=" + props.id).text("view similar").appendTo($one);
|
||||
$('<td />').text(props.feature_type).appendTo($tr);
|
||||
$('<td />').text(props.admin2).appendTo($tr);
|
||||
$('<td />').text(props.admin1).appendTo($tr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user