summaryrefslogtreecommitdiff
path: root/spec/javascripts/fixtures/behaviors/requires_input.html.haml
blob: c3f905e912ebd81b34ef9d2f8501fce9510e4eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%form.js-requires-input
  %input{type: 'text', id: 'required1', required: 'required'}
  %input{type: 'text', id: 'required2', required: 'required'}
  %input{type: 'text', id: 'required3', required: 'required', value: 'Pre-filled'}
  %input{type: 'text', id: 'optional1'}

  %textarea{id: 'required4', required: 'required'}
  %textarea{id: 'optional2'}

  %select{id: 'required5', required: 'required'}
    %option Zero
    %option{value: '1'} One
  %select{id: 'optional3', required: 'required'}
    %option Zero
    %option{value: '1'} One

  %button.submit{type: 'submit', value: 'Submit'}
  %input.submit{type: 'submit', value: 'Submit'}