/**
* This widget is used to add a new source
*/
minerva.views.AddSourceWidget = minerva.View.extend({
    events: {
        'submit #m-add-source-form': function (e) {
            e.preventDefault();

            // TODO better to have single buttons instead of radio?
            // That way user only has to click once instead of radio + Add
            var sourceType = $('#m-add-source-form input:radio:checked').attr('id');
            // get sourcetype from m-sourcetype-source
            sourceType = sourceType.split('-')[1];
            var container = $('#g-dialog-container');

            var settings = {
                el: container,
                noParent: true,
                collection: this.collection,
                parentView: this.parentView
            };

            if (_.has(this.sourceTypes, sourceType)) {
                var widget = new this.sourceTypes[sourceType].widget(settings);
                widget.render();
            } else {
                console.error('Unknown source type');
            }
        },
        'click .m-add-source-radio': function (e) {
            $(e.currentTarget).find('input:radio').first().prop('checked', true);
        }
    },

    initialize: function (settings) {
        this.collection = settings.collection;
        // TODO would be nice if new source types could register themselves,
        // perhaps with a method on the minerva object, that we could then
        // query here.  All the source types register themselves upon definition,
        // and we query here upon instantation.  This registration process
        // should also add them to the SourceCollection model function.
        this.sourceTypes = {
            wms: {
                label: 'WMS',
                icon: 'icon-layers',
                widget: minerva.views.AddWmsSourceWidget
            },
            elasticsearch: {
                label: 'Elasticsearch',
                icon: 'icon-search',
                widget: minerva.views.AddElasticsearchSourceWidget
            },
            s3: {
                label: 'S3 bucket',
                icon: 'icon-cloud',
                widget: minerva.views.AddS3SourceWidget
            },
            postgres: {
                label: 'PostgreSQL',
                icon: 'icon-floppy',
                widget: minerva.views.AddPostgresSourceWidget
            }
        };
    },

    render: function () {
        var view = this;
        var modal = this.$el.html(minerva.templates.addSourceWidget({
            session: this.model,
            sourceTypes: this.sourceTypes
        })).girderModal(this).on('shown.bs.modal', function () {
            view.$('#m-wms-name').focus();
        }).on('hidden.bs.modal', function () {
        }).on('ready.girder.modal', function () {
        });
        modal.trigger($.Event('ready.girder.modal', {relatedTarget: modal}));

        return this;
    }

});

@@ -2296,14 +2296,16 @@
 con-
-floppy
+database
 ',%0A 

Change postgres source icon to database