                 >
                     Insert Example
                 </Button>
+                {
+                    if @props.setup_code?.length > 0
+                        <Checkbox
+                            className = {'pull-right'}
+                            style     = {margin: '10px', display: 'inline'}
+                            checked   = {@props.prepend_setup_code}
+                            onChange  = {(e)=>@handle_prepend_setup_code(e.target.checked)}
+                        >
+                            Setup code
+                        </Checkbox>
+                }
             </Modal.Footer>
         </Modal>
 

    displayName : 'ExamplesBody'

    propTypes:
        actions       : rtypes.object
        data          : rtypes.immutable
        lang          : rtypes.string
        code          : rtypes.string
        descr         : rtypes.string
        cat0          : rtypes.number
        cat1          : rtypes.number
        cat2          : rtypes.number
        catlist0      : rtypes.arrayOf(rtypes.string)
        catlist1      : rtypes.arrayOf(rtypes.string)
        catlist2      : rtypes.arrayOf(rtypes.string)
        search_str    : rtypes.string
        search_sel    : rtypes.number
        hits          : rtypes.arrayOf(rtypes.array)
        unknown_lang  : rtypes.bool   # if true, show info about contributing to the assistant

    getDefaultProps: ->
        search_str : ''


# react elements
{React, ReactDOM, redux, Redux, Actions, Store, rtypes, rclass} = require('./smc-react')
{Col, Row, Panel, Button, FormGroup, Checkbox, FormControl, Well, Alert, Modal, Table, Nav, NavItem, ListGroup, ListGroupItem, InputGroup} = require('react-bootstrap')
{Loading, Icon, Markdown, Space} = require('./r_misc')

redux_name = (project_id, path) ->
