2014-02-01 02:49:22 +00:00
|
|
|
{{%define "content"%}} {{%template "nav" .User%}}
|
2013-12-12 06:27:43 +00:00
|
|
|
<div class="jumbotron">
|
|
|
|
<div class="container" style="text-align:center;">
|
|
|
|
<h1 class="sans header">
|
|
|
|
Settings
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<div class="col-md-3 sidebar">
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
|
|
|
<li><a href="/">Dashboard</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="/users">Users & Groups</a>
|
|
|
|
</li>
|
2014-03-18 20:20:34 +00:00
|
|
|
<li><a href="/templates">Templates</a>
|
|
|
|
</li>
|
2013-12-12 06:27:43 +00:00
|
|
|
<li class="active"><a href="/settings">Settings</a>
|
|
|
|
</li>
|
2014-02-02 22:37:36 +00:00
|
|
|
<li><a href="/api/">API Documentation</a>
|
2013-12-12 06:27:43 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9 sans">
|
2014-02-02 20:47:06 +00:00
|
|
|
{{%template "flashes" .Flashes%}}
|
2014-01-31 04:46:25 +00:00
|
|
|
<h1 style="margin:0px 0px 15px 0px;">User Settings</h1>
|
|
|
|
<div class="row">
|
2014-02-06 16:49:53 +00:00
|
|
|
<label for="api_key" class="col-sm-2 control-label form-label">API Key:</label>
|
2014-01-31 04:46:25 +00:00
|
|
|
<div class="col-md-6">
|
2014-02-06 16:49:53 +00:00
|
|
|
<input type="text" id="api_key" onclick="this.select();" value="{{%.User.APIKey%}}" class="form-control" readonly/>
|
2014-01-31 04:46:25 +00:00
|
|
|
</div>
|
2014-02-03 23:21:56 +00:00
|
|
|
<form action="/api/reset" method="POST">
|
|
|
|
<button class="btn btn-primary"><i class="fa fa-refresh" type="submit"></i> Reset</button>
|
|
|
|
<input type="hidden" name="csrf_token" value={{%.Token%}}/>
|
|
|
|
</form>
|
2014-01-31 04:46:25 +00:00
|
|
|
</div>
|
|
|
|
<br />
|
2014-02-06 16:49:53 +00:00
|
|
|
<form action="/settings" method="POST">
|
|
|
|
<div class="row">
|
|
|
|
<label for="username" class="col-sm-2 control-label form-label">Username:</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" id="username" value="{{%.User.Username%}}" class="form-control" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
|
|
|
<label for="current_password" class="col-sm-2 control-label form-label">Old Password:</label>
|
|
|
|
<div class="col-md-6">
|
2014-02-10 19:02:44 +00:00
|
|
|
<input type="password" id="current_password" name="current_password" class="form-control" />
|
2014-02-06 16:49:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
|
|
|
<label for="new_password" class="col-sm-2 control-label form-label">New Password:</label>
|
|
|
|
<div class="col-md-6">
|
2014-02-10 19:02:44 +00:00
|
|
|
<input type="password" id="new_password" name="new_password" class="form-control" />
|
2014-02-06 16:49:53 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-10 19:02:44 +00:00
|
|
|
<input type="hidden" name="csrf_token" value={{%.Token%}}/>
|
2014-02-12 16:43:54 +00:00
|
|
|
<br />
|
2014-02-10 19:02:44 +00:00
|
|
|
<button class="btn btn-primary" type="submit">Save</button>
|
2014-02-06 16:49:53 +00:00
|
|
|
</form>
|
|
|
|
<br/>
|
2013-12-12 06:27:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-01 02:49:22 +00:00
|
|
|
{{%end%}}
|