Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from Morphexe/master
Browse files Browse the repository at this point in the history
Merge from master
  • Loading branch information
Morphexe authored Sep 4, 2016
2 parents 3a46256 + e179ea3 commit a1b77e0
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions src/components/SearchWindow/querybuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const fields = [
{ name: 'email', label: 'Email' },
{ name: 'twitter', label: 'Twitter' },
{ name: 'isDev', label: 'Is a Developer?', value: false },
{ name: 'spatial', label: 'Spatial Custom Type', value: {} }
{ name: 'spatial', label: 'Spatial Custom Type', value: {} },
{ name: 'Location', label: 'Location', value: {} }
];

const CSSClass = {
Expand Down Expand Up @@ -52,6 +53,24 @@ function getEditor({field, operator, value, onChange}) {
</span>
);
}
if (field == 'Location') {
return (

<select className='form-control'>
<option value="volvo">N/A</option>
<option value="volvo">Global</option>
<option value="volvo">Current Viewport (Map1) </option>
<optgroup label="System">
<option value="volvo">London Airports</option>
<option value="saab">London Boroughs</option>
</optgroup>
<optgroup label="Locals">
<option value="mercedes">M25</option>
<option value="audi">Internet Cafes</option>
</optgroup>
</select>
)
}
return (<span>
<input type="text" className="form-control" style={{ width: '30%', minWidth: '120px', display: 'inline-block' }}
value={value}
Expand Down Expand Up @@ -84,9 +103,9 @@ const dom = () => {
<div style={{ width: '100%', height: '100%', position: 'relative' }}>
<div className="container-fluid" >
<div className="row" >
<div className="col-md-2" style={{minWidth:'110px'}}>
<div style={{ display: 'flex', alignItems: 'center',justifyContent: 'center' }}>
<img src="https://github.com/DeepBlueCLtd/lesco/raw/master/logo.png" style={{ height:'100px', marginTop:'30px', marginLeft:'10px'}}/>
<div className="col-md-2" style={{ minWidth: '110px' }}>
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
<img src="https://github.com/DeepBlueCLtd/lesco/raw/master/logo.png" style={{ height: '100px', marginTop: '30px', marginLeft: '10px' }}/>
</div>
</div>
<div className="col-xs-10" >
Expand Down

0 comments on commit a1b77e0

Please sign in to comment.