WiP on admin interface for subscribers.

TODO:
- format data based on field info in listDTAjax
- integrate with the whole subscription machinery
This commit is contained in:
Tomas Bures 2017-08-20 23:44:33 +02:00
parent e6bd9cd943
commit 6f5b50e932
38 changed files with 1233 additions and 181 deletions

View file

@ -34,14 +34,15 @@ class DismissibleAlert extends Component {
class Icon extends Component {
static propTypes = {
name: PropTypes.string,
icon: PropTypes.string.isRequired,
title: PropTypes.string,
className: PropTypes.string
}
render() {
const props = this.props;
return <span className={'glyphicon glyphicon-' + props.name + (props.className ? ' ' + props.className : '')}></span>;
return <span className={'glyphicon glyphicon-' + props.icon + (props.className ? ' ' + props.className : '')} title={props.title}></span>;
}
}
@ -75,7 +76,7 @@ class Button extends Component {
let icon;
if (props.icon) {
icon = <Icon name={props.icon}/>
icon = <Icon icon={props.icon}/>
}
let iconSpacer;