File: fieldsets.erb

package info (click to toggle)
ruby-capybara 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 948 kB
  • ctags: 516
  • sloc: ruby: 7,998; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<form action="/form" method="post">
  <fieldset id="agent_fieldset">
    <legend>Agent</legend>
  
    <p>
      <label for="form_agent_name">Name</label>
      <input type="text" name="form[agent_name]" value="James" id="form_agent_name"/>
    </p>
  
    <p>
      <input type="submit" value="Create"/>
    </p>
  </fieldset>
</form>

<form action="/form" method="post">
  <fieldset id="villain_fieldset">
    <legend>Villain</legend>
  
    <p>
      <label for="form_villain_name">Name</label>
      <input type="text" name="form[villain_name]" value="Ernst" id="form_villain_name"/>
    </p>
  
    <p>
      <input type="submit" value="Create"/>
    </p>
  </fieldset>
</form>