OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
53
app/Domain/Tickets/Templates/moveTicket.blade.php
Normal file
53
app/Domain/Tickets/Templates/moveTicket.blade.php
Normal file
@@ -0,0 +1,53 @@
|
||||
@if ($ticket->type == 'milestone')
|
||||
<h4 class="widgettitle title-light">{!! __('headline.move_milestone') !!} </h4>
|
||||
@else
|
||||
<h4 class="widgettitle title-light">{!! __('headline.move_todo') !!} </h4>
|
||||
@endif
|
||||
|
||||
|
||||
<form method="post" action="{{ BASE_URL }}/tickets/moveTicket/{{ $ticket->id }}" class="formModal">
|
||||
<h3>#{{ $ticket->id }} - {{ $ticket->headline }}</h3> <br />
|
||||
<p>
|
||||
@if ($ticket->type == 'milestone')
|
||||
{!! __('text.moving_milestones') !!}
|
||||
@else
|
||||
{!! __('text.moving') !!}
|
||||
@endif
|
||||
|
||||
<br /><br />
|
||||
</p>
|
||||
|
||||
<select id="projectSelector" name="projectId">
|
||||
@php
|
||||
$i = 0;
|
||||
$lastClient = '';
|
||||
foreach ($projects as $projectRow) {
|
||||
if ($lastClient != $projectRow['clientName']) {
|
||||
$lastClient = $projectRow['clientName'];
|
||||
if ($i > 1) {
|
||||
echo '</optgroup>';
|
||||
}
|
||||
echo "<optgroup label='".$tpl->escape($projectRow['clientName'])."'> ";
|
||||
}
|
||||
echo "<option value='".$projectRow['id']."'>".$tpl->escape($projectRow['name']).'</option>';
|
||||
$i++;
|
||||
}
|
||||
@endphp
|
||||
</select><br /><br /><br /><br />
|
||||
<br />
|
||||
<x-global::forms.button tag="input" inputType="submit" contentRole="primary" :labelText="__('buttons.move')" name="move" />
|
||||
<x-global::forms.button tag="a" class="pull-right" link="javascript:void(0);" onclick="jQuery.nmTop().close();" contentRole="tertiary">{!! __('buttons.back') !!}</x-global::forms.button>
|
||||
<div class="clearall"></div>
|
||||
<br />
|
||||
</form>
|
||||
|
||||
|
||||
<script>
|
||||
@if (isset($_GET['closeModal']))
|
||||
jQuery.nmTop().close();
|
||||
@endif
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
jQuery("#projectSelector").chosen();
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user