Skip to content

Commit

Permalink
Resolve notes and validation toggles on traveler views. Closes #339
Browse files Browse the repository at this point in the history
  • Loading branch information
iTerminate committed Dec 19, 2024
1 parent 67fb480 commit 3e13cac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
16 changes: 10 additions & 6 deletions views/traveler-viewer.jade
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,16 @@ block content
if (locals.traveler.devices && traveler.devices.length > 0)
h4 Tags: !{traveler.devices}
if (locals.traveler.status !== undefined && locals.traveler.status > 0)
.btn-group(data-toggle='buttons-radio')
button.btn.btn-info#show-validation Show validation
button.btn.btn-info#hide-validation.active Hide validation
.btn-group(data-toggle='buttons-radio')
button.btn.btn-info#show-notes Show notes
button.btn.btn-info#hide-notes.active Hide notes
.btn-group(data-bs-toggle='buttons-radio')
input.btn-check#show-validation(type='radio', name='validation-toggle')
label.btn.btn-outline-primary(for="show-validation") Show validation
input.btn-check#hide-validation(type='radio', name='validation-toggle' checked)
label.btn.btn-outline-primary(for="hide-validation") Hide validation
.btn-group(data-bs-toggle='buttons-radio')
input.btn-check#show-notes(type='radio', name='notes-toggle')
label.btn.btn-outline-primary(for="show-notes") Show notes
input.btn-check#hide-notes(type='radio', name='notes-toggle' checked)
label.btn.btn-outline-primary(for="hide-notes") Hide notes
.btn-group
button.btn.btn-info(data-toggle='collapse', data-target='#details') Details
#validation.well.hide
Expand Down
16 changes: 10 additions & 6 deletions views/traveler.jade
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ block content
if (locals.traveler.status !== undefined && locals.traveler.status > 0)
//- .btn-group
//- button.btn.btn-info#update-progress Update progress
.btn-group(data-toggle='buttons-radio')
button.btn.btn-info#show-validation Show
button.btn.btn-info#hide-validation.active Hide validation
.btn-group(data-toggle='buttons-radio')
button.btn.btn-info#show-notes Show
button.btn.btn-info#hide-notes.active Hide notes
.btn-group(data-bs-toggle='buttons-radio')
input.btn-check#show-validation(type='radio', name='validation-toggle')
label.btn.btn-outline-primary(for="show-validation") Show validation
input.btn-check#hide-validation(type='radio', name='validation-toggle' checked)
label.btn.btn-outline-primary(for="hide-validation") Hide validation
.btn-group(data-bs-toggle='buttons-radio')
input.btn-check#show-notes(type='radio', name='notes-toggle')
label.btn.btn-outline-primary(for="show-notes") Show notes
input.btn-check#hide-notes(type='radio', name='notes-toggle' checked)
label.btn.btn-outline-primary(for="hide-notes") Hide notes
.btn-group
button.btn.btn-info(data-toggle='collapse', data-target='#details') Details
.btn-group
Expand Down

0 comments on commit 3e13cac

Please sign in to comment.