diff --git a/app/Domain/Files/Templates/components/file-manager.blade.php b/app/Domain/Files/Templates/components/file-manager.blade.php index 0af676aef..6ea6bcf6f 100644 --- a/app/Domain/Files/Templates/components/file-manager.blade.php +++ b/app/Domain/Files/Templates/components/file-manager.blade.php @@ -31,7 +31,7 @@
-
+
@displayNotification()
__('headline.browse_files_headline') ?>
@@ -64,7 +64,7 @@
-
+
diff --git a/app/Domain/Goalcanvas/Templates/components/canvas.blade.php b/app/Domain/Goalcanvas/Templates/components/canvas.blade.php index 7a864b57d..2a8509390 100644 --- a/app/Domain/Goalcanvas/Templates/components/canvas.blade.php +++ b/app/Domain/Goalcanvas/Templates/components/canvas.blade.php @@ -22,9 +22,9 @@ href="#/goalcanvas/editCanvasItem?type=goal&canvasId={{ $canvasId }}"> Create New Goal -
- - {{ $canvas->title }} +
+ + {{ $canvasTitle }}
diff --git a/app/Domain/Ideas/Js/ideasController.js b/app/Domain/Ideas/Js/ideasController.js index dc885b2ff..43685042a 100644 --- a/app/Domain/Ideas/Js/ideasController.js +++ b/app/Domain/Ideas/Js/ideasController.js @@ -176,11 +176,55 @@ export const initIdeaKanban = function (statusList) { }); }; +var initStatusDropdown = function () { + jQuery("body").on( + "click", + ".statusDropdown .dropdown .menu li a", + function () { + + var value = jQuery(this).attr("data-value"); + var dataValue = value.split("_"); + // var dataValue = jQuery(this).attr("data-value").split("_"); + var dataLabel = jQuery(this).attr('data-label'); + + if (dataValue.length == 3) { + var canvasItemId = dataValue[0]; + var status = dataValue[1]; + var statusClass = dataValue[2]; + + + jQuery.ajax( + { + type: 'PATCH', + url: appUrl + '/api/ideas', + data: + { + id : canvasItemId, + box:status + } + } + ) + // .done( + // function () { + // jQuery("#statusDropdownMenuLink" + canvasItemId + " span.text").text(dataLabel); + // jQuery("#statusDropdownMenuLink" + canvasItemId).removeClass().addClass("" + statusClass + " dropdown-toggle f-left status "); + // jQuery.growl({message: leantime.i18n.__("short_notifications.status_updated")}); + + // } + // ); + } + } + ); + +}; + // Make public what you want to have public, everything else is private -export default { - initMasonryWall: initMasonryWall, +export const ideasController= { + // initMasonryWall: initMasonryWall, initBoardControlModal: initBoardControlModal, initWallImageModals: initWallImageModals, setKanbanHeights: setKanbanHeights, - initIdeaKanban: initIdeaKanban + initIdeaKanban: initIdeaKanban, + initStatusDropdown: initStatusDropdown + }; diff --git a/app/Domain/Ideas/Templates/showBoards.blade.php b/app/Domain/Ideas/Templates/showBoards.blade.php index 5aa922167..3c65ccadd 100644 --- a/app/Domain/Ideas/Templates/showBoards.blade.php +++ b/app/Domain/Ideas/Templates/showBoards.blade.php @@ -156,8 +156,9 @@ class="active">

- + +
+ Saving... +
@@ -51,40 +54,40 @@


- __('label.planned_hours'); ?>: planHours; ?>
- __('label.booked_hours'); ?>: get('timesheetsAllHours'); ?>
- __('label.actual_hours_remaining'); ?>:
+ {!! __('label.planned_hours') !!}: {{ $ticket->planHours }}
+ {!! __('label.booked_hours') !!}: {{ $tpl->get('timesheetsAllHours') }}
+ {!! __('label.actual_hours_remaining') !!}: {{ $remainingHours }}

- - diff --git a/app/Domain/Tickets/Templates/components/type-select.blade.php b/app/Domain/Tickets/Templates/components/type-select.blade.php index 871cff0f8..91fc23a24 100644 --- a/app/Domain/Tickets/Templates/components/type-select.blade.php +++ b/app/Domain/Tickets/Templates/components/type-select.blade.php @@ -2,19 +2,23 @@ 'contentRole' => 'default', 'variant' => '', 'ticketTypes' => '', - 'labelPosition' => 'top' + 'labelPosition' => 'top', ]) @php - $typeIcons = array('story' => 'fa-book', 'task' => 'fa-check-square', 'subtask' => 'fa-diagram-successor', 'bug' => 'fa-bug'); + $typeIcons = [ + 'story' => 'fa-book', + 'task' => 'fa-check-square', + 'subtask' => 'fa-diagram-successor', + 'bug' => 'fa-bug', + ]; @endphp - + @foreach ($ticketTypes as $type) - - {{ __("label." . strtolower($type)) }} + + + {!! __('label.' . strtolower($type)) !!} @endforeach diff --git a/app/Domain/Tickets/Templates/includes/ticketHeader.blade.php b/app/Domain/Tickets/Templates/includes/ticketHeader.blade.php index 2e6fe6a79..adbaaec6f 100644 --- a/app/Domain/Tickets/Templates/includes/ticketHeader.blade.php +++ b/app/Domain/Tickets/Templates/includes/ticketHeader.blade.php @@ -107,7 +107,7 @@ class="wikiModal inlineEdit" {{ $tpl->__("links.create_sprint_no_icon") }} - +
  • - {!! __("links.new_with_icon") !!} + {!! __("links.new_with_icon") !!} @foreach ($newField as $option) diff --git a/app/Domain/Tickets/Templates/partials/newTicketModal.blade.php b/app/Domain/Tickets/Templates/partials/newTicketModal.blade.php index b282ab43b..8a4c9e935 100644 --- a/app/Domain/Tickets/Templates/partials/newTicketModal.blade.php +++ b/app/Domain/Tickets/Templates/partials/newTicketModal.blade.php @@ -1,6 +1,6 @@ -@php use Leantime\Core\Support\EditorTypeEnum; +@php use Leantime\Core\Support\EditorTypeEnum; -$tags = explode(',', $ticket->tags); + $tags = explode(',', $ticket->tags); @endphp @@ -14,18 +14,20 @@
    -
    + {{-- --}} + {{-- @include("tickets::includes.ticketDetails") --}} - - - + placeholder="Add Title" variant="title" /> + + + +
    @@ -39,17 +41,17 @@
    - + - +
    Saving... diff --git a/app/Domain/Tickets/Templates/partials/showTicket.blade.php b/app/Domain/Tickets/Templates/partials/showTicket.blade.php index cd0dbeaf4..c20f2be48 100644 --- a/app/Domain/Tickets/Templates/partials/showTicket.blade.php +++ b/app/Domain/Tickets/Templates/partials/showTicket.blade.php @@ -36,10 +36,12 @@
    - - + + @foreach ($tags as $tag) @@ -47,16 +49,15 @@ @endforeach - - -
    +
    - @if (!empty($ticket->description)) - {!! $ticket->description !!} - @else -

    Add Description

    - @endif +

    + @if (!empty($ticket->description)) + {!! $ticket->description !!} + @else + Add Description + @endif +

    @@ -68,11 +69,12 @@
    - + {{-- TODO: This should just close the modal --}} - +
    Saving...
    @@ -82,7 +84,7 @@
    - + @@ -106,9 +108,8 @@ + :priorities="$priorities" :efforts="$efforts" :remainingHours="$remainingHours" + url="{{ BASE_URL }}/hx/tickets/showTicket/{{ $ticket->id }}" /> @@ -124,6 +125,13 @@ //All accordions start open //leantime.editorController.initComplexEditor(); //tinymce.activeEditor.hide() + + htmx.on('htmx:afterRequest', (event) => { + if (event.detail.successful && event.target.matches('form')) { + jQuery('#descriptionEditor').hide(); + jQuery('.viewDescription').show(); + } + }); }); //leantime.editorController.initComplexEditor(); diff --git a/app/Domain/Tickets/Templates/showKanban.blade.php b/app/Domain/Tickets/Templates/showKanban.blade.php index 7a2da2d70..2e94fa33f 100644 --- a/app/Domain/Tickets/Templates/showKanban.blade.php +++ b/app/Domain/Tickets/Templates/showKanban.blade.php @@ -98,23 +98,27 @@ class="flex justify-between items-center widgettitle title-primary title-border-
    - - + -
    - - Save - - - - {{ __('links.cancel') }} - + + + + Save + + + + {{ __('links.cancel') }} + +
    + Saving...
    @@ -168,26 +172,29 @@ class="flex justify-between items-center widgettitle title-primary title-border-