old_contents: // @flow
  /**
   * Created by steve on 11/09/15.
   */
  import React from "react";
  import FormControl from "@material-ui/core/FormControl";
  import FormLabel from "@material-ui/core/FormLabel";
  import { withStyles } from "@material-ui/core/styles";
  import type { Localization } from "./types";
  
  const styles = theme => ({
      root: {
          marginTop: theme.spacing.unit
      },
      fields: {
          marginLeft: theme.spacing.unit
      }
  });
  
  type Props = {
      form: any,
      mapper: any,
      builder: any,
      model: any,
      onChange: any,
      classes: any,
      localization: Localization
  };
  
  const FieldSet = ({
      form,
      mapper,
      builder,
      model,
      onChange,
      classes,
      localization: { getLocalizedString }
  }: Props) => {
      const forms = form.items.map((f, index) =>
          builder(f, model, index, mapper, onChange, builder)
      );
  
      return (
          <FormControl component="fieldset" className={classes.root}>
              <FormLabel component="legend" required={form.required}>
                  {form.title && getLocalizedString(form.title)}
              </FormLabel>
              <div className={classes.fields}>{forms}</div>
          </FormControl>
      );
  };
  
  export default withStyles(styles)(FieldSet);
  
new_contents: // @flow
  /**
   * Created by steve on 11/09/15.
   */
  import React from "react";
  import FormControl from "@material-ui/core/FormControl";
  import FormLabel from "@material-ui/core/FormLabel";
  import { withStyles } from "@material-ui/core/styles";
  import type { Localization } from "./types";
  
  const styles = theme => ({
      root: {
          marginTop: theme.spacing.unit
      },
      fields: {
          marginLeft: theme.spacing.unit
      }
  });
  
  type Props = {
      form: any,
      mapper: any,
      builder: any,
      model: any,
      onChange: any,
      classes: any,
      localization: Localization
  };
  
  const FieldSet = ({
      form,
      mapper,
      builder,
      model,
      onChange,
      classes,
      localization: { getLocalizedString }
  }: Props) => {
      const forms = form.items.map((f, index) =>
          builder(f, model, index, mapper, onChange, builder)
      );
  
      return (
          <FormControl
              component="fieldset"
              className={classes.root}
              style={form.style}
          >
              <FormLabel component="legend" required={form.required}>
                  {form.title && getLocalizedString(form.title)}
              </FormLabel>
              <div className={classes.fields}>{forms}</div>
          </FormControl>
      );
  };
  
  export default withStyles(styles)(FieldSet);
  
subject: add form.style