2014-06-23 16:41:20 +05:30
|
|
|
{{template "base/head" .}}
|
|
|
|
{{template "base/navbar" .}}
|
|
|
|
<div id="body-nav">
|
|
|
|
<div class="container">
|
|
|
|
<div class="btn-group pull-left" id="dashboard-switch">
|
|
|
|
<button type="button" class="btn btn-default">
|
2014-06-27 13:07:01 +05:30
|
|
|
<img src="{{.Org.AvatarLink}}?s=28" alt="user-avatar" title="username">
|
|
|
|
{{.Org.Name}}
|
2014-06-23 16:41:20 +05:30
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<ul class="nav nav-pills pull-right">
|
2014-06-27 13:07:01 +05:30
|
|
|
<li><a href="/org/{{.Org.Name}}/dashboard/">News Feed</a></li>
|
|
|
|
<li><a href="/org/{{.Org.Name}}/dashboard/issues">Issues</a></li>
|
|
|
|
<li class="active"><a href="/org/{{.Org.Name}}/settings">Settings</a></li>
|
2014-06-23 16:41:20 +05:30
|
|
|
<!-- <li><a href="/pulls">Pull Requests</a></li>
|
|
|
|
<li><a href="/stars">Stars</a></li> -->
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-06-27 13:07:01 +05:30
|
|
|
|
2014-06-23 16:41:20 +05:30
|
|
|
<div id="body" class="container" data-page="org">
|
|
|
|
<div id="user-setting-nav" class="col-md-2 repo-setting-nav">
|
|
|
|
<ul class="list-group">
|
|
|
|
<li class="list-group-item active"><a href="#">Options</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="repo-setting-container" class="col-md-10">
|
|
|
|
{{template "base/alert" .}}
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2014-06-27 13:07:01 +05:30
|
|
|
Organization Options
|
2014-06-23 16:41:20 +05:30
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
2014-06-27 13:07:01 +05:30
|
|
|
<form action="/org/{{.Org.Name}}/settings" method="post" class="form-horizontal">
|
2014-06-23 16:41:20 +05:30
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<input type="hidden" name="action" value="update">
|
|
|
|
|
2014-06-27 13:07:01 +05:30
|
|
|
<div class="form-group{{if .Err_DisplayName}} has-error has-feedback{{end}}">
|
|
|
|
<label class="col-md-3 text-right" for="org-setting-name">Display Name</label>
|
2014-06-23 16:41:20 +05:30
|
|
|
<div class="col-md-9">
|
2014-06-27 13:07:01 +05:30
|
|
|
<input class="form-control" name="display_name" value="{{.Org.FullName}}" title="" id="org-setting-name"/>
|
2014-06-23 16:41:20 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-06-27 13:07:01 +05:30
|
|
|
<div class="form-group{{if .Err_Email}} has-error has-feedback{{end}}">
|
2014-06-23 16:41:20 +05:30
|
|
|
<label class="col-md-3 text-right" for="org-email">Email</label>
|
|
|
|
<div class="col-md-9">
|
2014-06-27 13:07:01 +05:30
|
|
|
<input class="form-control" name="email" value="{{.Org.Email}}" title="" id="org-email" type="email"/>
|
2014-06-23 16:41:20 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-06-27 13:07:01 +05:30
|
|
|
<div class="form-group{{if .Err_Description}} has-error has-feedback{{end}}">
|
2014-06-23 16:41:20 +05:30
|
|
|
<label class="col-md-3 text-right" for="org-desc">Description</label>
|
|
|
|
<div class="col-md-9">
|
2014-06-27 13:07:01 +05:30
|
|
|
<textarea class="form-control" name="desc" id="org-desc" rows="3">{{.Org.Description}}</textarea>
|
2014-06-23 16:41:20 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-06-27 13:07:01 +05:30
|
|
|
<div class="form-group{{if .Err_Website}} has-error has-feedback{{end}}">
|
2014-06-23 16:41:20 +05:30
|
|
|
<label class="col-md-3 text-right" for="org-site">Official Site</label>
|
|
|
|
<div class="col-md-9">
|
2014-06-27 13:07:01 +05:30
|
|
|
<input type="url" class="form-control" name="site" value="{{.Org.Website}}" id="org-site"/>
|
2014-06-23 16:41:20 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-06-27 13:07:01 +05:30
|
|
|
<div class="form-group{{if .Err_Location}} has-error has-feedback{{end}}">
|
2014-06-23 16:41:20 +05:30
|
|
|
<label class="col-md-3 text-right" for="org-location">Location</label>
|
|
|
|
<div class="col-md-9">
|
2014-06-27 13:07:01 +05:30
|
|
|
<input class="form-control" name="location" value="{{.Org.Location}}" title="" id="org-location"/>
|
2014-06-23 16:41:20 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-9 col-md-offset-3">
|
|
|
|
<button class="btn btn-primary" type="submit">Save Options</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel panel-warning">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Danger Zone
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<button type="button" class="btn btn-default pull-right" href="#delete-org-modal" data-toggle="modal">
|
|
|
|
Delete this organization
|
|
|
|
</button>
|
|
|
|
<dd>
|
|
|
|
<dt>Delete this organization</dt>
|
|
|
|
<dl>Once you delete this organization and all repositories in, there is no going back. Please be
|
|
|
|
certain.
|
|
|
|
</dl>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<div class="modal fade" id="delete-org-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
|
|
|
aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
2014-06-28 08:44:33 +05:30
|
|
|
<form action="/org/{{.Org.Name}}/settings/delete" method="post"
|
2014-06-23 16:41:20 +05:30
|
|
|
class="modal-content">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal"
|
|
|
|
aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title" id="myModalLabel">Delete organization</h4>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group">
|
2014-06-28 08:44:33 +05:30
|
|
|
<label>Make sure your are owner of this organization. Please enter your password.<strong class="text-danger">*</strong></label>
|
|
|
|
<input name="password" class="form-control" type="password" placeholder="Type your account password" required="required">
|
2014-06-23 16:41:20 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
<button class="btn btn-danger btn-lg">I understand the consequences, delete this
|
|
|
|
organization
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|