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: 8 months 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


For more information send a message to info at phpclasses dot org.