Skip to content

Commit a20018a

Browse files
committed
Changed added comment switch button text. Header design
1 parent 3f24b43 commit a20018a

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/Translations/ca/lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
'create-ticket-describe-issue' => 'Descriu els detalls del problema',
242242
'create-ticket-intervention-help' => 'Accions realitzades per a la resolució del tiquet',
243243
'create-ticket-switch-to-note' => 'Canviar a nota interna',
244-
'create-ticket-switch-to-comment' => 'Canviar a comentari',
244+
'create-ticket-switch-to-comment' => 'Canviar a resposta a usuari',
245245

246246

247247
'attach-files' => 'Adjuntar fitxers',

src/Translations/en/lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
'create-ticket-describe-issue' => 'Describe your issue here in details',
244244
'create-ticket-intervention-help' => 'Taken actions for ticket resolution',
245245
'create-ticket-switch-to-note' => 'Switch to internal note',
246-
'create-ticket-switch-to-comment' => 'Switch to comment',
246+
'create-ticket-switch-to-comment' => 'Switch to reply to user',
247247

248248
'attach-files' => 'Attach files',
249249
'pending-attachment' => 'This file will be uploaded when the ticket is updated',

src/Views/tickets/partials/comments/new_in_createedit_ticket_form.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
<div id="comment_template" class="card bg-light mb-3 comment_block" style="display: none;">
44
<div class="card-header pt-1 pr-3 pb-0 pl-2">
5-
<button type="button" class="pull-right btn btn-light btn-sm delete_comment" title="{{ trans('panichd::lang.show-ticket-delete-comment') }}">
6-
<span class="fa fa-times" aria-label="{{ trans('panichd::lang.btn-delete') }}" style="color: gray"></span></button>
7-
<h6 class="mt-1">
5+
<h6 class="mt-1 d-flex align-items-center">
86
<span class="note_title">
97
<span class="text-info mr-1"><i class="fas fa-pencil-alt" aria-hidden="true"></i></span>
108
{{ trans('panichd::lang.note') }}
@@ -15,9 +13,11 @@
1513
</span>
1614
<span class="ml-2">
1715
<button class="btn btn-light btn-xs switch_response_type" data-note-text="{{ trans('panichd::lang.create-ticket-switch-to-comment') }}" data-comment-text="{{ trans('panichd::lang.create-ticket-switch-to-note') }}">
18-
<i class="fas fa-exchange-alt"></i> <span class="text">{{ trans('panichd::lang.create-ticket-switch-to-comment') }}</span>
16+
<i class="fas fa-comment"></i> <span class="text">{{ trans('panichd::lang.create-ticket-switch-to-comment') }}</span>
1917
</button>
2018
</span>
19+
<button type="button" class="ml-auto btn btn-light btn-sm delete_comment" title="{{ trans('panichd::lang.show-ticket-delete-comment') }}">
20+
<span class="fa fa-times" aria-label="{{ trans('panichd::lang.btn-delete') }}" style="color: gray"></span></button>
2121
</h6>
2222
</div>
2323
<div class="card-body">

src/Views/tickets/partials/comments/new_in_createedit_ticket_scripts.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
var _block = $(this).closest('.comment_block');
2525
if ($(this).data('note-text') == $(this).find('.text').text()){
2626
// Switch to comment
27+
$(this).find('i.fas').removeClass('fa-comment').addClass('fa-pencil-alt');
2728
_block.find('.input_response_type').val('reply');
2829
$(this).find('.text').text($(this).data('comment-text'));
2930
_block.find('.note_title').hide();
3031
_block.find('.comment_title').show();
3132
}else{
3233
// Switch to internal note
34+
$(this).find('i.fas').removeClass('fa-pencil-alt').addClass('fa-comment');
3335
_block.find('.input_response_type').val('note');
3436
$(this).find('.text').text($(this).data('note-text'));
3537
_block.find('.note_title').show();

0 commit comments

Comments
 (0)