diff options
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r-- | templates/repo/create.tmpl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 25c8dc27..89fe133c 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -52,7 +52,9 @@ </div> <div class="inline field {{if .Err_Description}}error{{end}}"> <label for="description">{{.i18n.Tr "repo.repo_desc"}}</label> - <textarea id="description" name="description">{{.description}}</textarea> + <textarea id="description" name="description" rows="3">{{.description}}</textarea> + <span class="help">{{.i18n.Tr "repo.repo_description_helper" | Safe}}</span> + <span class="help">{{.i18n.Tr "repo.repo_description_length"}}: <span id="descLength"></span></span> </div> <div class="ui divider"></div> @@ -113,4 +115,14 @@ </div> </div> </div> + +<script type="text/javascript"> +$(document).ready(function(){ + if (typeof window.autosize !== "undefined") { + autosize($('#description')); + } + showMessageMaxLength(512, 'description', 'descLength'); +}); +</script> + {{template "base/footer" .}} |