Guest User

Untitled

a guest
May 20th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import { FormGroup, ControlLabel, FormControl } from 'react-bootstrap';
  3. import './App.css';
  4.  
  5. class App extends Component {
  6.  
  7. state = {
  8. isAdmin: false,
  9. }
  10. render() {
  11. return (
  12. <FormGroup controlId="formControlsSelect">
  13. <ControlLabel className="labelpadding">Select a Filter: </ControlLabel>
  14. <FormControl componentClass="select" placeholder="">
  15. <option value=""></option>
  16. <option value="MAC">Show MAC</option>
  17. <option value="IP">Show IP</option>
  18. <option value="VLAN1">Show VLAN DHCP Leases</option>
  19. <option value="VLAN2">Show VLAN MAC Addresses</option>
  20. {this.state.isAdmin ?
  21. <React.Fragment>
  22. <option value="ClearFDBMac">Clear Mac</option>
  23. <option value="ClearVLAN">Clear VLAN</option>
  24. <option value="ClearIP">Clear DHCP by IP</option>
  25. <option value="ClearDHCPMAC">Clear DHCP by MAC</option>
  26. </React.Fragment>
  27. :
  28. null
  29. }
  30. </FormControl>
  31. </FormGroup>
  32. );
  33. }
  34. }
  35.  
  36. export default App;
Add Comment
Please, Sign In to add comment