FIX: Update directory header to match core

This updates the parameters passed to the period-chooser, and makes sure the date displays as expected
This commit is contained in:
David Taylor 2020-06-24 09:27:45 +01:00
parent 53120661ad
commit b2bb6a3790
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
1 changed files with 22 additions and 14 deletions

View File

@ -1,22 +1,30 @@
{{#d-section pageClass="users"}} {{#d-section pageClass="users"}}
{{#load-more selector=".user-card-directory .user-card-container" action=(action "loadMore")}} {{#load-more selector=".user-card-directory .user-card-container" action=(action "loadMore")}}
<div class="container"> <div class="container">
<div class='directory'> <div class="users-directory directory">
{{plugin-outlet name="users-top" connectorTagName='div' args=(hash model=model)}} {{plugin-outlet name="users-top" connectorTagName='div' args=(hash model=model)}}
<div class="filters"> <div class="directory-controls">
{{period-chooser period=period onChange=(action (mut period))}} <div class="period-controls">
</div> {{period-chooser period=period onChange=(action (mut period)) fullDay=false}}
<div class="filters"> {{#if lastUpdatedAt}}
<span class="group-filter {{if group "active"}}"> <div class="directory-last-updated">
{{combo-box content=availableGroups {{i18n "directory.last_updated"}}
value=group {{lastUpdatedAt}}
options=(hash clearable=true none=(theme-prefix 'filter_by_group')) </div>
valueAttribute="value"}} {{/if}}
</span> </div>
<span class="username-filter"> <div class="filters">
{{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}} <span class="group-filter {{if group "active"}}">
</span> {{combo-box content=availableGroups
value=group
options=(hash clearable=true none=(theme-prefix 'filter_by_group'))
valueAttribute="value"}}
</span>
<span class="username-filter">
{{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}}
</span>
</div>
</div> </div>
{{#conditional-loading-spinner condition=model.loading}} {{#conditional-loading-spinner condition=model.loading}}