var DiscountReasonsFormView = Backbone.View.extend({
    initialize: function (options) {
        this.options = options;
        this.template = _.template(options.template);
        this.model = options.model;
        this.discountReasons = options.discountReasons;
    },

    render: function () {
        var that = this;
        this.$el.detach();
        this.$el.html(this.template({
            discountReasons: this.model.toJSON(),
        }));
        $(document).ready(function() {
            M.textareaAutoResize($('#discountReason'));
            $('.tooltipped').tooltip();
        });
        return this;
    }
});