make URL field longer; remove view similar

This commit is contained in:
Sanj 2011-08-31 15:26:36 +05:30
parent 7eb4b7bbb4
commit cafa78538c
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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);