forgejo-federation/templates/repo/hooks_add.tmpl

60 lines
2.8 KiB
Cheetah
Raw Normal View History

2014-05-02 19:37:34 +05:30
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
<div id="body" class="container">
{{template "repo/setting_nav" .}}
<div id="repo-setting-container" class="col-md-10">
{{template "base/alert" .}}
2014-05-05 22:38:01 +05:30
<form id="repo-hooks-add-form" action="/{{.Owner.Name}}/{{.Repository.Name}}/settings/hooks/add" method="post">
<div class="panel panel-default">
<div class="panel-heading">
Add Webhook
</div>
<div class="panel-body">
<div class="col-md-7">
<p>Well send a POST request to the URL below with details of any subscribed events.</p>
<hr/>
<div class="form-group">
<label for="payload-url">Payload URL</label>
<input id="payload-url" class="form-control" type="url" required="required" name="url"/>
</div>
<div class="form-group">
<label for="payload-version">Payload Version</label>
<select name="version" id="payload-version" class="form-control">
<option value="json">application/json</option>
</select>
</div>
<div class="form-group">
<label for="payload-secret">Secret</label>
<input id="payload-secret" class="form-control" type="text" required="required" name="secret"/>
</div>
<hr/>
<div class="form-group">
<label>Which events would you like to trigger this webhook?</label>
<div class="radio">
<label>
<input class="form-control" type="radio" value="push" checked name="trigger"/> Just the <i>push</i> event.
</label>
</div>
</div>
<hr/>
<div class="form-group">
2014-05-02 19:37:34 +05:30
<label>
2014-05-05 22:38:01 +05:30
<input type="checkbox" name="active" value="Active" checked/>&nbsp;&nbsp;
Active
2014-05-02 19:37:34 +05:30
</label>
2014-05-05 22:38:01 +05:30
<p class="help-block">We will deliver event details when this hook is triggered.</p>
2014-05-02 19:37:34 +05:30
</div>
</div>
2014-05-05 22:38:01 +05:30
</div>
2014-05-02 19:37:34 +05:30
2014-05-05 22:38:01 +05:30
<div class="panel-footer">
<button class="btn btn-success">Add Webhook</button>
</div>
</div>
</form>
2014-05-02 19:37:34 +05:30
</div>
</div>
{{template "base/footer" .}}