Issue #2706 - fix textarea placeholder interpolation error

stable
Juanfran 2015-05-20 15:35:27 +02:00
parent 2824b66f07
commit 7c5a0e4662
16 changed files with 18 additions and 18 deletions

View File

@ -33,7 +33,7 @@ MAX_MEMBERSHIP_FIELDSETS = 4
CreateMembersDirective = ($rs, $rootScope, $confirm, $loading, lightboxService, $compile) ->
extraTextTemplate = """
<fieldset class="extra-text">
<textarea placeholder="{{'LIGHTBOX.CREATE_MEMBER.PLACEHOLDER_INVITATION_TEXT' | translate}}"
<textarea ng-attr-placeholder="{{'LIGHTBOX.CREATE_MEMBER.PLACEHOLDER_INVITATION_TEXT' | translate}}"
maxlength="255"></textarea>
</fieldset>
"""

View File

@ -40,7 +40,7 @@ div.wrapper(tg-project-profile, ng-controller="ProjectProfileController as ctrl"
fieldset
label(for="project-description", translate="ADMIN.PROJECT_PROFILE.DESCRIPTION")
textarea(name="description", placeholder="{{'ADMIN.PROJECT_PROFILE.DESCRIPTION' | translate}}", id="project-description",
textarea(name="description", ng-attr-placeholder="{{'ADMIN.PROJECT_PROFILE.DESCRIPTION' | translate}}", id="project-description",
ng-model="project.description", data-required="true")
div

View File

@ -3,7 +3,7 @@
span.edit.icon.icon-edit
.edit-description
textarea(placeholder="{{'COMMON.DESCRIPTION.EMPTY' | translate}}", ng-model="item.description", tg-markitup="tg-markitup")
textarea(ng-attr-placeholder="{{'COMMON.DESCRIPTION.EMPTY' | translate}}", ng-model="item.description", tg-markitup="tg-markitup")
a.help-markdown(href="https://taiga.io/support/taiga-markdown-syntax/", target="_blank", title="{{'COMMON.WYSIWYG.MARKDOWN_HELP' | translate}}")
span.icon.icon-help
span(translate="COMMON.WYSIWYG.MARKDOWN_HELP")

View File

@ -11,7 +11,7 @@ section.history
section.history-comments
.comments-list
div(tg-check-permission!="modify_<%- type %>", tg-toggle-comment, class="add-comment")
textarea(placeholder="{{'COMMENTS.TYPE_NEW_COMMENT' | translate}}", ng-model!="<%- ngmodel %>.comment", tg-markitup="tg-markitup")
textarea(ng-attr-placeholder="{{'COMMENTS.TYPE_NEW_COMMENT' | translate}}", ng-model!="<%- ngmodel %>.comment", tg-markitup="tg-markitup")
<% if (mode !== "edit") { %>
a(class="help-markdown", href="https://taiga.io/support/taiga-markdown-syntax/", target="_blank", title="{{'COMMON.WYSIWYG.MARKDOWN_HELP' | translate}}")
span.icon.icon-help

View File

@ -3,7 +3,7 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
div.form
h2.title
fieldset
textarea.reason(placeholder="{{'COMMON.BLOCKED_REASON' | translate}}")
textarea.reason(ng-attr-placeholder="{{'COMMON.BLOCKED_REASON' | translate}}")
a.button-green(href="")
span(translate="COMMON.SAVE")

View File

@ -1,4 +1,4 @@
fieldset.blocked-note.hidden
textarea(name="blocked_note",
placeholder="{{'COMMON.BLOCKED_NOTE' | translate}}",
ng-attr-placeholder="{{'COMMON.BLOCKED_NOTE' | translate}}",
ng-model!="<%- ngmodel %>")

View File

@ -3,7 +3,7 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
form
h2.title(translate="LIGHTBOX.CREATE_ISSUE.TITLE")
fieldset
input(type="text", ng-model="issue.subject", placeholder="{{'COMMON.FIELDS.SUBJECT' | translate}}",
input(type="text", ng-model="issue.subject", ng-attr-placeholder="{{'COMMON.FIELDS.SUBJECT' | translate}}",
data-required="true", data-maxlength="500")
div.fieldset-row
fieldset
@ -17,7 +17,7 @@ form
div.tags-block(tg-lb-tag-line, ng-model="issue.tags")
fieldset
textarea.description(placeholder="{{'COMMON.FIELDS.DESCRIPTION' | translate}}", ng-model="issue.description")
textarea.description(ng-attr-placeholder="{{'COMMON.FIELDS.DESCRIPTION' | translate}}", ng-model="issue.description")
// include lightbox-attachments
button.button-green.submit-button(type="submit", title="{{'COMMON.CREATE' | translate}}", translate="COMMON.CREATE")

View File

@ -4,6 +4,6 @@ form
h2.title(translate="LIGHTBOX.FEEDBACK.TITLE")
fieldset
textarea(ng-model="feedback.comment", data-required="true",
placeholder="{{'LIGHTBOX.FEEDBACK.COMMENT' | translate}}")
ng-attr-placeholder="{{'LIGHTBOX.FEEDBACK.COMMENT' | translate}}")
fieldset
button.button-green.submit-button(type="submit", title="{{'LIGHTBOX.FEEDBACK.ACTION_SEND' | translate}}", translate="LIGHTBOX.FEEDBACK.ACTION_SEND")

View File

@ -3,6 +3,6 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
form
h2.title(translate="COMMON.NEW_BULK")
fieldset
textarea(cols="200", wrap="off", tg-limit-line-length, placeholder="{{'COMMON.ONE_ITEM_LINE' | translate}}", ng-model="new.bulk", data-required="true", data-linewidth="200")
textarea(cols="200", wrap="off", tg-limit-line-length, ng-attr-placeholder="{{'COMMON.ONE_ITEM_LINE' | translate}}", ng-model="new.bulk", data-required="true", data-linewidth="200")
button.button-green.submit-button(type="submit", title="{{'COMMON.SAVE' | translate}}", translate="COMMON.SAVE")

View File

@ -3,6 +3,6 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
form
h2.title(translate="COMMON.NEW_BULK")
fieldset
textarea(cols="200", wrap="off", tg-limit-line-length, placeholder="{{'COMMON.ONE_ITEM_LINE' | translate}}", ng-model="form.data", data-required="true")
textarea(cols="200", wrap="off", tg-limit-line-length, ng-attr-placeholder="{{'COMMON.ONE_ITEM_LINE' | translate}}", ng-model="form.data", data-required="true")
button.button-green.submit-button(type="submit", title="{{'COMMON.SAVE' | translate}}", translate="COMMON.SAVE")

View File

@ -3,7 +3,7 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
form
h2.title(translate="LIGHTBOX.CREATE_EDIT_TASK.TITLE")
fieldset
input(type="text", ng-model="task.subject", placeholder="{{'LIGHTBOX.CREATE_EDIT_TASK.PLACEHOLDER_SUBJECT' | translate}}",
input(type="text", ng-model="task.subject", ng-attr-placeholder="{{'LIGHTBOX.CREATE_EDIT_TASK.PLACEHOLDER_SUBJECT' | translate}}",
data-required="true", data-maxlength="500")
fieldset
@ -19,7 +19,7 @@ form
div.tags-block(tg-lb-tag-line, ng-model="task.tags")
fieldset
textarea.description(placeholder="{{'LIGHTBOX.CREATE_EDIT_TASK.PLACEHOLDER_SHORT_DESCRIPTION' | translate}}", ng-model="task.description")
textarea.description(ng-attr-placeholder="{{'LIGHTBOX.CREATE_EDIT_TASK.PLACEHOLDER_SHORT_DESCRIPTION' | translate}}", ng-model="task.description")
div.settings
fieldset.iocaine-flag(title="{{'COMMON.IOCAINE_TEXT' | translate}}")

View File

@ -3,6 +3,6 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
form
h2.title(translate="COMMON.NEW_BULK")
fieldset
textarea(cols="200", wrap="off", tg-limit-line-length, placeholder="{{'COMMON.ONE_ITEM_LINE' | translate}}", ng-model="new.bulk", data-required="true", data-linewidth="200")
textarea(cols="200", wrap="off", tg-limit-line-length, ng-attr-placeholder="{{'COMMON.ONE_ITEM_LINE' | translate}}", ng-model="new.bulk", data-required="true", data-linewidth="200")
button.button-green.submit-button(type="submit", title="{{'COMMON.SAVE' | translate}}", translate="COMMON.SAVE")

View File

@ -17,7 +17,7 @@ form
fieldset
textarea.description(name="description", ng-model="us.description",
placeholder="{{'LIGHTBOX.CREATE_EDIT_US.PLACEHOLDER_DESCRIPTION' | translate}}")
ng-attr-placeholder="{{'LIGHTBOX.CREATE_EDIT_US.PLACEHOLDER_DESCRIPTION' | translate}}")
div.settings
fieldset.team-requirement
input(type="checkbox", name="team_requirement", ng-model="us.team_requirement",

View File

@ -26,7 +26,7 @@ form
fieldset
input(type="text", name="name", ng-model="data.name", data-required="true", placeholder="{{'COMMON.FIELDS.NAME' | translate}}", maxlength="45")
fieldset
textarea(name="description", ng-model="data.description", data-required="true", placeholder="{{'COMMON.FIELDS.DESCRIPTION' | translate}}")
textarea(name="description", ng-model="data.description", data-required="true", ng-attr-placeholder="{{'COMMON.FIELDS.DESCRIPTION' | translate}}")
fieldset.wizard-action
div
a.button-prev.button.button-gray(href="", title="{{'PAGINATION.PREVIOUS' | translate}}", translate="PAGINATION.PREVIOUS")

View File

@ -58,7 +58,7 @@ div.wrapper(tg-user-profile, ng-controller="UserSettingsController as ctrl",
fieldset
label(for="bio", translate="USER_PROFILE.FIELD.BIO")
textarea(name="bio", id="bio", ng-model="user.bio",
placeholder="{{'USER_PROFILE.FIELD.PLACEHOLDER_BIO' | translate}}")
ng-attr-placeholder="{{'USER_PROFILE.FIELD.PLACEHOLDER_BIO' | translate}}")
fieldset.submit
button.button-green.submit-button(type="submit", title="{{'COMMON.SAVE' | translate}}",

View File

@ -2,7 +2,7 @@
section.wysiwyg(tg-bind-html='wiki.html')
span.edit.icon.icon-edit(title="{{'COMMON.EDIT' | translate}}")
.edit-wiki-content(style='display: none;')
textarea(placeholder="{{'WIKI.PLACEHOLDER_PAGE' | translate}}", ng-model='wiki.content', tg-markitup='tg-markitup')
textarea(ng-attr-placeholder="{{'WIKI.PLACEHOLDER_PAGE' | translate}}", ng-model='wiki.content', tg-markitup='tg-markitup')
a.help-markdown(href='https://taiga.io/support/taiga-markdown-syntax/', target='_blank', title="{{'COMMON.WYSIWYG.MARKDOWN_HELP' | translate}}")
span.icon.icon-help
span(translate="COMMON.WYSIWYG.MARKDOWN_HELP")