Create and edit characteristics
This commit is contained in:
parent
fb296340c3
commit
de8ac653f6
14 changed files with 180 additions and 1 deletions
|
@ -5,4 +5,9 @@ export default Ember.Route.extend({
|
|||
return this.store.findAll('characteristic');
|
||||
},
|
||||
|
||||
setupController: function(controller, model) {
|
||||
controller.set('model', model);
|
||||
controller.set('metaData', this.store.metadataFor('characteristic'));
|
||||
},
|
||||
|
||||
});
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<h2>{{genus-name}} Characteristics</h2>
|
||||
<h3>Total characteristics: {{model.length}}</h3>
|
||||
|
||||
{{add-button label="Add Characteristic" link="protected.characteristics.new" canAdd=metaData.canAdd}}
|
||||
|
||||
<table class="flakes-table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
Reference in a new issue