summaryrefslogtreecommitdiffstats
path: root/templates/org/new.tmpl
diff options
context:
space:
mode:
authorfuxiaohei <fuxiaohei@vip.qq.com>2014-06-23 11:40:49 +0800
committerfuxiaohei <fuxiaohei@vip.qq.com>2014-06-23 11:40:49 +0800
commitea507e20d45ef90b1552d72341038354f8801cf4 (patch)
tree65ef0b0b0866bf5aa4717fe2b6c2f6739f4a5e2c /templates/org/new.tmpl
parent314193029a246c2498c6d54c085d57f7589c8dbe (diff)
downloadgitea-ea507e20d45ef90b1552d72341038354f8801cf4.tar.gz
gitea-ea507e20d45ef90b1552d72341038354f8801cf4.zip
add organization create page
Diffstat (limited to 'templates/org/new.tmpl')
-rw-r--r--templates/org/new.tmpl48
1 files changed, 48 insertions, 0 deletions
diff --git a/templates/org/new.tmpl b/templates/org/new.tmpl
new file mode 100644
index 0000000000..baa9c9dfa0
--- /dev/null
+++ b/templates/org/new.tmpl
@@ -0,0 +1,48 @@
+{{template "base/head" .}}
+{{template "base/navbar" .}}
+<div class="container" id="body">
+ <form action="/repo/create" method="post" class="form-horizontal card" id="org-create">
+ {{.CsrfTokenHtml}}
+ <h3>Create New Organization</h3>
+ {{template "base/alert" .}}
+ <div class="form-group">
+ <label class="col-md-2 control-label">Owner<strong class="text-danger">*</strong></label>
+ <div class="col-md-8">
+ <p class="form-control-static">{{.SignedUserName}}</p>
+ <input type="hidden" value="{{.SignedUserId}}" name="userId"/>
+ </div>
+ </div>
+
+ <div class="form-group {{if .Err_RepoName}}has-error has-feedback{{end}}">
+ <label class="col-md-2 control-label">Organization<strong class="text-danger">*</strong></label>
+ <div class="col-md-8">
+ <input name="repo" type="text" class="form-control" placeholder="Type your repository name" value="{{.repo}}" required="required">
+ <span class="help-block">Great organization names are short and memorable. </span>
+ </div>
+ </div>
+
+ <div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}">
+ <label class="col-md-2 control-label">Email<strong class="text-danger">*</strong></label>
+ <div class="col-md-8">
+ <input name="email" type="text" class="form-control" placeholder="Type organization's email" value="" required="required">
+ <span class="help-block">Organization's Email receives all notifications and confirmations.</span>
+ </div>
+ </div>
+<!--
+ <div class="form-group">
+ <label class="col-md-2 control-label">Owners<strong class="text-danger">*</strong></label>
+ <div class="col-md-8">
+ owners
+ </div>
+ </div>-->
+
+
+ <div class="form-group">
+ <div class="col-md-offset-2 col-md-8">
+ <button type="submit" class="btn btn-lg btn-primary">Create An Organization</button>
+ <a href="/" class="text-danger">Cancel</a>
+ </div>
+ </div>
+ </form>
+</div>
+{{template "base/footer" .}} \ No newline at end of file