diff options
author | NOYB <Al_Stu@Frontier.com> | 2015-12-16 20:03:54 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2015-12-16 20:03:54 -0800 |
commit | ef955de61c1b71e9a08ebbdee8424228f2ca8b49 (patch) | |
tree | 4d422a74dec4d0467afc19867f89658d2e6dd4b6 | |
parent | 2063a534e653042f7d4cf0dc667f7a2ee621b0ef (diff) | |
download | pfsense-ef955de61c1b71e9a08ebbdee8424228f2ca8b49.zip pfsense-ef955de61c1b71e9a08ebbdee8424228f2ca8b49.tar.gz |
HTML Compliance - Picture Widget
In HTML 4.01, the width and height could be defined in pixels or in % of the containing element. In HTML5, the value must be in pixels. Use css for specifying in %.
The for attribute of the label element must refer to a non-hidden form control. Add id attribute.
-rw-r--r-- | src/usr/local/www/widgets/widgets/picture.widget.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/widgets/widgets/picture.widget.php b/src/usr/local/www/widgets/widgets/picture.widget.php index 6b19ab6..aedeacd 100644 --- a/src/usr/local/www/widgets/widgets/picture.widget.php +++ b/src/usr/local/www/widgets/widgets/picture.widget.php @@ -71,7 +71,7 @@ if ($_POST) { ?> <a href="/widgets/widgets/picture.widget.php?getpic=true" target="_blank"> - <img width="100%" height="100%" src="/widgets/widgets/picture.widget.php?getpic=true" alt="picture" /> + <img style="width:100%; height:100%" src="/widgets/widgets/picture.widget.php?getpic=true" alt="picture" /> </a> <!-- close the body we're wrapped in and add a configuration-panel --> @@ -79,6 +79,6 @@ if ($_POST) { <form action="/widgets/widgets/picture.widget.php" method="post" enctype="multipart/form-data" class="form-inline"> <label for="pictfile">New picture: </label> - <input name="pictfile" type="file" class="form-control" /> + <input id="pictfile" name="pictfile" type="file" class="form-control" /> <button type="submit" class="btn btn-default">Upload</button> </form> |