You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
3.3 KiB
79 lines
3.3 KiB
@extends('layouts.app')
|
|
|
|
@section('title', trans('job.add_from_other_project') . ' | ' . $project->name)
|
|
|
|
@section('content')
|
|
@include('projects.partials.breadcrumb',['title' => trans('job.add_from_other_project')])
|
|
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><h3 class="panel-title">{{ trans('job.add_from_other_project') }}</h3></div>
|
|
<div class="panel-body">
|
|
{!! Form::open(['method'=>'get']) !!}
|
|
<div class="form-group">
|
|
<label for="project_id" class="text-primary">{{ trans('project.project') }}</label>
|
|
<div class="input-group">
|
|
{!! Form::select('project_id', $projects, request('project_id'), [
|
|
'class' => 'form-control customer-select',
|
|
'placeholder' => '-- Pilih Project --'
|
|
]) !!}
|
|
<span class="input-group-btn"><button class="btn btn-default btn-sm" type="submit">{{ trans('project.show_jobs') }}</button></span>
|
|
</div>
|
|
</div>
|
|
{!! Form::close() !!}
|
|
@if ($selectedProject)
|
|
{!! Form::open(['route'=>['jobs.store-from-other-project', $project->id]]) !!}
|
|
<ul class="list-unstyled">
|
|
@forelse($selectedProject->jobs as $key => $job)
|
|
<li>
|
|
<label for="job_id_{{ $job->id }}">
|
|
{!! Form::checkbox('job_ids[' . $job->id . ']', $job->id, null, ['id' => 'job_id_' . $job->id]) !!}
|
|
{{ $job->name }}</label>
|
|
<ul style="list-style-type:none">
|
|
@foreach($job->tasks as $task)
|
|
<li>
|
|
<label for="{{ $job->id }}_task_id_{{ $task->id }}" style="font-weight:normal">
|
|
{!! Form::checkbox($job->id . '_task_ids[' . $task->id . ']', $task->id, null, ['id' => $job->id . '_task_id_' . $task->id]) !!}
|
|
{{ $task->name }}</label>
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</li>
|
|
@empty
|
|
<li><div class="alert alert-info">Tidak ada fitur</div></li>
|
|
@endforelse
|
|
</ul>
|
|
@else
|
|
<div class="alert alert-info">Pilih salah satu project</div>
|
|
@endif
|
|
{!! Form::submit(trans('job.create'), ['class'=>'btn btn-primary']) !!}
|
|
{!! Form::close() !!}
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
{!! link_to_route('projects.jobs.index', trans('app.cancel'), [$project->id], ['class'=>'btn btn-default']) !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
@include('projects.partials.project-show')
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
@section('ext_js')
|
|
{!! Html::script(url('assets/js/plugins/autoNumeric.min.js')) !!}
|
|
@endsection
|
|
|
|
@section('script')
|
|
<script>
|
|
(function() {
|
|
$('#price').autoNumeric("init",{
|
|
aSep: '.',
|
|
aDec: ',',
|
|
mDec: '0'
|
|
});
|
|
})();
|
|
</script>
|
|
@endsection
|