Browse Source

Исправлена ошибка, добавлялись лишние пробелы вначале описания #3

pull/71/head
Artur Galyamov 2 years ago
parent
commit
052d2440bd
  1. 2
      services/forms/admin.go
  2. 4
      templates/admin/user/edit.tmpl

2
services/forms/admin.go

@ -41,7 +41,7 @@ type AdminEditUserForm struct {
Email string `binding:"Required;Email;MaxSize(254)"`
Password string `binding:"MaxSize(255)"`
Website string `binding:"ValidUrl;MaxSize(255)"`
Description string
Description string `binding:"MaxSize(1024)"`
Location string `binding:"MaxSize(50)"`
LocationCoordinate string `binding:"MaxSize(255)"`
MaxRepoCreation int

4
templates/admin/user/edit.tmpl

@ -75,9 +75,7 @@
</div>
<div class="field {{if .Err_Description}}error{{end}}">
<label for="description">{{$.i18n.Tr "user.user_bio"}}</label>
<textarea id="description" name="description" rows="4" placeholder="{{.i18n.Tr "settings.biography_placeholder"}}">
{{.User.Description}}
</textarea>
<textarea id="description" name="description" rows="4" placeholder="{{.i18n.Tr "settings.biography_placeholder"}}">{{.User.Description}}</textarea>
</div>
<div class="field {{if .Err_Website}}error{{end}}">
<label for="website">{{.i18n.Tr "settings.website"}}</label>

Loading…
Cancel
Save