import DS from 'ember-data';
import Ember from 'ember';

export default DS.Model.extend({
  name: DS.attr('string'),
  artistId: DS.attr('number'),
  phone: DS.attr('string'),
  email: DS.attr('string'),
  dateOnWaitingList: DS.attr('date'),
  status: DS.attr('number'),
  local: DS.attr('boolean'),
  location: DS.attr('string'),
  credit: DS.attr('string'),
  want: DS.attr('string'),
  notes: DS.attr('string'),

  statusText: Ember.computed('status', function() {
    switch (this.get('status')) {
      case 1:
        return "Ongoing";
      case 2:
        return "On Waiting List";
      case 3:
        return "Finished";
      case 4:
        return "On Hold";
    }
  }),

  formattedDateOnWaitingList: Ember.computed('dateOnWaitingList', function() {
    var date = this.get('dateOnWaitingList');
    return date.getMonth() + "/" + date.getDay() + "/" + date.getFullYear();
  })
});

@@ -813,16 +813,17 @@
  return 
+(
 date.get
@@ -827,24 +827,29 @@
 getMonth() +
+ 1) +
  %22/%22 + date.
@@ -857,9 +857,10 @@
 etDa
-y
+te
 () +

Fix date formatting.