diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-23 16:06:07 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-23 16:06:07 +0800 |
commit | 1a16b3e99a0be7dbfeba1e683d253a22db5d1af5 (patch) | |
tree | 6d7ea3ad5de06ec24d372ddb11b8397028d7495d /templates | |
parent | 91a1b55707fe959c675fee0c0769a1be0106be3a (diff) | |
download | gitea-1a16b3e99a0be7dbfeba1e683d253a22db5d1af5.tar.gz gitea-1a16b3e99a0be7dbfeba1e683d253a22db5d1af5.zip |
repo options ui
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/setting.tmpl | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/templates/repo/setting.tmpl b/templates/repo/setting.tmpl index 38c3fd3bcc..719547b1a9 100644 --- a/templates/repo/setting.tmpl +++ b/templates/repo/setting.tmpl @@ -19,7 +19,41 @@ </div> <div class="panel-body"> - + <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">Repository Name <strong class="text-danger">*</strong></label> + <div class="col-md-9"> + <input type="text" class="form-control" name="repo-name" required="required" value="{{.Repository.Name}}"/> + </div> + </div> + <div class="form-group"> + <label class="col-md-3 text-right">Description</label> + <div class="col-md-9"> + <textarea class="form-control" name="desc" id="repo-desc" rows="6"></textarea> + </div> + </div> + <div class="form-group"> + <label class="col-md-3 text-right">Official Site</label> + <div class="col-md-9"> + <input type="url" class="form-control" name="repo-site"/> + </div> + </div> + <div class="form-group"> + <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> + </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> |