Skip to content

Commit

Permalink
use a more descriptive examplar name for example fields
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Jun 23, 2023
1 parent acb775c commit 09d3c0d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ <h1>auto-check-element</h1>
<h2>Simple form</h2>
<p>Input 422 for an error response.</p>
<form>
<label for="simple-field">Input</label>
<p>All fields marked with * are required</p>

<label for="simple-field">Desired username*:</label>
<auto-check csrf="foo" src="/demo" required>
<input id="simple-field" autofocus name="foo" required />
<code class="state"></code>
Expand All @@ -25,7 +27,9 @@ <h2>Simple form</h2>
<h2>Form that has custom validity messages</h2>
<p>Input 422 for an error response.</p>
<form id="custom">
<label for="custom-field">Input</label>
<p>All fields marked with * are required</p>

<label for="custom-field">Desired username*:</label>
<auto-check csrf="foo" src="/demo" required>
<input id="custom-field" autofocus class="json" name="foo" required />
<code class="state"></code>
Expand Down

0 comments on commit 09d3c0d

Please sign in to comment.