Skip to content

Commit

Permalink
Complete sample code - add atrribute required (#995)
Browse files Browse the repository at this point in the history
Hi, the sample code of rendered html by default form renderer doesn't match the reality of how the renderer actually renders the html. So I propose to add the attribute required of input element.
  • Loading branch information
mildabre authored and dg committed Apr 7, 2023
1 parent eca5761 commit 57aca8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions forms/cs/rendering.texy
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,13 @@ Pokud nenastavíme vlastní renderer, bude použit výchozí vykreslovač [api:N
<tr class="required">
<th><label class="required" for="frm-name">Jméno:</label></th>

<td><input type="text" class="text" name="name" id="frm-name" value=""></td>
<td><input type="text" class="text" name="name" id="frm-name" required value=""></td>
</tr>

<tr class="required">
<th><label class="required" for="frm-age">Věk:</label></th>

<td><input type="text" class="text" name="age" id="frm-age" value=""></td>
<td><input type="text" class="text" name="age" id="frm-age" required value=""></td>
</tr>

<tr>
Expand Down Expand Up @@ -356,12 +356,12 @@ Výsledkem je tento HTML kód:
<dl>
<dt><label class="required" for="frm-name">Jméno:</label></dt>

<dd><input type="text" class="text" name="name" id="frm-name" value=""></dd>
<dd><input type="text" class="text" name="name" id="frm-name" required value=""></dd>


<dt><label class="required" for="frm-age">Věk:</label></dt>

<dd><input type="text" class="text" name="age" id="frm-age" value=""></dd>
<dd><input type="text" class="text" name="age" id="frm-age" required value=""></dd>


<dt><label>Pohlaví:</label></dt>
Expand Down

0 comments on commit 57aca8c

Please sign in to comment.