/**
 * Cell used for showing an AmountEntry
 *
 * Copyright 2015 Ethan Smith
 */

var Marionette = require('backbone.marionette');

var AmountEntryCell = Marionette.ItemView.extend({
   tagName: 'td',
   render: function() {
      this.$el.html(this.model.entry.readable());
   }
});

module.exports = AmountEntryCell;

/**
 * Cell used for showing an AmountEntry
 *
 * Copyright 2015 Ethan Smith
 */

var Marionette = require('backbone.marionette');

var AmountEntryCell = Marionette.ItemView.extend({
   tagName: 'td',
   className: function() {
      return this.model.entry.get() === 0 ? 'zero' : '';
   },
   render: function() {
      this.$el.html(this.model.entry.readable());
   }
});

module.exports = AmountEntryCell;

Add zero class to new AmountEntry cell
Add zero class to new AmountEntry cell
