Skip to content

Commit

Permalink
BAP-20864: Wrong attachment field spacing and border in Add Comment p…
Browse files Browse the repository at this point in the history
…opup dialog in back-office (#32909)
  • Loading branch information
ValeriyYustunyk authored Jun 17, 2022
1 parent 8b34d9e commit f6f4e89
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
24 changes: 14 additions & 10 deletions src/Oro/Bundle/CommentBundle/Resources/views/Comment/form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@

<form method="post" class="comment-form">
<fieldset class="form-horizontal">
<label class="comment-message-label">
{{ form_widget(form.message) }}
</label>
<div class="control-group">
<label class="comment-message-label">
{{ form_widget(form.message) }}
</label>
</div>
{{ form_widget(form.attachment) }}
<% if (attachmentURL) { %>
<div class="attachment-item">
<span class="attachment-item__icon fa-paperclip" aria-hidden="true"></span>
<a href="<%- attachmentURL.url %>" class="no-hash attachment-item__filename" title="<%- attachmentFileName %>"><%- attachmentFileName %></a>
<span class="attachment-item__file-size">(<%- attachmentSize %>)</span>
<button class="btn btn-icon btn-square-lighter attachment-item__remove" type="button" data-role="remove">
<span class="fa-close" aria-hidden="true"></span>
</button>
<div class="control-group">
<div class="attachment-item">
<span class="attachment-item__icon fa-paperclip" aria-hidden="true"></span>
<a href="<%- attachmentURL.url %>" class="no-hash attachment-item__filename" title="<%- attachmentFileName %>"><%- attachmentFileName %></a>
<span class="attachment-item__file-size">(<%- attachmentSize %>)</span>
<button class="btn btn-icon btn-square-lighter attachment-item__remove" type="button" data-role="remove">
<span class="fa-close" aria-hidden="true"></span>
</button>
</div>
</div>
<% } %>
<div class="widget-actions">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
<form id="{{ form.vars.id }}" name="{{ form.vars.name }}" action="{{ formAction }}" method="post" class="note-form">
<fieldset class="form-horizontal">
{{ form_row(form.message) }}
<div class="control-group">
<div class="attachment-container">
{{ form_widget(form.attachment) }}
</div>
<div class="control-group-container">
{{ form_widget(form.attachment) }}
</div>
{{ form_rest(form) }}
<div class="widget-actions form-actions" style="display: none;">
Expand Down

0 comments on commit f6f4e89

Please sign in to comment.