@@ -5,10 +5,12 @@ import { Map } from 'immutable';
5
5
import _ from 'lodash' ;
6
6
import AppBar from '@material-ui/core/AppBar/AppBar' ;
7
7
import Toolbar from '@material-ui/core/Toolbar/Toolbar' ;
8
+ import Grid from '@material-ui/core/Grid' ;
8
9
import { withRouter } from 'react-router' ;
10
+ import Tooltip from '@material-ui/core/Tooltip' ;
11
+ import InfoIcon from '@material-ui/icons/Info' ;
9
12
import clsx from 'clsx' ;
10
13
import { withTranslation } from 'react-i18next' ;
11
- import FormGroup from '@material-ui/core/FormGroup' ;
12
14
import FormControlLabel from '@material-ui/core/FormControlLabel' ;
13
15
import Checkbox from '@material-ui/core/Checkbox' ;
14
16
import Button from '@material-ui/core//Button' ;
@@ -218,36 +220,66 @@ class LoadSelectionScreen extends Component {
218
220
</ Typography >
219
221
220
222
< br />
221
- < FormGroup >
222
- { this . renderCheckbox (
223
- t ( 'space' ) ,
224
- t ( 'This Space' ) ,
225
- isSpaceChecked ,
226
- // space is always disabled:
227
- // when the space does not exist (force load)
228
- // when the space has change (force load)
229
- // when the space has no change (no load)
230
- true ,
231
- t ( `This file does not contain a space` )
232
- ) }
233
- { this . renderSpaceHelperText ( ) }
234
-
235
- { this . renderCheckbox (
236
- t ( 'resources' ) ,
237
- t ( `This Space's User Inputs` ) ,
238
- isResourcesChecked ,
239
- elements . get ( 'resources' ) . isEmpty ( ) ,
240
- t ( `This file does not contain any user input` )
241
- ) }
242
-
243
- { this . renderCheckbox (
244
- t ( 'actions' ) ,
245
- t ( `This Space's analytics` ) ,
246
- isActionsChecked ,
247
- elements . get ( 'actions' ) . isEmpty ( ) ,
248
- t ( `This file does not contain any analytics` )
249
- ) }
250
- </ FormGroup >
223
+ < Grid
224
+ container
225
+ alignItems = "center"
226
+ alignContent = "center"
227
+ justify = "center"
228
+ >
229
+ < Grid item xs = { 7 } >
230
+ { this . renderCheckbox (
231
+ t ( 'space' ) ,
232
+ t ( 'This Space' ) ,
233
+ isSpaceChecked ,
234
+ // space is always disabled:
235
+ // when the space does not exist (force load)
236
+ // when the space has change (force load)
237
+ // when the space has no change (no load)
238
+ true ,
239
+ t ( `This file does not contain a space` )
240
+ ) }
241
+ { this . renderSpaceHelperText ( ) }
242
+ </ Grid >
243
+ < Grid item xs = { 1 } />
244
+ < Grid item xs = { 7 } >
245
+ { this . renderCheckbox (
246
+ t ( 'resources' ) ,
247
+ t ( `This Space's User Inputs` ) ,
248
+ isResourcesChecked ,
249
+ elements . get ( 'resources' ) . isEmpty ( ) ,
250
+ t ( `This file does not contain any user input` )
251
+ ) }
252
+ </ Grid >
253
+ < Grid item xs = { 1 } >
254
+ < Tooltip
255
+ title = { t (
256
+ 'Resources are inputs a user save when using applications (ie. answer in Input Text App).'
257
+ ) }
258
+ placement = "right"
259
+ >
260
+ < InfoIcon color = "primary" />
261
+ </ Tooltip >
262
+ </ Grid >
263
+ < Grid item xs = { 7 } >
264
+ { this . renderCheckbox (
265
+ t ( 'actions' ) ,
266
+ t ( `This Space's analytics` ) ,
267
+ isActionsChecked ,
268
+ elements . get ( 'actions' ) . isEmpty ( ) ,
269
+ t ( `This file does not contain any analytics` )
270
+ ) }
271
+ </ Grid >
272
+ < Grid item xs = { 1 } >
273
+ < Tooltip
274
+ title = { t (
275
+ 'Analytics are various statistics and user data a user left while using Graasp Desktop.'
276
+ ) }
277
+ placement = "right"
278
+ >
279
+ < InfoIcon color = "primary" />
280
+ </ Tooltip >
281
+ </ Grid >
282
+ </ Grid >
251
283
< br />
252
284
< div className = { classes . buttonGroup } >
253
285
< Button
0 commit comments