lib/flapjack/gateways/web/public/js/modules/contact.js in flapjack-1.0.0 vs lib/flapjack/gateways/web/public/js/modules/contact.js in flapjack-1.1.0

- old
+ new

@@ -285,11 +285,11 @@ tagName: 'tbody', id: 'contactMediaList', initialize: function(options) { var context = this; - _.each(['email', 'sms', 'jabber'], function(type) { + _.each(['email', 'sms', 'sms_twilio', 'sns', 'jabber'], function(type) { var medium = context.collection.find(function(cm) { return cm.get('type') == type; }); if ( _.isUndefined(medium) ) { @@ -336,12 +336,14 @@ this.template = _.template($('#contact-media-list-item-template').html()); }, render: function() { var template_values = _.clone(this.model.attributes); template_values['labels'] = { - 'email' : 'Email', - 'sms' : 'SMS', - 'jabber' : 'Jabber' + 'email' : 'Email', + 'sms' : 'SMS (MessageNet)', + 'sms_twilio' : 'SMS (Twilio)', + 'sns' : 'SMS (Amazon SNS)', + 'jabber' : 'Jabber' }; this.$el.html(this.template(template_values)); return this; },