projects block warning

stable
Juanfran 2016-03-01 10:33:47 +01:00
parent d881388648
commit 10e5af6847
4 changed files with 16 additions and 10 deletions

View File

@ -53,11 +53,11 @@ DeleteUserDirective = ($repo, $rootscope, $auth, $location, $navUrls, lightboxSe
promise.then null, -> promise.then null, ->
console.log "FAIL" console.log "FAIL"
$el.on "click", ".button-red", (event) -> $el.on "click", ".button-green", (event) ->
event.preventDefault() event.preventDefault()
lightboxService.close($el) lightboxService.close($el)
$el.on "click", ".button-green", debounce 2000, (event) -> $el.on "click", ".button-red", debounce 2000, (event) ->
event.preventDefault() event.preventDefault()
submit() submit()

View File

@ -826,8 +826,10 @@
"SECTION_NAME": "Delete Taiga Account", "SECTION_NAME": "Delete Taiga Account",
"CONFIRM": "Are you sure you want to delete your Taiga account?", "CONFIRM": "Are you sure you want to delete your Taiga account?",
"SUBTITLE": "We're going to miss you! :-(", "SUBTITLE": "We're going to miss you! :-(",
"NEWSLETTER_LABEL_TEXT": "I don't wanna receive your newsletter anymore" "NEWSLETTER_LABEL_TEXT": "I don't wanna receive your newsletter anymore",
"CANCEL": "Back to settings",
"ACCEPT": "Delete account",
"BLOCK_PROJECT": "Note that all your projects owned will be <strong>blocked</strong>. If you do not want to block your projects before deleting your account you can transfer ownership of the project to someone else."
}, },
"DELETE_PROJECT": { "DELETE_PROJECT": {
"TITLE": "Delete project", "TITLE": "Delete project",

View File

@ -2,12 +2,13 @@ a.close(href="", title="{{'close' | translate}}")
svg.icon.icon-close svg.icon.icon-close
use(xlink:href="#icon-close") use(xlink:href="#icon-close")
form form
h2.title(translate="LIGHTBOX.DELETE_ACCOUNT.SECTION_NAME") h2.title(translate="LIGHTBOX.DELETE_ACCOUNT.CONFIRM")
p p
span.question(translate="LIGHTBOX.DELETE_ACCOUNT.CONFIRM")
span.subtitle(translate="LIGHTBOX.DELETE_ACCOUNT.SUBTITLE") span.subtitle(translate="LIGHTBOX.DELETE_ACCOUNT.SUBTITLE")
p(ng-bind-html="'LIGHTBOX.DELETE_ACCOUNT.BLOCK_PROJECT' | translate")
div.options div.options
a.button-green(href="", title="{{'COMMON.ACCEPT' | translate}}") a.button-green(href="", title="{{'LIGHTBOX.DELETE_ACCOUNT.CANCEL' | translate}}")
span(translate="COMMON.ACCEPT") span(translate="LIGHTBOX.DELETE_ACCOUNT.CANCEL")
a.button-red(href="", title="{{'Cancel' | translate}}", ) a.button-red(href="", title="{{'LIGHTBOX.DELETE_ACCOUNT.ACCEPT' | translate}}")
span(translate="COMMON.CANCEL") span(translate="LIGHTBOX.DELETE_ACCOUNT.ACCEPT")

View File

@ -325,6 +325,9 @@
} }
.lightbox-delete-account { .lightbox-delete-account {
p {
text-align: center;
}
form { form {
flex-basis: 420px; flex-basis: 420px;
flex-grow: 0; flex-grow: 0;