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,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}}
|
||||||
|
|
Loading…
Reference in New Issue