@@ -131,7 +131,15 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
...
@@ -131,7 +131,15 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
% if is_unfulfilled_entitlement:
% if is_unfulfilled_entitlement:
<spanclass="info-date-block"aria-live="polite">
<spanclass="info-date-block"aria-live="polite">
<spanclass="icon fa fa-warning"aria-hidden="true"></span>
<spanclass="icon fa fa-warning"aria-hidden="true"></span>
${_('You must select a session to access the course.')}
% if entitlement_expired_at:
${_('You can no longer select a session, your final day to select a session was {entitlement_expired_at}.').format(entitlement_expired_at=entitlement_expired_at)}
% else:
% if entitlement_expiration_date:
${_('You must select a session by {expiration_date} to access the course.').format(expiration_date=entitlement_expiration_date)}
% else:
${_('You must select a session to access the course.')}
% endif
% endif
</span>
</span>
% else:
% else:
% if isinstance(course_date, basestring):
% if isinstance(course_date, basestring):
...
@@ -141,9 +149,19 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
...
@@ -141,9 +149,19 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
% endif
% endif
% endif
% endif
% if entitlement:
% if entitlement:
<buttonclass="change-session btn-link ${'hidden' if is_unfulfilled_entitlement else ''}"aria-controls="change-session-${str(entitlement.uuid)}">${_('Change Session')}</button>
% if not entitlement_expired_at:
<buttonclass="change-session btn-link ${'hidden' if is_unfulfilled_entitlement else ''}"aria-controls="change-session-${str(entitlement.uuid)}">${_('Change Session')}</button>
% endif
% endif
% endif
</span>
</span>
% if entitlement and entitlement_expiration_date:
% if not is_unfulfilled_entitlement:
<divclass="info-expires-at">
<spanclass="msg-icon fa fa-info"aria-hidden="true"></span>
${_('You can change sessions until {entitlement_expiration_date}.').format(entitlement_expiration_date=entitlement_expiration_date)}
</div>
% endif
% endif
</div>
</div>
<divclass="wrapper-course-actions">
<divclass="wrapper-course-actions">
<divclass="course-actions">
<divclass="course-actions">
...
@@ -278,8 +296,9 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
...
@@ -278,8 +296,9 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
<footerclass="wrapper-messages-primary">
<footerclass="wrapper-messages-primary">
<divclass="messages-list">
<divclass="messages-list">
% if entitlement:
% if entitlement and not entitlement_expired_at:
<divclass="course-entitlement-selection-container ${'' if is_unfulfilled_entitlement else 'hidden'}"></div>
<divclass="course-entitlement-selection-container ${'' if is_unfulfilled_entitlement else 'hidden'}"></div>