Merge pull request #3771 from furinvader/features/refactoring/move-wp-comment
Move WP comment directive to new components locationpull/3773/head
commit
1272eb67a5
@ -0,0 +1,54 @@ |
||||
<div id="work-package-activites-container"> |
||||
<div id="work-package-comment-container"> |
||||
|
||||
<ng-transclude ng-if="!fieldController.showAbove"></ng-transclude> |
||||
<div class="work-package-field work-packages--activity--add-comment" ng-show="fieldController.canAddComment"> |
||||
<inplace-editor-main-pane> |
||||
<div class="inplace-edit--read" ng-if="!fieldController.isEditing"> |
||||
<accessible-by-keyboard |
||||
class="inplace-editing--trigger-container" |
||||
span-class="inplace-editing--container" |
||||
link-class="inplace-editing--trigger-link" |
||||
execute="fieldController.startEditing()"> |
||||
<span class="inplace-edit--read-value" |
||||
ng-class="{'-default': fieldController.isEmpty()}"> |
||||
<span ng-bind="fieldController.placeholder"></span> |
||||
</span> |
||||
<span class="inplace-edit--icon-wrapper"> |
||||
<icon-wrapper icon-name="edit" icon-title="{{ fieldController.editTitle }}"> |
||||
</icon-wrapper> |
||||
</span> |
||||
</accessible-by-keyboard> |
||||
</div> |
||||
<div class="inplace-edit--write edit-strategy-comment" ng-show="fieldController.isEditing"> |
||||
<form class="inplace-edit--form" |
||||
ng-if="fieldController.isEditing" |
||||
name="fieldController.editForm" |
||||
ng-submit="fieldController.submit()" |
||||
novalidate> |
||||
<div class="inplace-edit--write-value" |
||||
tabindex="-1"> |
||||
<inplace-editor-wiki-textarea> </inplace-editor-wiki-textarea> |
||||
</div> |
||||
<div class="inplace-edit--dashboard"> |
||||
<div class="inplace-edit--controls" ng-hide="fieldController.state.isBusy || !fieldController.isActive()"> |
||||
<accessible-by-keyboard execute="fieldController.submit()" |
||||
ng-disabled="fieldController.isEmpty()" |
||||
class="inplace-edit--control inplace-edit--control--save"> |
||||
<icon-wrapper icon-name="yes" icon-title="{{ fieldController.saveTitle }}"> |
||||
</icon-wrapper> |
||||
</accessible-by-keyboard> |
||||
<accessible-by-keyboard execute="fieldController.discardEditing()" class="inplace-edit--control inplace-edit--control--cancel"> |
||||
<icon-wrapper icon-name="close" icon-title="{{ fieldController.cancelTitle }}"> |
||||
</icon-wrapper> |
||||
</accessible-by-keyboard> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</inplace-editor-main-pane> |
||||
</div> |
||||
<ng-transclude ng-if="fieldController.showAbove"></ng-transclude> |
||||
|
||||
</div> |
||||
</div> |
@ -1,9 +0,0 @@ |
||||
<div id="work-package-activites-container"> |
||||
<div id="work-package-comment-container" |
||||
ng-include="'/templates/work_packages/comment_field.html'" |
||||
ng-if="fieldController.showAbove"></div> |
||||
<ng-transclude></ng-transclude> |
||||
<div id="work-package-comment-container" |
||||
ng-include="'/templates/work_packages/comment_field.html'" |
||||
ng-if="!fieldController.showAbove"></div> |
||||
</div> |
@ -1,46 +0,0 @@ |
||||
<div class="work-package-field work-packages--activity--add-comment" ng-show="fieldController.canAddComment"> |
||||
<inplace-editor-main-pane> |
||||
<div class="inplace-edit--read" ng-if="!fieldController.isEditing"> |
||||
<accessible-by-keyboard |
||||
class="inplace-editing--trigger-container" |
||||
span-class="inplace-editing--container" |
||||
link-class="inplace-editing--trigger-link" |
||||
execute="fieldController.startEditing()"> |
||||
<span class="inplace-edit--read-value" |
||||
ng-class="{'-default': fieldController.isEmpty()}"> |
||||
<span ng-bind="fieldController.placeholder"></span> |
||||
</span> |
||||
<span class="inplace-edit--icon-wrapper"> |
||||
<icon-wrapper icon-name="edit" icon-title="{{ fieldController.editTitle }}"> |
||||
</icon-wrapper> |
||||
</span> |
||||
</accessible-by-keyboard> |
||||
</div> |
||||
<div class="inplace-edit--write edit-strategy-comment" ng-show="fieldController.isEditing"> |
||||
<form class="inplace-edit--form" |
||||
ng-if="fieldController.isEditing" |
||||
name="fieldController.editForm" |
||||
ng-submit="fieldController.submit()" |
||||
novalidate> |
||||
<div class="inplace-edit--write-value" |
||||
tabindex="-1"> |
||||
<inplace-editor-wiki-textarea> </inplace-editor-wiki-textarea> |
||||
</div> |
||||
<div class="inplace-edit--dashboard"> |
||||
<div class="inplace-edit--controls" ng-hide="fieldController.state.isBusy || !fieldController.isActive()"> |
||||
<accessible-by-keyboard execute="fieldController.submit()" |
||||
ng-disabled="fieldController.isEmpty()" |
||||
class="inplace-edit--control inplace-edit--control--save"> |
||||
<icon-wrapper icon-name="yes" icon-title="{{ fieldController.saveTitle }}"> |
||||
</icon-wrapper> |
||||
</accessible-by-keyboard> |
||||
<accessible-by-keyboard execute="fieldController.discardEditing()" class="inplace-edit--control inplace-edit--control--cancel"> |
||||
<icon-wrapper icon-name="close" icon-title="{{ fieldController.cancelTitle }}"> |
||||
</icon-wrapper> |
||||
</accessible-by-keyboard> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</inplace-editor-main-pane> |
||||
</div> |
Loading…
Reference in new issue