OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
39
app/Domain/Widgets/Templates/widgetManager.blade.php
Normal file
39
app/Domain/Widgets/Templates/widgetManager.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<div class="" style="min-width:50%;">
|
||||
<h1>{{ __("headlines.widget_manager") }}</h1>
|
||||
<x-global::forms.button tag="a" contentRole="secondary" class="pull-right" link="{{ BASE_URL }}/dashboard/home?resetDashboard=true" style="margin-bottom:10px;"><i class="fa-solid fa-arrow-rotate-left"></i> Reset Dashboard</x-global::forms.button>
|
||||
<p>{{ __("text.choose_widgets") }}</p>
|
||||
<br />
|
||||
<div class="row">
|
||||
@foreach($availableWidgets as $widgetId => $widget)
|
||||
@if($widget->alwaysVisible !== true)
|
||||
@php( $widget->name = __($widget->name))
|
||||
@php( $widget->description = __($widget->description))
|
||||
<div class="col-md-4">
|
||||
<div class="projectBox tw-p-m tw-min-w-[250px] @if(in_array($widgetId, array_keys($newWidgets)) && !isset($activeWidgets[$widgetId])) newWidget @endif">
|
||||
<h5>{{ $widget->name }}</h5>
|
||||
<p>{!! $widget->description !!} </p>
|
||||
<div class="right">
|
||||
@if($widget->alwaysVisible == false)
|
||||
<input
|
||||
type="checkbox"
|
||||
class="toggle"
|
||||
id="widget-toggle-{{ $widget->id }}"
|
||||
onclick="leantime.widgetController.toggleWidgetVisibility('{{ $widget->id }}', this, {{ json_encode($widget) }})"
|
||||
@if(isset($activeWidgets[$widget->id]))
|
||||
checked='checked'
|
||||
@if(isset($activeWidgets[$widget->id]->isNew) && $activeWidgets[$widget->id]->isNew)
|
||||
data-is-new="true"
|
||||
@endif
|
||||
@endif
|
||||
/>
|
||||
<label for="widget-toggle-{{ $widget->id }}"></label>
|
||||
@endif
|
||||
</div>
|
||||
<div class="clearall"></div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user