summaryrefslogtreecommitdiffstats
path: root/application/views/user/profile.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-07-13 22:30:54 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-07-13 22:58:07 +0200
commitcabec2e1c8e468279f17bee9fb87f1676e8cec9a (patch)
tree9caf931dbf8edd67470a778493ac2740049c3c90 /application/views/user/profile.php
parent2015e32e3bd6922d0697a875ecdc810243c887f0 (diff)
Add profile page to allow changing the upload id limits
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/user/profile.php')
-rw-r--r--application/views/user/profile.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/application/views/user/profile.php b/application/views/user/profile.php
new file mode 100644
index 000000000..d382883d8
--- /dev/null
+++ b/application/views/user/profile.php
@@ -0,0 +1,33 @@
+<?php echo form_open("user/save_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>
+
+ <?php if(auth_driver_function_implemented("get_email")) { ?>
+ <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>
+ <?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"]; ?>">
+ <span class="help-block">&lt;number&gt;-&lt;number&gt; (min: 3, max: 64; example: "5-9")</span>
+ </div>
+ </div>
+
+ <div class="control-group">
+ <div class="controls">
+ <button type="submit" class="btn" name="process">Update</button>
+ </div>
+ </div>
+
+</form>