diff --git a/app/components/ccdb-pagination.js b/app/components/ccdb-pagination.js new file mode 100644 index 0000000..1ef4a00 --- /dev/null +++ b/app/components/ccdb-pagination.js @@ -0,0 +1,5 @@ +import Ember from 'ember'; + +export default Ember.Component.extend({ + classNames: ['row'], +}); diff --git a/app/components/ccdb-table.js b/app/components/ccdb-table.js index 328b9d3..fce3474 100644 --- a/app/components/ccdb-table.js +++ b/app/components/ccdb-table.js @@ -8,6 +8,8 @@ export default Component.extend({ columns: null, table: null, + classNames: ['row'], + init() { this._super(...arguments); const table = new Table(this.get('columns'), this.get('model')); diff --git a/app/components/filter-collections.js b/app/components/filter-collections.js new file mode 100644 index 0000000..1ef4a00 --- /dev/null +++ b/app/components/filter-collections.js @@ -0,0 +1,5 @@ +import Ember from 'ember'; + +export default Ember.Component.extend({ + classNames: ['row'], +}); diff --git a/app/templates/components/ccdb-pagination.hbs b/app/templates/components/ccdb-pagination.hbs new file mode 100644 index 0000000..15bd26e --- /dev/null +++ b/app/templates/components/ccdb-pagination.hbs @@ -0,0 +1,36 @@ +
+
+ Showing 1-100 of 102 entries +
+
+ +
+
diff --git a/app/templates/components/collections-container.hbs b/app/templates/components/collections-container.hbs index b6a7d07..f342573 100644 --- a/app/templates/components/collections-container.hbs +++ b/app/templates/components/collections-container.hbs @@ -1 +1,3 @@ +{{filter-collections}} +{{ccdb-pagination}} {{ccdb-table model=model columns=columns}} diff --git a/app/templates/components/filter-collections.hbs b/app/templates/components/filter-collections.hbs new file mode 100644 index 0000000..a60011d --- /dev/null +++ b/app/templates/components/filter-collections.hbs @@ -0,0 +1,10 @@ +
+
+
+ +
+
+
diff --git a/tests/integration/components/ccdb-pagination-test.js b/tests/integration/components/ccdb-pagination-test.js new file mode 100644 index 0000000..2297928 --- /dev/null +++ b/tests/integration/components/ccdb-pagination-test.js @@ -0,0 +1,25 @@ +import { moduleForComponent, test } from 'ember-qunit'; +import hbs from 'htmlbars-inline-precompile'; + +moduleForComponent('ccdb-pagination', 'Integration | Component | ccdb pagination', { + integration: true +}); + +test('it renders', function(assert) { + + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.on('myAction', function(val) { ... }); + + this.render(hbs`{{ccdb-pagination}}`); + + assert.equal(this.$().text().trim(), ''); + + // Template block usage: + this.render(hbs` + {{#ccdb-pagination}} + template block text + {{/ccdb-pagination}} + `); + + assert.equal(this.$().text().trim(), 'template block text'); +}); diff --git a/tests/integration/components/filter-collections-test.js b/tests/integration/components/filter-collections-test.js new file mode 100644 index 0000000..db25d68 --- /dev/null +++ b/tests/integration/components/filter-collections-test.js @@ -0,0 +1,25 @@ +import { moduleForComponent, test } from 'ember-qunit'; +import hbs from 'htmlbars-inline-precompile'; + +moduleForComponent('filter-collections', 'Integration | Component | filter collections', { + integration: true +}); + +test('it renders', function(assert) { + + // Set any properties with this.set('myProperty', 'value'); + // Handle any actions with this.on('myAction', function(val) { ... }); + + this.render(hbs`{{filter-collections}}`); + + assert.equal(this.$().text().trim(), ''); + + // Template block usage: + this.render(hbs` + {{#filter-collections}} + template block text + {{/filter-collections}} + `); + + assert.equal(this.$().text().trim(), 'template block text'); +});