mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 13:41:57 +02:00
prize: permission refactor
email: moved cc folders bug fix email: encode email in queryparams
This commit is contained in:
parent
aba30acb02
commit
8275a8d626
|
@ -18,17 +18,12 @@ import FormPropertyHeader from '../../../ascribe_forms/form_property_header';
|
||||||
|
|
||||||
import ActionPanel from '../../../ascribe_panel/action_panel';
|
import ActionPanel from '../../../ascribe_panel/action_panel';
|
||||||
|
|
||||||
import Table from '../../../ascribe_table/table';
|
|
||||||
import TableItem from '../../../ascribe_table/table_item';
|
|
||||||
import TableItemText from '../../../ascribe_table/table_item_text';
|
|
||||||
|
|
||||||
import GlobalNotificationModel from '../../../../models/global_notification_model';
|
import GlobalNotificationModel from '../../../../models/global_notification_model';
|
||||||
import GlobalNotificationActions from '../../../../actions/global_notification_actions';
|
import GlobalNotificationActions from '../../../../actions/global_notification_actions';
|
||||||
|
|
||||||
import AppConstants from '../../../../constants/application_constants';
|
import AppConstants from '../../../../constants/application_constants';
|
||||||
import apiUrls from '../../../../constants/api_urls';
|
import apiUrls from '../../../../constants/api_urls';
|
||||||
|
|
||||||
import { ColumnModel} from '../../../ascribe_table/models/table_models';
|
|
||||||
import { getLangText } from '../../../../utils/lang_utils';
|
import { getLangText } from '../../../../utils/lang_utils';
|
||||||
|
|
||||||
|
|
||||||
|
@ -299,54 +294,4 @@ let PrizeJurySettings = React.createClass({
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
let PrizesDashboard = React.createClass({
|
|
||||||
|
|
||||||
getColumnList() {
|
|
||||||
return [
|
|
||||||
new ColumnModel(
|
|
||||||
(item) => {
|
|
||||||
return {
|
|
||||||
'content': item.name
|
|
||||||
}; },
|
|
||||||
'name',
|
|
||||||
getLangText('Name'),
|
|
||||||
TableItemText,
|
|
||||||
6,
|
|
||||||
false,
|
|
||||||
null
|
|
||||||
),
|
|
||||||
new ColumnModel(
|
|
||||||
(item) => {
|
|
||||||
return {
|
|
||||||
'content': item.domain
|
|
||||||
}; },
|
|
||||||
'domain',
|
|
||||||
getLangText('Domain'),
|
|
||||||
TableItemText,
|
|
||||||
1,
|
|
||||||
false,
|
|
||||||
null
|
|
||||||
)
|
|
||||||
];
|
|
||||||
},
|
|
||||||
|
|
||||||
render() {
|
|
||||||
return (
|
|
||||||
<Table
|
|
||||||
responsive
|
|
||||||
className="ascribe-table"
|
|
||||||
columnList={this.getColumnList()}
|
|
||||||
itemList={this.state.prizeList}>
|
|
||||||
{this.state.prizeList.map((item, i) => {
|
|
||||||
return (
|
|
||||||
<TableItem
|
|
||||||
className="ascribe-table-item-selectable"
|
|
||||||
key={i}/>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</Table>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
export default Settings;
|
export default Settings;
|
Loading…
Reference in New Issue
Block a user