OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
84
app/Domain/Connector/Templates/integrationImport.blade.php
Normal file
84
app/Domain/Connector/Templates/integrationImport.blade.php
Normal file
@@ -0,0 +1,84 @@
|
||||
@extends($layout)
|
||||
|
||||
@section('content')
|
||||
|
||||
@php
|
||||
$providerFields = $providerFields ?? [];
|
||||
$provider = $provider ?? null;
|
||||
$leantimeFields = $leantimeFields ?? [];
|
||||
$numberOfFields = $maxFields ?? 0;
|
||||
$values = $values ?? [];
|
||||
$flags = $flags ?? [];
|
||||
$fields = $fields ?? [];
|
||||
$urlAppend = '';
|
||||
if (isset($integrationId) && is_numeric($integrationId)) {
|
||||
$urlAppend = '&integrationId=' . $integrationId;
|
||||
}
|
||||
@endphp
|
||||
|
||||
<div class="pageheader">
|
||||
<div class="pageicon"><i class="fa-solid fa-circle-nodes"></i></div>
|
||||
<div class="pagetitle">
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<h1>{!! __('headlines.integrations') !!} // {{ $provider->name }} </h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="maincontent">
|
||||
<div class="maincontentinner">
|
||||
@include('connector::submodules.importProgress')
|
||||
</div>
|
||||
<div class="maincontentinner center">
|
||||
{!! $tpl->displayNotification() !!}
|
||||
|
||||
<h5 class="subtitle">Review</h5>
|
||||
|
||||
@if (!empty($flags))
|
||||
<p style="font-style: oblique">Please resolve the following errors and reconnect your integration:</p>
|
||||
<ul style="padding-left: 20px; margin-bottom: 20px;">
|
||||
@php $messages = []; @endphp
|
||||
@foreach ($flags as $flag)
|
||||
@if (!in_array($flag, $messages))
|
||||
<li style="margin-right: 10px; color: red; font-style: oblique;">{{ $flag }}</li>
|
||||
@php $messages[] = $flag; @endphp
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
<x-global::forms.button tag="a" class="pull-left" link="{{ BASE_URL }}/connector/integration?provider={{ $provider->id }}&step=fields{{ $urlAppend }}" contentRole="tertiary">Go Back</x-global::forms.button>
|
||||
@else
|
||||
<x-global::forms.button tag="a" class="right" link="{{ BASE_URL }}/connector/integration?provider={{ $provider->id }}&step=import" contentRole="primary">Confirm</x-global::forms.button>
|
||||
@endif
|
||||
<div class="clearall"></div>
|
||||
|
||||
<p>All set, we are importing the data you see below.</p>
|
||||
<br />
|
||||
|
||||
<table width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($fields as $sourceField => $leantimeField)
|
||||
<th>{{ $leantimeField['leantimeField'] }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($values as $record)
|
||||
<tr>
|
||||
@foreach ($record as $value)
|
||||
<td>{{ $value }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
|
||||
<div class="clearall"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user