ENH: Simple collection details (#27)

This commit is contained in:
Matthew Ryan Dillon 2017-09-30 21:20:00 -07:00 committed by GitHub
parent 578b8daa32
commit 09a62cf165
14 changed files with 60 additions and 29 deletions

View file

@ -1 +0,0 @@
{{collections-container model=model changePage=(action 'changePage')}}

View file

@ -0,0 +1 @@
{{collection-detail-container model=model}}

View file

@ -0,0 +1,6 @@
{{
collections-container
model=model
changePage=(action 'changePage')
onRowClick=(action 'rowClick')
}}

View file

@ -1,12 +1,12 @@
{{#if hasBlock}}
{{yield (hash
table=(component 'light-table' table=table)
pagination=(component 'ccdb-pagination' model=model changePage=(action changePage))
grid=(component 'light-table' table=table onRowClicked=(action (optional onRowClicked)))
pagination=(component 'ccdb-pagination' model=model changePage=(action (optional changePage)))
)}}
{{else}}
{{ccdb-pagination model=model changePage=(action changePage)}}
{{ccdb-pagination model=model changePage=(action (optional changePage))}}
{{#light-table table tableClassNames="table table-striped" as |t|}}
{{t.head}}
{{t.body}}
{{t.body onRowClick=(action (optional onRowClick))}}
{{/light-table}}
{{/if}}

View file

@ -0,0 +1,6 @@
{{#ccdb-table model=model columns=columns as |c|}}
{{#c.grid as |g|}}
{{g.head}}
{{g.body}}
{{/c.grid}}
{{/ccdb-table}}

View file

@ -1 +1,7 @@
{{ccdb-table model=model columns=columns changePage=(action changePage)}}
{{
ccdb-table
model=model
columns=columns
changePage=(action changePage)
onRowClick=(action onRowClick)
}}