summaryrefslogtreecommitdiffstats
path: root/templates/repo/hook_add.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-22 23:11:12 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-22 23:11:12 -0400
commit314193029a246c2498c6d54c085d57f7589c8dbe (patch)
tree302cacb210a972d8050dbf1882a89c5ace1e6218 /templates/repo/hook_add.tmpl
parent9c820730918443ca2b498dfa71b3131d73cec526 (diff)
downloadgitea-314193029a246c2498c6d54c085d57f7589c8dbe.tar.gz
gitea-314193029a246c2498c6d54c085d57f7589c8dbe.zip
Use constants to name template file
Diffstat (limited to 'templates/repo/hook_add.tmpl')
-rw-r--r--templates/repo/hook_add.tmpl62
1 files changed, 62 insertions, 0 deletions
diff --git a/templates/repo/hook_add.tmpl b/templates/repo/hook_add.tmpl
new file mode 100644
index 0000000000..df3ff3bdf4
--- /dev/null
+++ b/templates/repo/hook_add.tmpl
@@ -0,0 +1,62 @@
+{{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" .}}
+ <form id="repo-hooks-add-form" action="{{.RepoLink}}/settings/hooks/add" method="post">
+ {{.CsrfTokenHtml}}
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ Add Webhook
+ </div>
+
+ <div class="panel-body">
+ <div class="col-md-7">
+ <p>We’ll 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" name="url" class="form-control" type="url" required="required"/>
+ </div>
+
+ <div class="form-group">
+ <label for="content-type">Content type</label>
+ <select id="content-type" name="content_type" class="form-control">
+ <option value="1">application/json</option>
+ </select>
+ </div>
+
+ <div class="form-group">
+ <label for="payload-secret">Secret</label>
+ <input id="payload-secret" name="secret" class="form-control" type="text"/>
+ </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" name="push_only" type="radio" checked name="trigger"/> Just the <i>push</i> event.
+ </label>
+ </div>
+ </div>
+ <hr/>
+ <div class="form-group">
+ <label>
+ <input type="checkbox" name="active" checked/>&nbsp;&nbsp;Active
+ </label>
+ <p class="help-block">We will deliver event details when this hook is triggered.</p>
+ </div>
+ </div>
+ </div>
+
+ <div class="panel-footer">
+ <button class="btn btn-success">Add Webhook</button>
+ </div>
+ </div>
+ </form>
+ </div>
+</div>
+{{template "base/footer" .}} \ No newline at end of file