= form_for @project, html: { role: 'form' } do |f|
  = render 'shared/error_explanation', instance: @project

  .form-group
    = f.label :name, 'Name', class: 'control-label'
    = f.text_field :name, class: 'form-control',
      autofocus: true, required: true
  .form-group
    = f.label :viewport_widths, 'Viewport widths', class: 'control-label'
    %small One per line
    = f.text_area :viewport_widths, rows: 4, class: 'form-control'
  .form-group
    = f.label :url_addresses, 'Web page addresses (URLs)', class: 'control-label'
    %small One per line
    = f.text_area :url_addresses, rows: 10, class: 'form-control'
  .form-group
    = f.submit 'Save', class: 'btn btn-primary'

= form_for @project, html: { role: 'form' } do |f|
  = render 'shared/error_explanation', instance: @project

  .form-group
    = f.label :name, 'Name', class: 'control-label'
    = f.text_field :name, class: 'form-control',
      autofocus: true, required: true
  .form-group
    = f.label :viewport_widths, 'Viewport widths', class: 'control-label'
    %small One per line
    = f.text_area :viewport_widths, rows: 4, class: 'form-control',
      required: true, title: 'Add at least one width'
  .form-group
    = f.label :url_addresses, 'Web page addresses (URLs)', class: 'control-label'
    %small One per line
    = f.text_area :url_addresses, rows: 10, class: 'form-control',
      required: true, title: 'Add at least one URL'
  .form-group
    = f.submit 'Save', class: 'btn btn-primary'

Make `viewport_widths` and `url_addresses` fields required
Make `viewport_widths` and `url_addresses` fields required

This doesn't fully resolve issue #90 and #91, but it takes care of some
of it.  Before this change, you could create a project without any URL
addresses and/or viewport widths. This is still the case, even after
this change (we parse these fields on the server and ignore anything
that's unparseable). Making the fields required fixes the problem where
you could save a project with these fields blank.
