diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-08 21:25:38 -0500 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-08 21:25:38 -0500 |
commit | 76ce6f98487b3754992da18969df37560e49ee82 (patch) | |
tree | 834ab9c155d06a3fba6b23831bcde24d3b8f951b /templates/repo/create.tmpl | |
parent | 5a05d6633d413b1c5182a0a542e173f99601a103 (diff) | |
download | gitea-76ce6f98487b3754992da18969df37560e49ee82.tar.gz gitea-76ce6f98487b3754992da18969df37560e49ee82.zip |
Update repo.Create
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r-- | templates/repo/create.tmpl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 4c7f4dd272..e7a3633489 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -3,6 +3,7 @@ <div class="container" id="gogs-body"> <form action="/repo/create" method="post" class="form-horizontal gogs-card" id="gogs-repo-create"> <h3>Create New Repository</h3> + <div class="alert alert-danger form-error{{if .HasError}}{{else}} hidden{{end}}">{{.ErrorMsg}}</div> <div class="form-group"> <label class="col-md-2 control-label">Owner<strong class="text-danger">*</strong></label> <div class="col-md-8"> @@ -11,10 +12,10 @@ </div> </div> - <div class="form-group"> + <div class="form-group {{if .Err_RepoName}}has-error has-feedback{{end}}"> <label class="col-md-2 control-label">Repository<strong class="text-danger">*</strong></label> <div class="col-md-8"> - <input name="repo" type="text" class="form-control" placeholder="Type your repository name" required="required"> + <input name="repo" type="text" class="form-control" placeholder="Type your repository name" value="{{.repo}}" required="required"> <span class="help-block">Great repository names are short and memorable. </span> </div> </div> @@ -23,13 +24,14 @@ <label class="col-md-2 control-label">Visibility<strong class="text-danger">*</strong></label> <div class="col-md-8"> <p class="form-control-static">Public</p> + <input type="hidden" value="public" name="visibility"/> </div> </div> - <div class="form-group"> + <div class="form-group {{if .Err_Description}}has-error has-feedback{{end}}"> <label class="col-md-2 control-label">Description</label> <div class="col-md-8"> - <textarea name="desc" class="form-control" placeholder="Type your repository name"></textarea> + <textarea name="desc" class="form-control" placeholder="Type your repository description">{{.desc}}</textarea> </div> </div> @@ -51,7 +53,7 @@ <div class="col-md-8 col-md-offset-2"> <div class="checkbox"> <label> - <input type="checkbox" value="true" name="init-md"> + <input type="checkbox" value="" name="initReadme"> <strong>Initialize this repository with a README</strong> </label> </div> |