PHP Classes

File: resources/views/jobs/form.blade.php

Recommend this page to a friend!
  Classes of Insolita   Laravel Interactive Jobs   resources/views/jobs/form.blade.php   Download  
File: resources/views/jobs/form.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Interactive Jobs
Run background jobs and monitor progress on a page
Author: By
Last change:
Date: 4 years ago
Size: 942 bytes
 

Contents

Class file image Download
@php
    /**
    * @var \App\Lib\InteractiveJobs\JobDefinition $definition
    */
@endphp
@extends('jobs.master')
@section('jobs_content')
    <div class="card">
        <div class="card-header">{{$definition->title()}} [{{$definition->name()}}]</div>
        <div class="card-body">
            <form method="post" action="{{route('jobs.create', ['job'=>$definition->name()])}}">
                @csrf
                @if($definition->formView())
                    @include($definition->formView())
                @else
                    @include('jobs.forms.confirm')
                @endif

                <div class="mt-4">
                    <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i> Run it</button>
                    <a href="{{ url()->previous() }}" class="btn btn-sm btn-outline-primary float-right">Go back</a>
                </div>
            </form>
        </div>
    </div>
@endsection