Skip to content

Commit

Permalink
update handbrake file
Browse files Browse the repository at this point in the history
  • Loading branch information
lodewiges committed Dec 15, 2024
1 parent 6ac2040 commit 4e3722b
Showing 1 changed file with 47 additions and 45 deletions.
92 changes: 47 additions & 45 deletions app/components/tools/study-room-presence.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<BsButton @type='primary'>
<FaIcon @icon='book' />
<span class='d-none d-md-inline'>2de kamer</span>
<span class='status-dot label-{{overallStatus}}'></span>
<span class='status-dot label-{{this.overallStatus}}'></span>

<BsPopover
{{!-- @triggerEvents='focus' --}}
@placement='bottom'
@title='Aanwezig in de 2de Kamer'
@renderInPlace="{{true}}"
>
{{#each sortedPresences as |presence|}}
{{#each this.sortedPresences as |presence|}}
<div class='py-1'>
<div class='d-block'>
<LinkTo @route='users.user' @model={{presence.user.id}}>
Expand All @@ -28,12 +28,12 @@
{{else}}
<div>Er is niemand aanwezig</div>
{{/each}}

{{#if (can 'create study-room-presences')}}
<span class='d-flex'>
<button
class='btn btn-secondary mb-2 mt-3 update-presence-button'
{{action 'setPresenceModalState' 'open'}}
{{on 'click' (fn this.setPresenceModalState 'open') }}
type='button'
>
Aanwezigheid updaten
Expand All @@ -48,12 +48,12 @@
<EmberWormhole @to='ember-wormhole-destination'>
<BasicModal
@title='2de kamer beschikbaarheid opgeven'
@closeModal={{action 'setPresenceModalState' 'closed'}}
@onSubmit={{action 'save'}}
@closeModal={{fn this.setPresenceModalState 'closed'}}
@onSubmit={{this.save}}
@submitText='Beschikbaarheid opslaan'
@submitDisabled={{saveButtonDisabled}}
>
{{#if sortedPresences}}
{{#if this.sortedPresences}}
<table class='table edit-presence'>
<thead>
<tr>
Expand All @@ -64,7 +64,7 @@
</tr>
</thead>
<tbody>
{{#each sortedPresences as |presence|}}
{{#each this.sortedPresences as |presence|}}
<tr class="edit-presence-row">
<td>{{presence.user.fullNameWithNickname}}</td>
<td>
Expand All @@ -78,7 +78,7 @@
<button
class='btn btn-danger delete-presence-button float-end'
aria-hidden='true'
{{action 'deletePresence'}}
{{on 'click' this.deletePresence}}
type='button'
>
<FaIcon @icon='trash' @size="xs" />
Expand All @@ -93,42 +93,44 @@
<div class='alert alert-info'>Er zijn geen alphanen aanwezig</div>
{{/if}}

{{#if currentUserPresence}}
<label for="new-user-presence-status">Status</label>
<Input::SelectInput
@class='form-control col-xs-12 presence-select'
@required={{true}}
@options={{statusOptions}}
@placeholder={{Status}}
@value={{currentUserPresence.status}}
@id="new-user-presence-status"
/>
<label for="new-user-presence-starttime" class="mt-2">Van</label>
<Input::TimeInput
@dateValue={{currentUserPresence.startTime}}
@class='col-xs-12 presence-time-input'
@inputClass='form-control'
@placeholder={{currentUserPresence.startTime}}
@required={{true}}
@id="new-user-presence-starttime"
/>
<label for="new-user-presence-endtime" class="mt-2">Tot</label>
<Input::TimeInput
@dateValue={{currentUserPresence.endTime}}
@class='col-xs-12 presence-time-input'
@inputClass='form-control'
@placeholder={{currentUserPresence.endTime}}
@required={{true}}
@id="new-user-presence-endtime"
/>
{{else}}
<button
class='btn btn-secondary'
{{action 'newPresence'}}
type='button'
>
Nieuw
</button>
{{#if (can 'create board-room-presences')}}
{{#if this.currentUserPresence}}
<label for="new-user-presence-status">Status</label>
<Input::SelectInput
@class='form-control col-xs-12 presence-select'
@required={{true}}
@options={{statusOptions}}
@placeholder={{Status}}
@value={{this.currentUserPresence.status}}
@id="new-user-presence-status"
/>
<label for="new-user-presence-starttime" class="mt-2">Van</label>
<Input::TimeInput
@dateValue={{this.currentUserPresence.startTime}}
@class='col-xs-12 presence-time-input'
@inputClass='form-control'
@placeholder={{this.currentUserPresence.startTime}}
@required={{true}}
@id="new-user-presence-starttime"
/>
<label for="new-user-presence-endtime" class="mt-2">Tot</label>
<Input::TimeInput
@dateValue={{this.currentUserPresence.endTime}}
@class='col-xs-12 presence-time-input'
@inputClass='form-control'
@placeholder={{this.currentUserPresence.endTime}}
@required={{true}}
@id="new-user-presence-endtime"
/>
{{else}}
<button
class='btn btn-secondary'
{{on 'click' this.newPresence}}
type='button'
>
Nieuw
</button>
{{/if}}
{{/if}}
</BasicModal>
</EmberWormhole>
Expand Down

0 comments on commit 4e3722b

Please sign in to comment.