Guest User

Untitled

a guest
Feb 16th, 2017
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component, PropTypes } from 'react';
  2. import { createContainer } from 'meteor/react-meteor-data';
  3. import ReactDOM from 'react-dom';
  4. import AutoComplete from 'material-ui/AutoComplete';
  5.  
  6. import getMuiTheme from 'material-ui/styles/getMuiTheme';
  7. import injectTapEventPlugin from 'react-tap-event-plugin';
  8. import {GridList,GridTile} from 'material-ui/GridList';
  9.  
  10. import TextField from 'material-ui/TextField';
  11. import RaisedButton from 'material-ui/RaisedButton';
  12. import IconButton from 'material-ui/IconButton';
  13. import DeleteIcon from 'material-ui/svg-icons/action/delete-forever';
  14. import EditorModeEdit from 'material-ui/svg-icons/editor/mode-edit';
  15. import {Tabs, Tab} from 'material-ui/Tabs';
  16. import {UserList} from '../api/userList.js';
  17.  
  18. class Login extends Component {
  19.  
  20.   getChildContext(){
  21.         return {
  22.             muiTheme: getMuiTheme()
  23.         }
  24.   }
  25.  
  26.  
  27.   render(){
  28.   return (
  29.  
  30. //Rama
  31.   //console.log('In Render'),
  32. <div>
  33.  
  34.     <div>
  35.     <TextField
  36.       hintText="Username"
  37.     /><br/>
  38.     <TextField
  39.       hintText="Password"
  40.     /><br/>
  41.  
  42.   <RaisedButton label="Login" primary={true}  />
  43.     </div>
  44.  
  45. <div>
  46.  
  47.  
  48.  
  49.  
  50.   <TextField>Login Successful</TextField>
  51.  
  52. </div>
  53. </div>
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.   );
  64.   }
  65. }
  66. /*
  67. this.props.loginCollection.map((row,index)=>(
  68. <TableRow key={index} selected={row.selected} >
  69.     <TableRowColumn>{index+1}</TableRowColumn>
  70.     <TableRowColumn>
  71.         <IconButton  onClick={e=()=>{this.editLogin(index);}} iconStyle={ { width: 24,height:   24,  }}
  72.          style={{ width: 24,height: 24,padding:8,  }}    >
  73.           <EditorModeEdit />
  74.         </IconButton>
  75.     </TableRowColumn>
  76.                 <TableRowColumn>{row.loginName}</TableRowColumn>
  77.                 <TableRowColumn>{row.primaryGroup}</TableRowColumn>
  78.                 <TableRowColumn>{row.remarks}</TableRowColumn>
  79.  
  80.         <TableRowColumn>
  81.     <IconButton  onClick={e=()=>{
  82.     this.deleteVoucher(index);
  83. }}
  84.   iconStyle={ { width: 36, height: 36,  }}     style={{ width: 36,
  85.     height: 36,
  86.     padding: 8,  }}    >
  87.           <DeleteIcon />
  88.     </IconButton>
  89.         </TableRowColumn>
  90. </TableRow>
  91. ));
  92.  
  93. */
  94.  
  95.  
  96.  
  97.  
  98. Login.childContextTypes={
  99.   muiTheme: React.PropTypes.object.isRequired
  100. }
  101. //export default createContainer(()=>{return {}},Login);
  102.  
  103. export default createContainer(()=>{
  104. return {
  105. loginCollection:UserList.find({}).fetch(),
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114. };
  115. },Login);
Add Comment
Please, Sign In to add comment