Fix some errors in User Profile page
parent
a43880dc8f
commit
29508cb51d
|
@ -44,7 +44,7 @@ class UserSettingsController extends mixOf(taiga.Controller, taiga.PageMixin)
|
|||
]
|
||||
|
||||
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, @auth) ->
|
||||
@scope.sectionName = "User Settings" #i18n
|
||||
@scope.sectionName = "User Profile" #i18n
|
||||
@scope.project = {}
|
||||
@scope.user = @auth.getUser()
|
||||
|
||||
|
|
|
@ -19,25 +19,28 @@ block content
|
|||
img.avatar(ng-src="{{user.big_photo}}" alt="avatar")
|
||||
input(type="file", id="avatar-field", tg-avatar-model="avatarAttachment" class="hidden")
|
||||
p The image will be cropped to 80x80 size.
|
||||
a.button.button-green.change Cambiar
|
||||
a.button.button-green.change Change
|
||||
a.use-gravatar Use gravatar image
|
||||
|
||||
fieldset
|
||||
label(for="email") Email
|
||||
input(type="text", placeholder="email", id="email", ng-model="user.email", data-type="email")
|
||||
input(type="text", name="email", placeholder="email", id="email",
|
||||
ng-model="user.email", data-type="email")
|
||||
|
||||
fieldset
|
||||
label(for="name") Name
|
||||
input(type="text", placeholder="Name", id="name", ng-model="user.full_name")
|
||||
label(for="full-name") Full name
|
||||
input(type="text", name="full_name", placeholder="Full name", id="full-name",
|
||||
ng-model="user.full_name")
|
||||
|
||||
fieldset
|
||||
label(for="bio") Bio
|
||||
textarea(placeholder="Bio", id="bio", ng-model="user.bio")
|
||||
textarea(name="bio", placeholder="Bio", id="bio", ng-model="user.bio")
|
||||
|
||||
fieldset.submit
|
||||
input(type="submit", class="hidden")
|
||||
a.button.button-green.save-profile(href="") Save
|
||||
a.delete-account(href="", title="Delete Taiga account", ng-click="ctrl.openDeleteLightbox()") Delete Taiga account
|
||||
a.delete-account(href="", title="Delete Taiga account",
|
||||
ng-click="ctrl.openDeleteLightbox()") Delete Taiga account
|
||||
|
||||
div.lightbox.lightbox-delete-account.hidden(tg-lb-delete-user)
|
||||
include views/modules/lightbox-delete-account
|
||||
|
|
Loading…
Reference in New Issue