= 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
  .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'
  .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'

Add required attribute to Project name field
Add required attribute to Project name field

This field has a validation on the model, so if the form was submitted
with this field blank, it would come back as an error. Adding this
attribute to the field allows the browser to do this work, making the
app more responsive to the user.

Change-Id: Ibc6ffb1e742dcdbfd63bf15b70f458cd801de9d1
