Skip to content

Commit

Permalink
Merge pull request #66 from github/use-a-more-descriptive-examplar-na…
Browse files Browse the repository at this point in the history
…me-for-example-fields

use a more descriptive examplar name for example fields
  • Loading branch information
keithamus authored Jun 23, 2023
2 parents 2141ef1 + 09d3c0d commit d39de49
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 d39de49

Please sign in to comment.