summaryrefslogtreecommitdiffstats
path: root/application/views/user/login.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-07-13 23:49:20 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-07-13 23:49:20 +0200
commit6b69fa8cc2c1ca138b949d7b3b2e638f69ee1afc (patch)
tree5f5525a6b753f20d363b7625f87af9021f72efc2 /application/views/user/login.php
parent7d745f0577ad7e660f2836729682c43ec4b39aeb (diff)
Switch to bootstrap div form code instead of tables
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/user/login.php')
-rw-r--r--application/views/user/login.php32
1 files changed, 20 insertions, 12 deletions
diff --git a/application/views/user/login.php b/application/views/user/login.php
index 21264a404..761965c94 100644
--- a/application/views/user/login.php
+++ b/application/views/user/login.php
@@ -3,16 +3,24 @@ if (isset($login_error)) { ?>
<div class="alert alert-error">The entered credentials are invalid.</div>
<?php } ?>
-<?php echo form_open('user/login'); ?>
- <table>
- <tr>
- <td>Username:</td>
- <td><input type="text" name="username" /></td>
- </tr>
- <tr>
- <td>Password:</td>
- <td><input type="password" name="password" /></td>
- </tr>
- </table>
- <input type="submit" class="btn btn-primary" value="Login" name="process" />
+<?php echo form_open('user/login', array("class" => "form-horizontal")); ?>
+ <div class="control-group">
+ <label class="control-label" for="inputUsername">Username</label>
+ <div class="controls">
+ <input type="text" id="inputUsername" name="username" placeholder="Username">
+ </div>
+ </div>
+
+ <div class="control-group">
+ <label class="control-label" for="inputPassword">Password</label>
+ <div class="controls">
+ <input type="password" id="inputPassword" name="password" placeholder="Password">
+ </div>
+ </div>
+
+ <div class="control-group">
+ <div class="controls">
+ <button type="submit" class="btn btn-primary" name="process">Login</button>
+ </div>
+ </div>
</form>