Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Commit

Permalink
Add labels to CustomAdminSplitDateTime widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykhailo Kolesnyk committed Apr 16, 2016
1 parent f18532f commit c757f61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aldryn_events/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
class CustomAdminSplitDateTime(AdminSplitDateTime):
def format_output(self, rendered_widgets):
return format_html(
'<div class="field-box">{0} {1}</div>'
'<div class="field-box">{2} {3}</div>',
ugettext('Date:'), rendered_widgets[0],
ugettext('Time:'), rendered_widgets[1],
'<div class="field-box"><label>{date}</label> {date_widget}</div>'
'<div class="field-box"><label>{time}</label> {time_widget}</div>',
date=ugettext('Date:'), date_widget=rendered_widgets[0],
time=ugettext('Time:'), time_widget=rendered_widgets[1],
)


Expand Down

0 comments on commit c757f61

Please sign in to comment.