diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-23 00:30:17 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-23 00:30:17 +0000 |
commit | d4139ca10963001c830a72c0f70f2c2dd8edec57 (patch) | |
tree | d54a6124382dfd26922fe929672aec35d37f8ca6 /mod/developers/views/default/theme_preview/forms.php | |
parent | 027012acf87be84bee8e02b0c8080c6b4f1baecc (diff) | |
download | elgg-d4139ca10963001c830a72c0f70f2c2dd8edec57.tar.gz elgg-d4139ca10963001c830a72c0f70f2c2dd8edec57.tar.bz2 |
Fixes #3042: Theme preview navs now match css/elements/*. Also did a major cleanup of the presentation.
git-svn-id: http://code.elgg.org/elgg/trunk@9019 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/developers/views/default/theme_preview/forms.php')
-rw-r--r-- | mod/developers/views/default/theme_preview/forms.php | 361 |
1 files changed, 139 insertions, 222 deletions
diff --git a/mod/developers/views/default/theme_preview/forms.php b/mod/developers/views/default/theme_preview/forms.php index bf637d6f0..60183ead9 100644 --- a/mod/developers/views/default/theme_preview/forms.php +++ b/mod/developers/views/default/theme_preview/forms.php @@ -1,222 +1,139 @@ -<?php -/** - * Form CSS - */ - -$url = current_page_url(); - -$ipsum = elgg_view('developers/ipsum'); - -?> -<style> - td, th {padding: 5px;} -</style> -<div class="elgg-page mal"> - <?php echo elgg_view('theme_preview/header', $vars); ?> - <h2>Form</h2> - <form action="#"> - <fieldset> - <legend>Form legend</legend> - <div> - <label for="f1">Text input:</label> - <?php echo elgg_view('input/text', array( - 'name' => 'f1', - 'id' => 'f1', - 'value' => 'input text', - )); - ?> - </div> - <div> - <label for="f2">Password input:</label> - <?php echo elgg_view('input/password', array( - 'name' => 'f2', - 'id' => 'f2', - 'value' => 'password', - )); - ?> - </div> - <div> - <label for="f3">Radio input:</label><br /> - <?php echo elgg_view('input/radio', array( - 'name' => 'f3', - 'id' => 'f3', - 'options' => array('a' => 1, 'b' => 2), - )); - ?> - </div> - <div> - <label for="f4">Checkboxes input:</label><br /> - <?php echo elgg_view('input/checkboxes', array( - 'name' => 'f4', - 'id' => 'f4', - 'options' => array('a' => 1, 'b' => 2), - )); - ?> - </div> - <div> - <label for="f5">Dropdown input:</label><br /> - <?php echo elgg_view('input/dropdown', array( - 'name' => 'f5', - 'id' => 'f5', - 'options' => array('option 1', 'option 2'), - )); - ?> - </div> - <div> - <label for="f6">Access input:</label> - <?php echo elgg_view('input/access', array( - 'name' => 'f6', - 'id' => 'f6', - 'value' => ACCESS_PUBLIC, - )); - ?> - </div> - <div> - <label for="f7">File input:</label> - <?php echo elgg_view('input/file', array( - 'name' => 'f7', - 'id' => 'f7', - )); - ?> - </div> - <div> - <label for="f8">URL input:</label> - <?php echo elgg_view('input/url', array( - 'name' => 'f8', - 'id' => 'f8', - 'value' => 'http://elgg.org/', - )); - ?> - </div> - <div> - <label for="f9">Tags input:</label> - <?php echo elgg_view('input/tags', array( - 'name' => 'f9', - 'id' => 'f9', - 'value' => 'one, two, three', - )); - ?> - </div> - <div> - <label for="f10">Email input:</label> - <?php echo elgg_view('input/email', array( - 'name' => 'f10', - 'id' => 'f10', - 'value' => 'noone@elgg.org', - )); - ?> - </div> - <div> - <label for="f11">Autocomplete input:</label> - <?php echo elgg_view('input/autocomplete', array( - 'name' => 'f11', - 'id' => 'f11', - 'match_on' => 'users', - )); - ?> - </div> - <div> - <label for="f12">Date picker input:</label> - <?php echo elgg_view('input/datepicker', array( - 'name' => 'f12', - 'id' => 'f12', - )); - ?> - </div> - <div> - <label for="f13">User picker input:</label> - <?php echo elgg_view('input/userpicker', array( - 'name' => 'f13', - 'id' => 'f13', - )); - ?> - </div> - <div> - <label for="f14">Long text input:</label> - <?php echo elgg_view('input/longtext', array( - 'name' => 'f14', - 'id' => 'f14', - 'value' => $ipsum, - )); - ?> - </div> - <div> - <label for="f15">Plain text input:</label> - <?php echo elgg_view('input/plaintext', array( - 'name' => 'f15', - 'id' => 'f15', - 'value' => $ipsum, - )); - ?> - </div> - </fieldset> - </form> - - <div class="mtl"> - <h2>Buttons</h2> - <table> - <thead> - <tr> - <th>Anchors</th> - <th>Default</th> - <th>Hover</th> - <th>Focus</th> - <th>Active</th> - <th>Disabled</th> - <th>Selected</th> - </tr> - </thead> - <tbody> - <tr> - <th>Default</th> - <td><a href="#" class="elgg-button">anchor</a></td> - <td><a href="#" class="elgg-button elgg-state-hover">anchor</a></td> - <td><a href="#" class="elgg-button elgg-state-focus">anchor</a></td> - <td><a href="#" class="elgg-button elgg-state-active">anchor</a></td> - <td><a href="#" class="elgg-button elgg-state-disabled">anchor</a></td> - <td><a href="#" class="elgg-button elgg-state-selected">anchor</a></td> - </tr> - <tr> - <th>Action</th> - <td><a href="#" class="elgg-button elgg-button-action">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-action elgg-state-hover">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-action elgg-state-focus">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-action elgg-state-active">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-action elgg-state-disabled">anchor</a></td> - </tr> - <tr> - <th>Cancel</th> - <td><a href="#" class="elgg-button elgg-button-cancel">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-hover">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-focus">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-active">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-cancel elgg-state-disabled">anchor</a></td> - </tr> - <tr> - <th>Submit</th> - <td><a href="#" class="elgg-button elgg-button-submit">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-submit elgg-state-hover">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-submit elgg-state-focus">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-submit elgg-state-active">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-submit elgg-state-disabled">anchor</a></td> - </tr> - <tr> - <th>Special</th> - <td><a href="#" class="elgg-button elgg-button-special">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-special elgg-state-hover">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-special elgg-state-focus">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-special elgg-state-active">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-special elgg-state-disabled">anchor</a></td> - </tr> - <tr> - <th>Delete</th> - <td><a href="#" class="elgg-button elgg-button-delete">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-delete elgg-state-hover">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-delete elgg-state-focus">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-delete elgg-state-active">anchor</a></td> - <td><a href="#" class="elgg-button elgg-button-delete elgg-state-disabled">anchor</a></td> - </tr> - </tbody> - </table> - </div> -</div> +<form action="#"> + <fieldset> + <legend>Fieldset Legend</legend> + <div> + <label for="f1">Text input (.elgg-input-text):</label> + <?php echo elgg_view('input/text', array( + 'name' => 'f1', + 'id' => 'f1', + 'value' => 'input text', + )); + ?> + </div> + <div> + <label for="f2">Password input (.elgg-input-password):</label> + <?php echo elgg_view('input/password', array( + 'name' => 'f2', + 'id' => 'f2', + 'value' => 'password', + )); + ?> + </div> + <div> + <label for="f3">Radio input (.elgg-input-radio):</label><br /> + <?php echo elgg_view('input/radio', array( + 'name' => 'f3', + 'id' => 'f3', + 'options' => array('a' => 1, 'b' => 2), + )); + ?> + </div> + <div> + <label for="f4">Checkboxes input (.elgg-input-checkboxes):</label><br /> + <?php echo elgg_view('input/checkboxes', array( + 'name' => 'f4', + 'id' => 'f4', + 'options' => array('a (.elgg-input-checkbox)' => 1, 'b (.elgg-input-checkbox)' => 2), + )); + ?> + </div> + <div> + <label for="f5">Dropdown input (.elgg-input-dropdown):</label><br /> + <?php echo elgg_view('input/dropdown', array( + 'name' => 'f5', + 'id' => 'f5', + 'options' => array('option 1', 'option 2'), + )); + ?> + </div> + <div> + <label for="f6">Access input (.elgg-input-access):</label><br /> + <?php echo elgg_view('input/access', array( + 'name' => 'f6', + 'id' => 'f6', + 'value' => ACCESS_PUBLIC, + )); + ?> + </div> + <div> + <label for="f7">File input (.elgg-input-file):</label> + <?php echo elgg_view('input/file', array( + 'name' => 'f7', + 'id' => 'f7', + )); + ?> + </div> + <div> + <label for="f8">URL input (.elgg-input-url):</label> + <?php echo elgg_view('input/url', array( + 'name' => 'f8', + 'id' => 'f8', + 'value' => 'http://elgg.org/', + )); + ?> + </div> + <div> + <label for="f9">Tags input (.elgg-input-tags):</label> + <?php echo elgg_view('input/tags', array( + 'name' => 'f9', + 'id' => 'f9', + 'value' => 'one, two, three', + )); + ?> + </div> + <div> + <label for="f10">Email input (.elgg-input-email):</label> + <?php echo elgg_view('input/email', array( + 'name' => 'f10', + 'id' => 'f10', + 'value' => 'noone@elgg.org', + )); + ?> + </div> + <div> + <label for="f11">Autocomplete input (.elgg-input-autocomplete):</label> + <?php echo elgg_view('input/autocomplete', array( + 'name' => 'f11', + 'id' => 'f11', + 'match_on' => 'users', + )); + ?> + </div> + <div> + <label for="f12">Date input (.elgg-input-date):</label> + <?php echo elgg_view('input/date', array( + 'name' => 'f12', + 'id' => 'f12', + 'value' => '12/12/2012' + )); + ?> + </div> + <div> + <label for="f13">User picker input (.elgg-user-picker):</label> + <?php echo elgg_view('input/userpicker', array( + 'name' => 'f13', + 'id' => 'f13', + 'value' => array(new ElggUser(), new ElggUser(), new ElggUser()), + )); + ?> + </div> + <div> + <label for="f15">Plain textarea input (.elgg-input-plaintext):</label> + <?php echo elgg_view('input/plaintext', array( + 'name' => 'f15', + 'id' => 'f15', + 'value' => $ipsum, + )); + ?> + </div> + <div> + <label for="f14">Long textarea input (.elgg-input-longtext):</label> + <?php echo elgg_view('input/longtext', array( + 'name' => 'f14', + 'id' => 'f14', + 'value' => $ipsum, + )); + ?> + </div> + </fieldset> +</form>
\ No newline at end of file |