OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
13
app/Domain/Sprints/Templates/delSprint.blade.php
Normal file
13
app/Domain/Sprints/Templates/delSprint.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
@extends($layout)
|
||||
|
||||
@section('content')
|
||||
|
||||
<h4 class="widgettitle title-light">{!! __('headlines.delete_sprint') !!}</h4>
|
||||
|
||||
<form method="post" action="{{ BASE_URL }}/sprints/delSprint/{{ $id }}">
|
||||
<p>{!! __('text.are_you_sure_delete_sprint') !!}</p><br />
|
||||
<x-global::forms.button tag="input" inputType="submit" contentRole="primary" :labelText="__('buttons.yes_delete')" name="del" />
|
||||
<x-global::forms.button tag="a" contentRole="tertiary" link="{{ session('lastPage') }}">{!! __('buttons.back') !!}</x-global::forms.button>
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
74
app/Domain/Sprints/Templates/sprintdialog.blade.php
Normal file
74
app/Domain/Sprints/Templates/sprintdialog.blade.php
Normal file
@@ -0,0 +1,74 @@
|
||||
@extends($layout)
|
||||
|
||||
@section('content')
|
||||
|
||||
@php
|
||||
$currentSprint = $sprint;
|
||||
$id = '';
|
||||
if (isset($currentSprint->id)) {
|
||||
$id = $currentSprint->id;
|
||||
}
|
||||
$currentProject = session('currentProject');
|
||||
@endphp
|
||||
|
||||
<h4 class="widgettitle title-light"><i class="fa fa-list-1-2"></i> {!! __('label.sprint') !!} {{ $currentSprint->name }}</h4>
|
||||
|
||||
{!! $tpl->displayNotification() !!}
|
||||
|
||||
<form class="formModal" method="post" action="{{ BASE_URL }}/sprints/editSprint/{{ $id }}">
|
||||
|
||||
<label>{!! __('label.sprint_name') !!}</label>
|
||||
<x-global::forms.text-input name="name" value="{{ $currentSprint->name }}" placeholder="{{ __('label.sprint_name') }}" /><br />
|
||||
|
||||
<label>{!! __('label.project') !!}</label>
|
||||
@if (! empty($lockProject))
|
||||
{{-- Program sprint: project is fixed to the owning program and cannot be reassigned. --}}
|
||||
@php $lockedProject = $allAssignedprojects[0] ?? null; @endphp
|
||||
<input type="hidden" name="projectId" value="{{ $lockedProject['id'] ?? $currentProject }}" />
|
||||
<select disabled>
|
||||
<option selected>{{ $tpl->escape($lockedProject['name'] ?? '') }}</option>
|
||||
</select><br />
|
||||
@else
|
||||
<select name="projectId">
|
||||
@foreach ($allAssignedprojects as $project)
|
||||
<option value="{{ $project['id'] }}"
|
||||
@if ((isset($currentSprint) && ($currentSprint->projectId == $project['id'] || $currentProject == $project['id'])) || (! isset($currentSprint) && $currentProject == $project['id']))
|
||||
selected
|
||||
@endif
|
||||
>{{ $tpl->escape($project['name']) }}</option>
|
||||
@endforeach
|
||||
</select><br />
|
||||
@endif
|
||||
|
||||
<br /><br />
|
||||
<p>{!! __('label.sprint_dates') !!}</p><br/>
|
||||
<label>{!! __('label.first_day') !!}</label>
|
||||
<input type="text" name="startDate" autocomplete="off" value="{{ format($currentSprint->startDate)->date() }}" placeholder="{{ __('language.dateformat') }}" id="sprintStart" /><br />
|
||||
|
||||
<label>{!! __('label.last_day') !!}</label>
|
||||
<input type="text" name="endDate" autocomplete="off" value="{{ format($currentSprint->endDate)->date() }} " placeholder="{{ __('language.dateformat') }}" id="sprintEnd" />
|
||||
|
||||
<br />
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<x-global::forms.button tag="input" inputType="submit" contentRole="primary" :labelText="__('buttons.save')" />
|
||||
</div>
|
||||
<div class="col-md-6 align-right padding-top-sm">
|
||||
@if (isset($currentSprint->id) && $currentSprint->id != '' && $login::userIsAtLeast($roles::$editor))
|
||||
<a href="{{ BASE_URL }}/sprints/delSprint/{{ $currentSprint->id }}" class="delete formModal sprintModal"><i class="fa fa-trash"></i> {!! __('links.delete_sprint') !!}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@once
|
||||
@push('scripts')
|
||||
<script>
|
||||
leantime.ticketsController.initSprintDates();
|
||||
</script>
|
||||
@endpush
|
||||
@endonce
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user