Add the page number on top of the page widget in the multiple page carousel widget
This commit is contained in:
@@ -103,7 +103,9 @@ class DocumentPagesCarouselWidget(forms.widgets.Widget):
|
|||||||
output.append(u'<div style="white-space:nowrap; overflow: auto;">')
|
output.append(u'<div style="white-space:nowrap; overflow: auto;">')
|
||||||
|
|
||||||
for page in value.pages.all():
|
for page in value.pages.all():
|
||||||
|
|
||||||
output.append(u'<div style="display: inline-block; margin: 5px 10px 10px 10px;">')
|
output.append(u'<div style="display: inline-block; margin: 5px 10px 10px 10px;">')
|
||||||
|
output.append(u'<div class="tc">%(page_string)s %(page)s</div>' % {'page_string': ugettext(u'Page'), 'page': page.page_number})
|
||||||
output.append(
|
output.append(
|
||||||
document_html_widget(
|
document_html_widget(
|
||||||
page.document,
|
page.document,
|
||||||
@@ -178,7 +180,6 @@ class DocumentForm(forms.ModelForm):
|
|||||||
|
|
||||||
self.fields['version_update'] = forms.ChoiceField(
|
self.fields['version_update'] = forms.ChoiceField(
|
||||||
label=_(u'Version update'),
|
label=_(u'Version update'),
|
||||||
#widget=forms.widgets.RadioSelect(),
|
|
||||||
choices=DocumentVersion.get_version_update_choices(document.latest_version)
|
choices=DocumentVersion.get_version_update_choices(document.latest_version)
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -186,7 +187,6 @@ class DocumentForm(forms.ModelForm):
|
|||||||
label=_(u'Release level'),
|
label=_(u'Release level'),
|
||||||
choices=RELEASE_LEVEL_CHOICES,
|
choices=RELEASE_LEVEL_CHOICES,
|
||||||
initial=RELEASE_LEVEL_FINAL,
|
initial=RELEASE_LEVEL_FINAL,
|
||||||
#required=False,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self.fields['serial'] = forms.IntegerField(
|
self.fields['serial'] = forms.IntegerField(
|
||||||
@@ -195,7 +195,6 @@ class DocumentForm(forms.ModelForm):
|
|||||||
widget=forms.widgets.TextInput(
|
widget=forms.widgets.TextInput(
|
||||||
attrs = {'style': 'width: auto;'}
|
attrs = {'style': 'width: auto;'}
|
||||||
),
|
),
|
||||||
#required=False
|
|
||||||
)
|
)
|
||||||
|
|
||||||
new_filename = forms.CharField(
|
new_filename = forms.CharField(
|
||||||
|
|||||||
Reference in New Issue
Block a user