aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorEvan Winslow <evan@elgg.org>2011-05-19 16:19:46 -0700
committerEvan Winslow <evan@elgg.org>2011-05-19 16:19:46 -0700
commiteba13eb88fb8d16d94c93c113e7c136c7559881b (patch)
tree41b90d224763d1afe13190b6e7e48c433a822d55 /views
parent0faef2c4468f70be1819a6f62c60ab5cbd6c5cbd (diff)
downloadelgg-eba13eb88fb8d16d94c93c113e7c136c7559881b.tar.gz
elgg-eba13eb88fb8d16d94c93c113e7c136c7559881b.tar.bz2
Deleted some unnecessary inputs, added theme previews for all new inputs
Diffstat (limited to 'views')
-rw-r--r--views/default/html5/theme_preview/forms/inputs.php101
-rw-r--r--views/default/input/email.php12
-rw-r--r--views/default/input/url.php13
3 files changed, 101 insertions, 25 deletions
diff --git a/views/default/html5/theme_preview/forms/inputs.php b/views/default/html5/theme_preview/forms/inputs.php
new file mode 100644
index 000000000..de38dc71c
--- /dev/null
+++ b/views/default/html5/theme_preview/forms/inputs.php
@@ -0,0 +1,101 @@
+<form action="#">
+ <fieldset>
+ <legend>HTML5 Inputs</legend>
+ <div>
+ <label for="color">Color input (.elgg-input-color):</label>
+ <?php echo elgg_view('input/color', array(
+ 'name' => 'color',
+ 'id' => 'color',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="datetime-local">Local datetime input (.elgg-input-datetime-local):</label>
+ <?php echo elgg_view('input/datetime-local', array(
+ 'name' => 'datetime-local',
+ 'id' => 'datetime-local',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="datetime">Datetime input (.elgg-input-datetime):</label><br />
+ <?php echo elgg_view('input/datetime', array(
+ 'name' => 'datetime',
+ 'id' => 'datetime',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="email">Email input (.elgg-input-email):</label><br />
+ <?php echo elgg_view('input/email', array(
+ 'name' => 'email',
+ 'id' => 'email',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="image">Image input (.elgg-input-image):</label><br />
+ <?php echo elgg_view('input/image', array(
+ 'name' => 'image',
+ 'id' => 'image',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="month">Month input (.elgg-input-month):</label><br />
+ <?php echo elgg_view('input/month', array(
+ 'name' => 'month',
+ 'id' => 'month',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="number">Number input (.elgg-input-number):</label>
+ <?php echo elgg_view('input/number', array(
+ 'name' => 'number',
+ 'id' => 'number',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="range">Range input (.elgg-input-range):</label>
+ <?php echo elgg_view('input/range', array(
+ 'name' => 'range',
+ 'id' => 'range',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="search">Tags input (.elgg-input-search):</label>
+ <?php echo elgg_view('input/search', array(
+ 'name' => 'search',
+ 'id' => 'search',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="tel">Telephone input (.elgg-input-tel):</label>
+ <?php echo elgg_view('input/tel', array(
+ 'name' => 'tel',
+ 'id' => 'tel',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="time">Time input (.elgg-input-time):</label>
+ <?php echo elgg_view('input/time', array(
+ 'name' => 'time',
+ 'id' => 'time',
+ ));
+ ?>
+ </div>
+ <div>
+ <label for="week">Week input (.elgg-input-week):</label>
+ <?php echo elgg_view('input/week', array(
+ 'name' => 'week',
+ 'id' => 'week',
+ ));
+ ?>
+ </div>
+ </fieldset>
+</form> \ No newline at end of file
diff --git a/views/default/input/email.php b/views/default/input/email.php
deleted file mode 100644
index de98d9c4f..000000000
--- a/views/default/input/email.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-$defaults = array(
- 'class' => 'elgg-input-email',
-);
-
-$vars = array_merge($defaults, $vars);
-
-$vars['type'] = 'email';
-
-?>
-
-<input <?php echo elgg_format_attributes($vars); ?> /> \ No newline at end of file
diff --git a/views/default/input/url.php b/views/default/input/url.php
deleted file mode 100644
index ed3cd08a2..000000000
--- a/views/default/input/url.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-$defaults = array(
- 'class' => 'elgg-input-url',
-);
-
-$vars = array_merge($defaults, $vars);
-
-$vars['type'] = 'url';
-
-?>
-
-<input <?php echo elgg_format_attributes($vars); ?> /> \ No newline at end of file