summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorMarkus Cisler <m@kuchen.io>2013-09-05 18:40:06 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-22 16:30:56 +0200
commit36a1bb6770cb76ec7baf4e215c4379b070c60639 (patch)
tree9e8ec3bf58b1e9bd4b349a75cb2e5e369d406421 /application/views
parent3ec93bf546c4cfff82f1fb34eeae1f18319c59c1 (diff)
almost migrated to bootstrap3
Diffstat (limited to 'application/views')
-rw-r--r--application/views/file/file_info.php2
-rw-r--r--application/views/file/html_header.php34
-rw-r--r--application/views/file/nav_history.php2
-rw-r--r--application/views/file/upload_form.php26
-rw-r--r--application/views/footer.php2
-rw-r--r--application/views/header.php40
-rw-r--r--application/views/user/apikeys.php6
-rw-r--r--application/views/user/hash_password.php29
-rw-r--r--application/views/user/invite.php2
-rw-r--r--application/views/user/login.php14
-rw-r--r--application/views/user/nav.php8
-rw-r--r--application/views/user/profile.php46
-rw-r--r--application/views/user/register.php46
-rw-r--r--application/views/user/reset_password_form.php2
-rw-r--r--application/views/user/reset_password_username_form.php22
15 files changed, 159 insertions, 122 deletions
diff --git a/application/views/file/file_info.php b/application/views/file/file_info.php
index 82a3e4f81..dedc35fea 100644
--- a/application/views/file/file_info.php
+++ b/application/views/file/file_info.php
@@ -1,6 +1,6 @@
<div class="center">
<?php if($filedata): ?>
- <table style="margin: auto">
+ <table class="table" style="margin: auto">
<tr>
<td class="title">ID</td>
<td class="text"><a href="<?php echo site_url($id); ?>/"><?php echo $id; ?></a></td>
diff --git a/application/views/file/html_header.php b/application/views/file/html_header.php
index c40c35bca..fe9644744 100644
--- a/application/views/file/html_header.php
+++ b/application/views/file/html_header.php
@@ -12,30 +12,32 @@ include(FCPATH."application/views/header.php"); ?>
</script>
<?php if (isset($error_message)) { ?>
- <div class="alert alert-block alert-error" style="text-align: center">
+ <div class="container">
+ <div class="alert alert-danger" style="text-align: center">
<?php echo $error_message; ?>
</div>
+ </div>
<?php } ?>
<div class="container paste-container">
<div style="border:1px solid #ccc;">
- <div class="navbar navbar-static-top">
+ <div class="navbar navbar-default navbar-static-top navbar-paste">
<div class="navbar-inner" style="box-shadow: none;">
- <ul class="nav">
- <li><a href="#file-info" class="brand" data-toggle="modal"><?php echo $title ?></a></li>
- <li class="divider-vertical"></li>
+ <ul class="nav navbar-nav">
+ <li><a href="#file-info" class="navbar-brand" data-toggle="modal"><?php echo $title ?></a></li>
+ <li class="divider"></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" id="language-toggle">
Language: <?php echo htmlspecialchars($current_highlight); ?>
<b class="caret"></b>
</a>
- <div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">
+ <div class="dropdown-menu" style="padding: 15px;">
<form>
- <input type="text" id="language" placeholder="Language" class="input-medium">
+ <input type="text" id="language" placeholder="Language" class="form-control">
</form>
</div>
</li>
- <li class="divider-vertical"></li>
+ <li class="divider"></li>
<li>
<a href="#file-info" role="button" data-toggle="modal">Info</a>
<div id="file-info" class="modal hide fade">
@@ -72,21 +74,21 @@ include(FCPATH."application/views/header.php"); ?>
<input type="hidden" name="ids[<?php echo $id; ?>]" value="<?php echo $id; ?>">
<button class="btn btn-danger pull-left" aria-hidden="true">Delete</button>
</form>
- <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
+ <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
</li>
- <li class="divider-vertical"></li>
+ <li class="divider"></li>
<li><a href="<?php echo site_url('file/index?repaste='.$id); ?>" role="button">Repaste</a></li>
</ul>
- <div class="btn-group pull-right" style="margin-top: 7px; margin-right:-10px;">
- <a id="linewrap" class="btn btn-small" rel="tooltip" title="Toggle wrapping of long lines">Linewrap</a>
- <a href="<?php echo site_url($id."/plain") ?>" class="btn btn-small" rel="tooltip" title="View as plain text">Plain</a>
- <a href="<?php echo site_url($id) ?>" class="btn btn-small" rel="tooltip" title="View as raw file (org. mime type)">Raw</a>
+ <div class="btn-group pull-right" style="margin-top: 7px; margin-right: 10px;">
+ <a id="linewrap" class="btn btn-default" rel="tooltip" title="Toggle wrapping of long lines">Linewrap</a>
+ <a href="<?php echo site_url($id."/plain") ?>" class="btn btn-default" rel="tooltip" title="View as plain text">Plain</a>
+ <a href="<?php echo site_url($id) ?>" class="btn btn-default" rel="tooltip" title="View as raw file (org. mime type)">Raw</a>
<?php if ($current_highlight === 'rmd') { ?>
- <a href="<?php echo site_url($id)."/" ?>" class="btn btn-small" rel="tooltip" title="Render as Code">Code</a>
+ <a href="<?php echo site_url($id)."/" ?>" class="btn btn-default" rel="tooltip" title="Render as Code">Code</a>
<?php } else { ?>
- <a href="<?php echo site_url($id."/rmd") ?>" class="btn btn-small" rel="tooltip" title="Render as Markdown">Markdown</a>
+ <a href="<?php echo site_url($id."/rmd") ?>" class="btn btn-default" rel="tooltip" title="Render as Markdown">Markdown</a>
<?php } ?>
</div>
</div>
diff --git a/application/views/file/nav_history.php b/application/views/file/nav_history.php
index 1a3e55c0b..a98d7a4ed 100644
--- a/application/views/file/nav_history.php
+++ b/application/views/file/nav_history.php
@@ -1,4 +1,4 @@
-<ul class="nav nav-tabs">
+<ul class="nav nav-pills nav-history">
<?php
$nav = array(
"List" => "file/upload_history",
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php
index 21a2cc4e6..782ba48c7 100644
--- a/application/views/file/upload_form.php
+++ b/application/views/file/upload_form.php
@@ -1,10 +1,10 @@
<?php if (user_logged_in()) { ?>
<div class="well">
- <div class="row-fluid">
- <div class="span12 text-upload-form">
+ <div class="row">
+ <div class="col-lg-12 text-upload-form">
<?php echo form_open_multipart('file/do_paste'); ?>
<h2>Text paste</h2>
- <textarea name="content" class="text-upload span12"><?php
+ <textarea name="content" class="col-lg-12 form-control" rows="15"><?php
if (isset($textarea_content)) {
echo $textarea_content;
}
@@ -13,15 +13,15 @@
</form>
</div>
</div>
- <div class="row-fluid">
- <div class="span6">
+ <div class="row">
+ <div class="col-lg-6">
<?php echo form_open_multipart('file/do_upload'); ?>
<h2>File upload</h2>
<input class="file-upload" type="file" name="file[]" multiple="multiple"><br>
<button type="submit" id="upload_button" class="btn btn-primary">Upload it!</button>
</form>
</div>
- <div class="span6 alert alert-block alert-info">
+ <div class="col-lg-6 alert alert-info">
<h4 class="alert-heading">Notice!</h4>
<p>
Uploads/pastes are <?php if ($upload_max_age > 0) {
@@ -45,17 +45,17 @@
</script>
<?php } else { ?>
- <?php echo form_open('user/login'); ?>
- <input type="text" name="username" placeholder="Username" autofocus />
- <input type="password" name="password" placeholder="Password" />
- <input type="submit" class="btn btn-primary" value="Login" name="process" style="margin-bottom: 9px" />
+ <?php echo form_open('user/login', array('class' => 'form-inline')); ?>
+ <input type="text" name="username" placeholder="Username" autofocus class="form-control inline-input"/>
+ <input type="password" name="password" placeholder="Password" class="form-control inline-input"/>
+ <input type="submit" class="btn btn-primary" value="Login" name="process" />
<?php if(auth_driver_function_implemented("can_reset_password")) { ?>
- <p style="display: inline"><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
+ <p class="help-block"><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
<?php } ?>
</form>
<?php } ?>
<div class="row">
- <div class="span6">
+ <div class="col-lg-6">
<div class="page-header"><h1>Features</h1></div>
<p>For shell uploading/pasting and download information for the client go to <a href="<?php echo site_url("file/client"); ?>"><?php echo site_url("file/client"); ?></a></p>
<p>You can use the <?php echo anchor("file/upload_history", "history"); ?> to find old uploads.</p>
@@ -72,7 +72,7 @@
</dl>
<p>If your upload is not detected as text, only <b>/&lt;ID&gt;/qr</b>, <b>/&lt;ID&gt;/plain</b> and <b>/&lt;ID&gt;/info</b> will work as above and all others will simply return the file with the detected MIME type.</p>
</div>
- <div class="span6">
+ <div class="col-lg-6">
<div class="page-header"><h1>Information</h1></div>
<p>This website's primary goal is aiding developers, power users, students and alike in solving problems, debugging software, sharing their configuration, etc. It is not intended to distribute confidential or harmful information, scripts or software.</p>
<?php if(auth_driver_function_implemented("can_register_new_users")) { ?>
diff --git a/application/views/footer.php b/application/views/footer.php
index a61e690cc..e748cd4e3 100644
--- a/application/views/footer.php
+++ b/application/views/footer.php
@@ -26,7 +26,7 @@ if ($CI->config->item("environment") == "development" && property_exists($CI, "e
?>
<?php echo include_js("/data/js/jquery-2.0.3.min.js"); ?>
<?php echo include_js("/data/js/jquery-ui-1.10.3.custom.min.js"); ?>
-<?php echo include_js("/data/js/bootstrap-2.3.2.min.js"); ?>
+<?php echo include_js("/data/js/bootstrap.min.js"); ?>
<?php echo include_js("/data/js/script.js"); ?>
<?php echo include_registered_js(); ?>
</body>
diff --git a/application/views/header.php b/application/views/header.php
index ba6d6ae9d..c1844d674 100644
--- a/application/views/header.php
+++ b/application/views/header.php
@@ -14,7 +14,7 @@ if (is_cli_client() && !isset($force_full_html)) {
<meta name="author" content="">
<link href="<?php echo link_with_mtime("/data/css/ui-lightness/jquery-ui-1.10.3.custom.min.css"); ?>" rel="stylesheet">
- <link href="<?php echo link_with_mtime("/data/css/bootstrap-2.3.2.min.css"); ?>" rel="stylesheet">
+ <link href="<?php echo link_with_mtime("/data/css/bootstrap.min.css"); ?>" rel="stylesheet">
<link href="<?php echo link_with_mtime("/data/css/style.css"); ?>" rel="stylesheet">
<?php
if (file_exists(FCPATH."data/local/style.css")) {
@@ -33,9 +33,15 @@ if (is_cli_client() && !isset($force_full_html)) {
include FCPATH."data/local/header.inc.php";
}?>
<div class="navbar navbar-fixed-top navbar-inverse">
- <div class="navbar-inner">
+ <div class="navbar-header">
<div class="container">
- <a class="brand" href="<?php echo site_url(); ?>"><?php
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="<?php echo site_url(); ?>"><?php
if (file_exists(FCPATH."data/local/logo.svg")) {
echo '<img src="'.link_with_mtime("/data/local/logo.svg").'" style="height: 20px"> FileBin';
} else {
@@ -43,34 +49,37 @@ if (is_cli_client() && !isset($force_full_html)) {
}
?>
</a>
+ </div>
+ </div>
<?php if(!isset($GLOBALS["is_error_page"])) { ?>
- <ul class="nav pull-right">
+ <div class="collapse navbar-collapse navbar-ex1-collapse">
+ <ul class="nav navbar-nav navbar-right">
<?php if(user_logged_in()) { ?>
- <li><a href="<?php echo site_url("/user/logout"); ?>">Logout</a></li>
+ <li><a class="navbar-link" href="<?php echo site_url("/user/logout"); ?>">Logout</a></li>
<?php } else { ?>
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Login <b class="caret"></b></a>
- <div class="dropdown-menu" style="padding: 15px;">
+ <div class="dropdown-menu" style="padding: 5px;">
<?php if(auth_driver_function_implemented("can_reset_password")) { ?>
<p><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
<?php } ?>
- <?php echo form_open("user/login"); ?>
- <input type="text" name="username" placeholder="Username" class="input-medium">
- <input type="password" name="password" placeholder="Password" class="input-medium">
- <button type="submit" name="process" class="btn btn-primary pull-right">Login</button>
+ <?php echo form_open("user/login", array("class" => "form-signin")); ?>
+ <input type="text" name="username" placeholder="Username" class="form-control">
+ <input type="password" name="password" placeholder="Password" class="form-control">
+ <button type="submit" name="process" class="btn btn-default btn-block">Login</button>
</form>
</div>
</li>
<?php } ?>
</ul>
<?php }; ?>
- <ul class="nav">
+ <ul class="nav navbar-nav">
<?php if(user_logged_in()) { ?>
- <li><a href="<?php echo site_url("file/index") ?>"><i class="icon-pencil icon-white"></i> New</a></li>
- <li><a href="<?php echo site_url("file/upload_history") ?>"><i class="icon-book icon-white"></i> History</a></li>
+ <li><a href="<?php echo site_url("file/index") ?>"><span class="glyphicon glyphicon-pencil"></span> New</a></li>
+ <li><a href="<?php echo site_url("file/upload_history") ?>"><span class="glyphicon glyphicon-book"></span> History</a></li>
<li class="dropdown">
<a href="<?php echo site_url("user/index"); ?>" class="dropdown-toggle" data-toggle="dropdown">
- <i class="icon-user icon-white"></i> Account <b class="caret"></b>
+ <span class="glyphicon glyphicon-user"></span> Account <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<?php include "user/nav.php"; ?>
@@ -78,7 +87,6 @@ if (is_cli_client() && !isset($force_full_html)) {
</li>
<?php } ?>
</ul>
- </div>
</div>
</div>
<div id="navbar-height"></div>
@@ -87,7 +95,7 @@ if (is_cli_client() && !isset($force_full_html)) {
<?php
if (isset($alerts)) {
foreach ($alerts as $alert) { ?>
- <div class="alert alert-block alert-<?php echo $alert["type"]; ?>" style="text-align: center">
+ <div class="alert alert-dismissable alert-<?php echo $alert["type"]; ?>" style="text-align: center">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo $alert["message"]; ?>
</div>
diff --git a/application/views/user/apikeys.php b/application/views/user/apikeys.php
index aa268d678..ddc1d56db 100644
--- a/application/views/user/apikeys.php
+++ b/application/views/user/apikeys.php
@@ -20,7 +20,7 @@
<td>
<?php echo form_open("user/delete_apikey", array("style" => "margin-bottom: 0")); ?>
<?php echo form_hidden("key", $item["key"]); ?>
- <button class="btn btn-danger btn-mini" type="submit">Delete</input>
+ <button class="btn btn-danger btn-xs" type="submit">Delete</input>
</form>
</td>
</tr>
@@ -29,8 +29,8 @@
</table>
<p>
- <?php echo form_open('user/create_apikey', array("class" => "form-horizontal")); ?>
- <input type="text" name="comment" placeholder="Comment" />
+ <?php echo form_open('user/create_apikey', array("class" => "form-inline")); ?>
+ <input type="text" name="comment" placeholder="Comment" class="form-control" style="width: 200px;"/>
<input class="btn btn-primary" type="submit" value="Create a new key" name="process" />
</form>
</p>
diff --git a/application/views/user/hash_password.php b/application/views/user/hash_password.php
index d85d2810c..60df6e1c5 100644
--- a/application/views/user/hash_password.php
+++ b/application/views/user/hash_password.php
@@ -1,6 +1,6 @@
<?php
if (!empty($error)) {
- echo "<p class='alert alert-error'>";
+ echo "<p class='alert alert-danger'>";
echo implode("<br />\n", $error);
echo "</p>";
}
@@ -10,22 +10,27 @@ if ($hash) {
}
?>
<?php echo form_open('user/hash_password', array("class" => "form-horizontal")); ?>
- <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 class="row">
+ <div class="form-group col-lg-10">
+ <label class="control-label col-lg-2" for="inputPassword">Password</label>
+ <div class="col-lg-5">
+ <input type="password" id="inputPassword" name="password" placeholder="Password" class="form-control">
+ </div>
+ </div>
</div>
- <div class="control-group">
- <label class="control-label" for="inputPassword">Confirm password</label>
- <div class="controls">
- <input type="password" id="inputPasswordConfirm" name="password_confirm" placeholder="Password confirmation">
+ <div class="row">
+ <div class="form-group col-lg-10">
+ <label class="control-label col-lg-2" for="inputPassword">Confirm password</label>
+ <div class="col-lg-5">
+ <input type="password" id="inputPasswordConfirm" name="password_confirm" placeholder="Password confirmation" class="form-control">
</div>
+ </div>
</div>
- <div class="control-group">
- <div class="controls">
+ <div class="row">
+ <div class="form-group col-lg-10">
+ <div class="col-lg-offset-2 col-lg-5">
<button type="submit" class="btn btn-primary" name="process">Hash it</button>
</div>
</div>
diff --git a/application/views/user/invite.php b/application/views/user/invite.php
index eba77ead0..5cea4e742 100644
--- a/application/views/user/invite.php
+++ b/application/views/user/invite.php
@@ -1,4 +1,4 @@
-<div class="alert alert-block">
+<div class="alert alert-warning">
<p>
<b>Watch out!</b>
</p>
diff --git a/application/views/user/login.php b/application/views/user/login.php
index 761965c94..3e30d53bd 100644
--- a/application/views/user/login.php
+++ b/application/views/user/login.php
@@ -1,24 +1,24 @@
<?php
if (isset($login_error)) { ?>
- <div class="alert alert-error">The entered credentials are invalid.</div>
+ <div class="alert alert-danger">The entered credentials are invalid.</div>
<?php } ?>
-<?php echo form_open('user/login', array("class" => "form-horizontal")); ?>
- <div class="control-group">
+<?php echo form_open('user/login', array("class" => "form-horizontal login-page")); ?>
+ <div class="form-group">
<label class="control-label" for="inputUsername">Username</label>
<div class="controls">
- <input type="text" id="inputUsername" name="username" placeholder="Username">
+ <input type="text" id="inputUsername" name="username" placeholder="Username" class="form-control">
</div>
</div>
- <div class="control-group">
+ <div class="form-group">
<label class="control-label" for="inputPassword">Password</label>
<div class="controls">
- <input type="password" id="inputPassword" name="password" placeholder="Password">
+ <input type="password" id="inputPassword" name="password" placeholder="Password" class="form-control">
</div>
</div>
- <div class="control-group">
+ <div class="form-group">
<div class="controls">
<button type="submit" class="btn btn-primary" name="process">Login</button>
</div>
diff --git a/application/views/user/nav.php b/application/views/user/nav.php
index 90f76e05e..49c7aa988 100644
--- a/application/views/user/nav.php
+++ b/application/views/user/nav.php
@@ -1,11 +1,11 @@
<?php if(auth_driver_function_implemented("can_register_new_users")) { ?>
-<li><a href="<?php echo site_url("user/invite") ?>"><i class="icon-plus icon-black"></i> Invite</a></li>
+<li><a href="<?php echo site_url("user/invite") ?>"><span class="glyphicon glyphicon-plus"></span> Invite</a></li>
<?php } ?>
-<li><a href="<?php echo site_url("user/profile") ?>"><i class="icon-user icon-black"></i> Profile</a></li>
-<li><a href="<?php echo site_url("user/apikeys") ?>"><i class="icon-tags icon-black"></i> API keys</a></li>
+<li><a href="<?php echo site_url("user/profile") ?>"><span class="glyphicon glyphicon-user"></span> Profile</a></li>
+<li><a href="<?php echo site_url("user/apikeys") ?>"><span class="glyphicon glyphicon-tags"></span> API keys</a></li>
<?php if(auth_driver_function_implemented("can_reset_password")) { ?>
-<li><a href="<?php echo site_url("user/reset_password") ?>"><i class="icon-lock icon-black"></i> Change password</a></li>
+<li><a href="<?php echo site_url("user/reset_password") ?>"><span class="glyphicon glyphicon-lock"></span> Change password</a></li>
<?php } ?>
diff --git a/application/views/user/profile.php b/application/views/user/profile.php
index 1840f9fc1..c9f0a38f7 100644
--- a/application/views/user/profile.php
+++ b/application/views/user/profile.php
@@ -1,32 +1,40 @@
<?php echo form_open("user/profile", 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" disabled="disabled" value="<?php echo $profile_data["username"]; ?>">
- </div>
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <label class="control-label col-lg-2" for="inputUsername">Username</label>
+ <div class="col-lg-5">
+ <input type="text" id="inputUsername" name="username" placeholder="Username" disabled="disabled" value="<?php echo $profile_data["username"]; ?>" class="form-control">
+ </div>
+ </div>
</div>
<?php if($profile_data["email"] !== null) { ?>
- <div class="control-group">
- <label class="control-label" for="inputEmail">Email</label>
- <div class="controls">
- <input type="text" id="inputEmail" name="email" placeholder="Email" disabled="disabled" value="<?php echo $profile_data["email"]; ?>">
- </div>
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <label class="control-label col-lg-2" for="inputEmail">Email</label>
+ <div class="col-lg-5">
+ <input type="text" id="inputEmail" name="email" placeholder="Email" disabled="disabled" value="<?php echo $profile_data["email"]; ?>" class="form-control">
+ </div>
+ </div>
</div>
<?php } ?>
- <div class="control-group">
- <label class="control-label" for="inputUploadIDLimits">Upload ID length limits</label>
- <div class="controls">
- <input type="text" id="inputUploadIDLimits" name="upload_id_limits" placeholder="number-number" value="<?php echo $profile_data["upload_id_limits"]; ?>">
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <label class="control-label col-lg-2" for="inputUploadIDLimits">Upload ID length limits</label>
+ <div class="col-lg-5">
+ <input type="text" id="inputUploadIDLimits" name="upload_id_limits" placeholder="number-number" value="<?php echo $profile_data["upload_id_limits"]; ?>" class="form-control">
<span class="help-block">Values have to be between 3 and 64 inclusive. Please remember that longer IDs don't protect your pastes from being found if you post the link somewhere a search enginge can see it.</span>
- </div>
+ </div>
+ </div>
</div>
- <div class="control-group">
- <div class="controls">
- <button type="submit" class="btn btn-primary" name="process">Save changes</button>
- </div>
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <div class="col-lg-offset-2 col-lg-5">
+ <button type="submit" class="btn btn-primary" name="process">Save changes</button>
+ </div>
+ </div>
</div>
</form>
diff --git a/application/views/user/register.php b/application/views/user/register.php
index c0050508b..217a3d18f 100644
--- a/application/views/user/register.php
+++ b/application/views/user/register.php
@@ -1,41 +1,51 @@
<?php if (!empty($error)) {
- echo "<p class='alert alert-error'>";
+ echo "<p class='alert alert-danger'>";
echo implode("<br />\n", $error);
echo "</p>";
} ?>
<?php echo form_open('user/register/'.$key, 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" value="<?php echo $values["username"]; ?>">
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <label class="control-label col-lg-2" for="inputUsername">Username</label>
+ <div class="col-lg-5">
+ <input type="text" id="inputUsername" name="username" placeholder="Username" value="<?php echo $values["username"]; ?>" class="form-control">
</div>
+ </div>
</div>
- <div class="control-group">
- <label class="control-label" for="inputEmail">Email</label>
- <div class="controls">
- <input type="text" id="inputEmail" name="email" placeholder="Email" value="<?php echo $values["email"]; ?>">
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <label class="control-label col-lg-2" for="inputEmail">Email</label>
+ <div class="col-lg-5">
+ <input type="text" id="inputEmail" name="email" placeholder="Email" value="<?php echo $values["email"]; ?>" class="form-control">
</div>
+ </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 class="row">
+ <div class="form-group col-lg-8">
+ <label class="control-label col-lg-2" for="inputPassword">Password</label>
+ <div class="col-lg-5">
+ <input type="password" id="inputPassword" name="password" placeholder="Password" class="form-control">
</div>
+ </div>
</div>
- <div class="control-group">
- <label class="control-label" for="inputPassword">Confirm password</label>
- <div class="controls">
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <label class="control-label col-lg-2" for="inputPassword">Confirm password</label>
+ <div class="col-lg-5">
<input type="password" id="inputPasswordConfirm" name="password_confirm" placeholder="Password confirmation">
</div>
+ </div>
</div>
- <div class="control-group">
- <div class="controls">
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <div class="col-lg-offset-2 col-lg-5">
<button type="submit" class="btn btn-primary" name="process">Register</button>
</div>
+ </div>
</div>
</form>
diff --git a/application/views/user/reset_password_form.php b/application/views/user/reset_password_form.php
index b93ad1370..4ef84b7e7 100644
--- a/application/views/user/reset_password_form.php
+++ b/application/views/user/reset_password_form.php
@@ -1,5 +1,5 @@
<?php if (!empty($error)) {
- echo "<p class='alert alert-error'>";
+ echo "<p class='alert alert-danger'>";
echo implode("<br />\n", $error);
echo "</p>";
} ?>
diff --git a/application/views/user/reset_password_username_form.php b/application/views/user/reset_password_username_form.php
index 674a6441d..e72c30850 100644
--- a/application/views/user/reset_password_username_form.php
+++ b/application/views/user/reset_password_username_form.php
@@ -1,15 +1,19 @@
<?php echo form_open('user/reset_password', 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" value="<?php echo isset($username) ? $username : ""; ?>">
- </div>
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <label class="control-label col-lg-2" for="inputUsername">Username</label>
+ <div class="col-lg-5">
+ <input type="text" id="inputUsername" name="username" placeholder="Username" value="<?php echo isset($username) ? $username : ""; ?>" class="form-control">
+ </div>
+ </div>
</div>
- <div class="control-group">
- <div class="controls">
- <button type="submit" class="btn btn-primary" name="process">Send mail</button>
- </div>
+ <div class="row">
+ <div class="form-group col-lg-8">
+ <div class="col-lg-offset-2 col-lg-5">
+ <button type="submit" class="btn btn-primary" name="process">Send mail</button>
+ </div>
+ </div>
</div>
</form>