Skip to content

Commit aa99e2e

Browse files
committed
maint(pat validation): Add modal use case to demo.
1 parent 4529761 commit aa99e2e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/pat/validation/index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,34 @@
249249
</fieldset>
250250
</fieldset>
251251
</form>
252+
253+
<div class="pat-modal">
254+
<form class="pat-validation vertical pat-inject"
255+
action="."
256+
method="get"
257+
data-pat-validation="disable-selector: [type=submit], button:not([type=button])"
258+
>
259+
<fieldset class="horizontal">
260+
<label>First of all!
261+
<input autocomplete="off"
262+
name="first"
263+
required
264+
type="text"
265+
/></label>
266+
267+
<label>Optional subtext
268+
<input autocomplete="off"
269+
name="optional"
270+
type="text"
271+
/></label>
272+
273+
</fieldset>
274+
<fieldset class="buttons">
275+
<button class="close-panel" type="submit">Submit</button>
276+
<button class="close-panel" type="button" formnovalidate>Cancel</button>
277+
</fieldset>
278+
</form>
279+
</div>
280+
252281
</body>
253282
</html>

0 commit comments

Comments
 (0)