mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
parent
99a5418dba
commit
8baad7e2f0
22 changed files with 229 additions and 102 deletions
|
@ -4,61 +4,57 @@
|
|||
{{#ui/ui-toolbar dark=false light=false raised=false large=false bordered=false}}
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.Blocks color=constants.Color.Gray tooltip="Complete"
|
||||
selected=(eq viewDensity "1") onClick=(action "onSwitchView" "1")}}
|
||||
|
||||
{{ui/ui-toolbar-icon icon=constants.Icon.All color=constants.Color.Gray tooltip="Comfort"
|
||||
selected=(eq viewDensity "2") onClick=(action "onSwitchView" "2")}}
|
||||
|
||||
{{ui/ui-toolbar-label label="—" color=constants.Color.Gray tooltip="Compact"
|
||||
selected=(eq viewDensity "3") onClick=(action "onSwitchView" "3")}}
|
||||
|
||||
{{#ui/ui-toolbar-icon icon=constants.Icon.Sort color=constants.Color.Gray tooltip="Sort"}}
|
||||
{{#attach-popover class="ember-attacher-popper" hideOn="click" showOn="click" isShown=false placement="bottom-end" as |attacher|}}
|
||||
<i class="dicon {{constants.Icon.Cross}} closer" {{action attacher.hide}}/>
|
||||
<div class="container">
|
||||
<Ui::UiSpacer @size="100" />
|
||||
|
||||
<div class="text-center">
|
||||
<ul class="ui-option-picker ui-option-picker-horiz">
|
||||
<li class="option {{if sortBy.name "selected"}}" {{action "onSetSort" "name"}}>
|
||||
<div class="text">Name</div>
|
||||
</li>
|
||||
<li class="option {{if sortBy.created "selected"}}" {{action "onSetSort" "created"}}>
|
||||
<div class="text">Created date</div>
|
||||
</li>
|
||||
<li class="option {{if sortBy.updated "selected"}}" {{action "onSetSort" "updated"}}>
|
||||
<div class="text">Last updated</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<Ui::UiSpacer @size="100" />
|
||||
|
||||
<div class="text-center">
|
||||
<ul class="ui-option-picker ui-option-picker-horiz">
|
||||
<li class="option {{if sortBy.asc "selected"}}" {{action "onSetSort" "asc"}}>
|
||||
<div class="text">Ascending</div>
|
||||
</li>
|
||||
<li class="option {{if sortBy.desc "selected"}}" {{action "onSetSort" "desc"}}>
|
||||
<div class="text">Descending</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<Ui::UiSpacer @size="300" />
|
||||
|
||||
{{ui/ui-button
|
||||
light=true
|
||||
color=constants.Color.Yellow
|
||||
label=constants.Label.Sort
|
||||
onClick=(action "onSortBy" attacher)}}
|
||||
</div>
|
||||
{{/attach-popover}}
|
||||
{{/ui/ui-toolbar-icon}}
|
||||
{{/ui/ui-toolbar}}
|
||||
|
||||
{{#ui/ui-button
|
||||
light=false
|
||||
outline=true
|
||||
uppercase=false
|
||||
color=constants.Color.Gray
|
||||
label=constants.Label.Sort}}
|
||||
|
||||
{{#attach-popover class="ember-attacher-popper" hideOn="click" showOn="click" isShown=false placement="bottom-end" as |attacher|}}
|
||||
<i class="dicon {{constants.Icon.Cross}} closer" {{action attacher.hide}}/>
|
||||
<div class="container">
|
||||
<Ui::UiSpacer @size="100" />
|
||||
|
||||
<div class="text-center">
|
||||
<ul class="ui-option-picker ui-option-picker-horiz">
|
||||
<li class="option {{if sortBy.name "selected"}}" {{action "onSetSort" "name"}}>
|
||||
<div class="text">Name</div>
|
||||
</li>
|
||||
<li class="option {{if sortBy.created "selected"}}" {{action "onSetSort" "created"}}>
|
||||
<div class="text">Created date</div>
|
||||
</li>
|
||||
<li class="option {{if sortBy.updated "selected"}}" {{action "onSetSort" "updated"}}>
|
||||
<div class="text">Last updated</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<Ui::UiSpacer @size="100" />
|
||||
|
||||
<div class="text-center">
|
||||
<ul class="ui-option-picker ui-option-picker-horiz">
|
||||
<li class="option {{if sortBy.asc "selected"}}" {{action "onSetSort" "asc"}}>
|
||||
<div class="text">Ascending</div>
|
||||
</li>
|
||||
<li class="option {{if sortBy.desc "selected"}}" {{action "onSetSort" "desc"}}>
|
||||
<div class="text">Descending</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<Ui::UiSpacer @size="300" />
|
||||
|
||||
{{ui/ui-button
|
||||
light=true
|
||||
color=constants.Color.Yellow
|
||||
label=constants.Label.Sort
|
||||
onClick=(action "onSortBy" attacher)}}
|
||||
</div>
|
||||
{{/attach-popover}}
|
||||
{{/ui/ui-button}}
|
||||
</div>
|
||||
|
||||
<Ui::UiSpacer @size="200" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue