Last active
April 12, 2017 12:25
-
-
Save hayzem/10059d8b1799cd635a114519edf6e4db to your computer and use it in GitHub Desktop.
Wordpress Admin Page UI Form Elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrap"> | |
<?php screen_icon(); ?> | |
<h2><?php esc_html_e( 'Forms' ); ?></h2> | |
<form> | |
<table class="form-table"> | |
<tbody> | |
<tr> | |
<th> | |
<label for="input-text">Text input</label> | |
</th> | |
<td> | |
<input type="text" name="input-text" placeholder="Text" /><br /> | |
<pre> | |
<input type="text" name="input-text" placeholder="Text" /> | |
</pre> | |
</td> | |
</tr> | |
<tr> | |
<th> | |
<label for="input-text">Select</label> | |
</th> | |
<td> | |
<select name="select"> | |
<option>Option 1</option> | |
<option>Option 2</option> | |
<option>Option 3</option> | |
</select> | |
<pre> | |
<select name="select"> | |
<option>Option 1</option> | |
<option>Option 2</option> | |
<option>Option 3</option> | |
</select> | |
</pre> | |
</td> | |
</tr> | |
<tr> | |
<th> | |
<label for="multi-select">Multiple Select</label> | |
</th> | |
<td> | |
<select name="multi-select" multiple="multiple"> | |
<option>Option 1</option> | |
<option>Option 2</option> | |
<option>Option 3</option> | |
<option>Option 4</option> | |
<option>Option 5</option> | |
<option>Option 6</option> | |
</select> | |
<pre> | |
<select name="multi-select" multiple="multiple"> | |
<option>Option 1</option> | |
<option>Option 2</option> | |
<option>Option 3</option> | |
<option>Option 4</option> | |
<option>Option 5</option> | |
<option>Option 6</option> | |
</select> | |
</pre> | |
</td> | |
</tr> | |
<tr> | |
<th> | |
<label for="radio-buttons">Radio Buttons</label> | |
</th> | |
<td> | |
<input type="radio" name="radio-buttons" value="option-1"/> Option 1 <br /> | |
<input type="radio" name="radio-buttons" value="option-2"/> Option 2 <br /> | |
<input type="radio" name="radio-buttons" value="option-3"/> Option 3 <br /> | |
<input type="radio" name="radio-buttons" value="option-4"/> Option 4 <br /> | |
<pre> | |
<input type="radio" name="radio-buttons" value="option-1" /> Option 1 | |
<input type="radio" name="radio-buttons" value="option-2" /> Option 2 | |
<input type="radio" name="radio-buttons" value="option-3" /> Option 3 | |
<input type="radio" name="radio-buttons" value="option-4" /> Option 4 | |
</pre> | |
</td> | |
</tr> | |
<tr> | |
<th> | |
<label for="input-checkbox">Checkbox</label> | |
</th> | |
<td> | |
<input type="checkbox" name="input-checkbox" /> Option 1<br /> | |
<pre> | |
<input type="checkbox" name="input-checkbox"/> Option 1 | |
</pre> | |
</td> | |
</tr> | |
<tr> | |
<th> | |
<label for="checkbox-array">Checkbox Array</label> | |
</th> | |
<td> | |
<input type='checkbox' name='checkbox-array[]' value='option-1'> Option 1<br /> | |
<input type='checkbox' name='checkbox-array[]' value='option-2'> Option 2<br /> | |
<input type='checkbox' name='checkbox-array[]' value='option-3'> Option 3<br /> | |
<pre> | |
<input type='checkbox' name='checkbox-array[]' value='option-1'> Option 1 | |
<input type='checkbox' name='checkbox-array[]' value='option-2'> Option 2 | |
<input type='checkbox' name='checkbox-array[]' value='option-3'> Option 3 | |
</pre> | |
</td> | |
</tr> | |
<tr> | |
<th> | |
<label for="input-fieldset">Fieldset and <br />HTML5 Elements</label> | |
</th> | |
<td> | |
<fieldset> | |
<legend>Legend</legend> | |
<input type="email" placeholder="Email" /> Email<br /> | |
<input type="search" placeholder="Search" /> Search<br /> | |
<input type="tel" placeholder="Telephone" /> Telephone<br /> | |
<input type="text" placeholder="Text" /> Text<br /> | |
<input type="url" placeholder="URL" /> URL<br /> | |
</fieldset> | |
<pre> | |
<fieldset> | |
<legend>Legend</legend> | |
<input type="email" placeholder="Email" /> Email | |
<input type="search" placeholder="Search" /> Search | |
<input type="tel" placeholder="Telephone" /> Telephone | |
<input type="text" placeholder="text" /> Text | |
<input type="url" placeholder="URL" /> URL | |
</fieldset> | |
</pre> | |
</td> | |
</tr> | |
<tr> | |
<th> | |
<label for="input-time">Time Elements</label> | |
</th> | |
<td> | |
Date: <input name="input-date" type="date" /><br /> | |
Month: <input name="input-month" type="month" /> <br /> | |
Week: <input name="input-week" type="week" /><br /> | |
Time: <input name="input-time" type="time" /><br /> | |
Local Date and Time: <input name="input-datetime-local" type="datetime-local" /> | |
<pre> | |
Date: <input name="input-date" type="date" /> | |
Month: <input name="input-month" type="month" /> | |
Week: <input name="input-week" type="week" /> | |
Time: <input name="input-time" type="time" /> | |
Local Date and Time: <input name="input-datetime-local" type="datetime-local" /> | |
</pre> | |
</td> | |
</tr> | |
<tr> | |
<th> | |
<label for="input-time">Other Elements</label> | |
</th> | |
<td> | |
Number: <input name="input-number" type="number" min="0" max="20" /><br /> | |
Range: <input name="input-range" type="range" /><br /> | |
Color: <input name="input-color" type="color" /><br /> | |
<pre> | |
Number: <input name="input-number" type="number" min="0" max="20" /> | |
Range: <input name="input-range" type="range" /> | |
Color: <input name="input-color" type="color" /> | |
</pre> | |
</td> | |
</tr> | |
<tr> | |
<th> | |
<label for="input-time">Buttons</label> | |
</th> | |
<td> | |
<input type="submit" value="Submit Input" class="button" /><br /><br /> | |
<input type="button" value="Secondary Button" class="button-secondary" /><br /><br /> | |
<input type="button" value="Primary Button" class="button-primary" /> | |
<pre> | |
<input type="submit" value="Submit Input" class="button" /> | |
<input type="button" value="Secondary Button" class="button-secondary" /> | |
<input type="button" value="Primary Button" class="button-primary" /> | |
</pre> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</form> | |
</div><!-- .wrap --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment