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:
parent
53120661ad
commit
b2bb6a3790
|
@ -1,11 +1,18 @@
|
||||||
{{#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">
|
||||||
|
{{period-chooser period=period onChange=(action (mut period)) fullDay=false}}
|
||||||
|
{{#if lastUpdatedAt}}
|
||||||
|
<div class="directory-last-updated">
|
||||||
|
{{i18n "directory.last_updated"}}
|
||||||
|
{{lastUpdatedAt}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="filters">
|
<div class="filters">
|
||||||
<span class="group-filter {{if group "active"}}">
|
<span class="group-filter {{if group "active"}}">
|
||||||
|
@ -18,6 +25,7 @@
|
||||||
{{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}}
|
{{text-field value=nameInput placeholderKey="directory.filter_name" class="filter-name no-blur"}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{#conditional-loading-spinner condition=model.loading}}
|
{{#conditional-loading-spinner condition=model.loading}}
|
||||||
{{#if userCards.length}}
|
{{#if userCards.length}}
|
||||||
|
|
Loading…
Reference in New Issue