-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#305 - Add the accept_proposals_at on Event Form #311
base: master
Are you sure you want to change the base?
#305 - Add the accept_proposals_at on Event Form #311
Conversation
'accept_proposals_at': CustomDateTimeWidget(attrs={ | ||
'id': 'id_accept_proposals', | ||
'class': 'inline-input', | ||
'placeholder': 'Date Accept Proposals' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be translated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i write this chunk of code, because when the template generates the html page, it puts inline-input as a class and Date Accept Proposals as placeholder to input tag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What i mean was that you need to use the ugettext
function. _('Date Accept Proposals')
, it would be something like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, I don't see the ugettext function
@@ -30,6 +30,11 @@ class Meta: | |||
'class': 'inline-input', | |||
'placeholder': 'Due Date' | |||
}), | |||
'accept_proposals_at': CustomDateTimeWidget(attrs={ | |||
'id': 'id_accept_proposals', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be id_accept_proposals_at
for the issue N° 305.
I added to widgets dictionary accept_proposals_at key and a new CustomDateTimeWidget as value in forms.py file.
I added a date in event_data dictionary in test_create_event function in EventTest class.