VRFS-4111 lesson coming up soon has time data
This commit is contained in:
parent
8ad0e3ca14
commit
f8c88dc225
|
|
@ -682,6 +682,7 @@ UserStore = context.UserStore
|
|||
header = 'this lesson has been suspended'
|
||||
content = @renderStudentSuspended()
|
||||
|
||||
|
||||
`<div className="content-body-scroller">
|
||||
<Nav/>
|
||||
|
||||
|
|
@ -779,6 +780,20 @@ UserStore = context.UserStore
|
|||
{message}
|
||||
</div>`
|
||||
else
|
||||
if @studentMadeDefaultSlot()
|
||||
message = this.slotMessage(this.state.booking.default_slot, 'accept')
|
||||
|
||||
if @isRecurring()
|
||||
detail = `<p className="lesson-time">Your {this.lessonDesc()} will take place each {this.slotTime(this.state.booking.default_slot)}</p>`
|
||||
else
|
||||
detail = `<p className="lesson-time">Your {this.lessonDesc()} will take place this {this.slotTime(this.state.booking.default_slot)}</p>`
|
||||
|
||||
summary = `<div className="row">
|
||||
{this.userHeader(this.teacher())}
|
||||
<p>Has accepted your lesson request.</p>
|
||||
{detail}
|
||||
{message}
|
||||
</div>`
|
||||
decision = `<LessonBookingDecision {...this.decisionProps([])} />`
|
||||
|
||||
`<div className="contents">
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ describe "Lesson Booking Status page", :js => true, :type => :feature, :capybara
|
|||
|
||||
find('h2', text: 'this lesson is coming up soon')
|
||||
|
||||
find('p.lesson-time', "will take place each")
|
||||
screenshot
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue