From ffa302298fe212c9898557942b9aac0a59d3ef3c Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 14 Sep 2017 08:06:55 -0700 Subject: [PATCH] WIP --- app/router.js | 1 + app/routes/collections/new.js | 4 + app/templates/collections/1.hbs | 14 +- app/templates/collections/new.hbs | 130 ++++++++++++++++++ .../components/collections-container.hbs | 2 + tests/unit/routes/collections/new-test.js | 11 ++ 6 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 app/routes/collections/new.js create mode 100644 app/templates/collections/new.hbs create mode 100644 tests/unit/routes/collections/new-test.js diff --git a/app/router.js b/app/router.js index 75adc76..03cadfc 100644 --- a/app/router.js +++ b/app/router.js @@ -11,6 +11,7 @@ Router.map(function() { this.route('logout'); this.route('collections', function() { this.route('1'); + this.route('new'); }); }); diff --git a/app/routes/collections/new.js b/app/routes/collections/new.js new file mode 100644 index 0000000..26d9f31 --- /dev/null +++ b/app/routes/collections/new.js @@ -0,0 +1,4 @@ +import Ember from 'ember'; + +export default Ember.Route.extend({ +}); diff --git a/app/templates/collections/1.hbs b/app/templates/collections/1.hbs index 9e4b6f1..7b8bc2c 100644 --- a/app/templates/collections/1.hbs +++ b/app/templates/collections/1.hbs @@ -1,4 +1,4 @@ -

Collection Detail

+

Collection Detail

@@ -33,6 +33,18 @@
+
+ +
+
diff --git a/app/templates/collections/new.hbs b/app/templates/collections/new.hbs new file mode 100644 index 0000000..10dac87 --- /dev/null +++ b/app/templates/collections/new.hbs @@ -0,0 +1,130 @@ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+ +
+
+
diff --git a/app/templates/components/collections-container.hbs b/app/templates/components/collections-container.hbs index f342573..cef684c 100644 --- a/app/templates/components/collections-container.hbs +++ b/app/templates/components/collections-container.hbs @@ -1,3 +1,5 @@ +{{#link-to "collections.new" class="btn btn-default"}}New Collection{{/link-to}} +
{{filter-collections}} {{ccdb-pagination}} {{ccdb-table model=model columns=columns}} diff --git a/tests/unit/routes/collections/new-test.js b/tests/unit/routes/collections/new-test.js new file mode 100644 index 0000000..1784b29 --- /dev/null +++ b/tests/unit/routes/collections/new-test.js @@ -0,0 +1,11 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('route:collections/new', 'Unit | Route | collections/new', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +test('it exists', function(assert) { + let route = this.subject(); + assert.ok(route); +});