1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 13:49:13 -05:00
forgejo/templates/repo/setting.tmpl

97 lines
4.9 KiB
Cheetah
Raw Normal View History

2014-03-13 02:08:49 -04:00
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
2014-03-25 06:44:37 -04:00
<div id="body" class="container">
<div id="user-setting-nav" class="col-md-3">
2014-03-25 22:49:18 -04:00
<ul class="list-group">
2014-03-17 02:36:28 -04:00
<li class="list-group-item active"><a href="/{{.Owner.Name}}/{{.Repository.Name}}/settings">Options</a></li>
<!--<li class="list-group-item"><a href="#">Collaborators</a></li>
<li class="list-group-item"><a href="#">Notifications</a></li>-->
2014-03-13 02:08:49 -04:00
</ul>
</div>
2014-03-20 07:50:26 -04:00
2014-03-25 06:44:37 -04:00
<div id="repo-setting-container" class="col-md-9">
2014-03-23 06:27:01 -04:00
{{if .IsSuccess}}<p class="alert alert-success">Repository option has been successfully updated.</p>{{else if .HasError}}<p class="alert alert-danger form-error">{{.ErrorMsg}}</p>{{end}}
2014-03-17 02:36:28 -04:00
<div class="panel panel-default">
<div class="panel-heading">
Repository Options
</div>
2014-03-20 07:50:26 -04:00
2014-03-17 02:36:28 -04:00
<div class="panel-body">
2014-03-23 04:06:07 -04:00
<form action="/{{.Owner.Name}}/{{.Repository.Name}}/settings" method="post" class="form-horizontal">
{{.CsrfTokenHtml}}
<input type="hidden" name="action" value="update">
<div class="form-group">
<label class="col-md-3 text-right">Description</label>
<div class="col-md-9">
2014-03-23 06:27:01 -04:00
<textarea class="form-control" name="desc" id="repo-desc" rows="3">{{.Repository.Description}}</textarea>
2014-03-23 04:06:07 -04:00
</div>
</div>
<div class="form-group">
<label class="col-md-3 text-right">Official Site</label>
<div class="col-md-9">
2014-03-23 06:27:01 -04:00
<input type="url" class="form-control" name="site" value="{{.Repository.Website}}" />
2014-03-23 04:06:07 -04:00
</div>
</div>
2014-03-23 06:27:01 -04:00
<!-- <div class="form-group">
2014-03-23 04:06:07 -04:00
<label class="col-md-3 text-right">Default Branch</label>
<div class="col-md-9">
<select name="branch" id="repo-default-branch" class="form-control">
<option value="">Branch</option>
</select>
</div>
2014-03-23 06:27:01 -04:00
</div> -->
2014-03-23 04:06:07 -04:00
<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>
2014-03-17 02:36:28 -04:00
</div>
2014-03-13 02:08:49 -04:00
</div>
2014-03-20 07:50:26 -04:00
2014-03-17 02:36:28 -04:00
<div class="panel panel-warning">
<div class="panel-heading">
Danger Zone
</div>
2014-03-20 07:50:26 -04:00
2014-03-17 02:36:28 -04:00
<div class="panel-body">
<button type="button" class="btn btn-default pull-right" href="#delete-repository-modal" data-toggle="modal">
Delete this repository
</button>
<dd>
<dt>Delete this repository.</dt>
<dl>Once you delete a repository, there is no going back. Please be certain.</dl>
</dd>
2014-03-13 02:08:49 -04:00
2014-03-17 02:36:28 -04:00
<div class="modal fade" id="delete-repository-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<form action="/{{.Owner.Name}}/{{.Repository.Name}}/settings" method="post" class="modal-content">
2014-03-22 13:44:02 -04:00
{{.CsrfTokenHtml}}
2014-03-17 02:36:28 -04:00
<input type="hidden" name="action" value="delete">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">Delete repository</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label>Please enter your repository name "<strong class="text-danger">{{.Repository.Name}}</strong>"</label>
<input name="repository" class="form-control" type="text" placeholder="Type your repository name" required="required">
</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 repository</button>
</div>
</form>
</div>
</div>
</div>
2014-03-13 02:08:49 -04:00
</div>
</div>
</div>
{{template "base/footer" .}}