Marek Piasecki
2 years ago
4 changed files with 79 additions and 16 deletions
@ -0,0 +1,39 @@ |
|||
import h from '../ui/slot-size-input.imba' |
|||
|
|||
tag view-booking-confirmation |
|||
|
|||
def render |
|||
let time_from = Slot_h.date! |
|||
time_from.setHours *R.params.from.split('!') |
|||
let time_to = Slot_h.move_date time_from, Slot_h.duration! |
|||
|
|||
<self> |
|||
<time-card date=time_from desc="From:"> |
|||
" - - - " |
|||
<time-card$card date=time_to desc="To:"> |
|||
<br><br> |
|||
<h1[ta:center]> duration |
|||
<action-button[w:230px fs:larger] @click=R.toggle('confirm')> R.params.confirm ? "Cancel" : "Confirm" |
|||
<p> $card.timezone |
|||
|
|||
tag time-card |
|||
prop date |
|||
|
|||
prop date_s |
|||
prop time |
|||
prop timezone |
|||
|
|||
get process_date |
|||
let s = date.toString! |
|||
date_s = s.substr 0, 15 |
|||
time = s.substr 16, 8 |
|||
timezone = s.substr(34) |
|||
|
|||
def render |
|||
process_date |
|||
|
|||
<self[ta:left]> |
|||
desc |
|||
<[d:rflex]> |
|||
<h1> time |
|||
<h4> date_s |
Loading…
Reference in new issue