/**
 * Displays a list of legislators
 */
Ext.define('GeoCon.view.legislator.List', {
    extend: 'Ext.dataview.List',

    id: 'legislatorList',

    config: {
        store: 'Legislators',
        grouped: true,
        emptyText: 'Loading list of Legislators...',
        itemTpl: [
            '<div class="legislator-list-item">',
                '<span class="legislator-pic" style="background-image: url(http://www.govtrack.us/data/photos/{govtrack_id}-50px.jpeg);"></span>',
                '{lastname}, {firstname} {middlename}',
            '</div>'
        ]
    }
});
