<commit_before>import React from 'react';
import { Field, reduxForm } from 'redux-form';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Row, Col } from 'react-flexbox-grid/lib';
import composeIntlForm from '../../../common/IntlForm';

const localMessages = {
  nameLabel: { id: 'collection.add.name.label', defaultMessage: 'Name' },
  descriptionLabel: { id: 'collection.add.description.label', defaultMessage: 'Description' },
  staticLabel: { id: 'collection.add.static.label', defaultMessage: 'Static' },
  showOnStoriesLabel: { id: 'collection.add.showOnStories.label', defaultMessage: 'Show on Stories' },
  showOnMediaLabel: { id: 'collection.add.showOnMedia.label', defaultMessage: 'Show on Media' },
  descriptionError: { id: 'collection.add.description.error', defaultMessage: 'You have to enter a description for this collection.' },
  nameError: { id: 'collection.add.name.error', defaultMessage: 'You have to enter a name for this collection.' },
};

const CollectionDetailsForm = (props) => {
  const { renderTextField, renderCheckbox } = props;
  return (
    <div className="collection-details-form">
      <Row>
        <Col md={2}>
          <span className="label unlabeled-field-label">
            <FormattedMessage {...localMessages.nameLabel} />
          </span>
        </Col>
        <Col md={4}>
          <Field
            name="name"
            component={renderTextField}
          />
        </Col>
      </Row>
      <Row>
        <Col md={2}>
          <span className="label unlabeled-field-label">
            <FormattedMessage {...localMessages.descriptionLabel} />
          </span>
        </Col>
        <Col md={4}>
          <Field
            name="description"
            component={renderTextField}
          />
        </Col>
      </Row>
      <Row>
        <Col md={2}>
          <Field
            name="static"
            component={renderCheckbox}
            fullWidth
            label={localMessages.staticLabel}
          />
        </Col>
      </Row>
      <Row>
        <Col md={2}>
          <Field
            name="showOnMedia"
            component={renderCheckbox}
            fullWidth
            label={localMessages.showOnMediaLabel}
          />
        </Col><commit_msg>make collection form details fields full width (fixes #185)<commit_after>import React from 'react';
import { Field, reduxForm } from 'redux-form';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Row, Col } from 'react-flexbox-grid/lib';
import composeIntlForm from '../../../common/IntlForm';

const localMessages = {
  nameLabel: { id: 'collection.add.name.label', defaultMessage: 'Name' },
  descriptionLabel: { id: 'collection.add.description.label', defaultMessage: 'Description' },
  staticLabel: { id: 'collection.add.static.label', defaultMessage: 'Static' },
  showOnStoriesLabel: { id: 'collection.add.showOnStories.label', defaultMessage: 'Show on Stories' },
  showOnMediaLabel: { id: 'collection.add.showOnMedia.label', defaultMessage: 'Show on Media' },
  descriptionError: { id: 'collection.add.description.error', defaultMessage: 'You have to enter a description for this collection.' },
  nameError: { id: 'collection.add.name.error', defaultMessage: 'You have to enter a name for this collection.' },
};

const CollectionDetailsForm = (props) => {
  const { renderTextField, renderCheckbox } = props;
  return (
    <div className="collection-details-form">
      <Row>
        <Col md={2}>
          <span className="label unlabeled-field-label">
            <FormattedMessage {...localMessages.nameLabel} />
          </span>
        </Col>
        <Col md={11}>
          <Field
            name="name"
            component={renderTextField}
            fullWidth
          />
        </Col>
      </Row>
      <Row>
        <Col md={2}>
          <span className="label unlabeled-field-label">
            <FormattedMessage {...localMessages.descriptionLabel} />
          </span>
        </Col>
        <Col md={11}>
          <Field
            name="description"
            component={renderTextField}
            fullWidth
          />
        </Col>
      </Row>
      <Row>
        <Col md={2}>
          <Field
            name="static"
            component={renderCheckbox}
            fullWidth
            label={localMessages.staticLabel}
          />
        </Col>
      </Row>
      <Row>
        <Col md={2}>
          <Field
            name="showOnMedia"
            component={renderCheckbox}
            fullWidth
            label={localMessages.showOnMediaLabel}
          />
        </Col>
{'fraction_non_alphanumeric': 0.1357730619315721, 'fraction_numerical': 0.0036812472932005198, 'mean_word_length': 2.223307745987439, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6271143', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1270, 'n_words': 295}