@extends('layouts.master') @section('page_title', $page_title) @section('content')
{{ Form::page_header($page_title, "business", null, ($csa_job->is_testing_job ? 'Testing Mode' : null)) }} {{ Form::open(['url' => $post_url]) }}
@if (isset($message)) {{ $message }} @endif
{{ Form::hidden('is_testing_job', $csa_job->is_testing_job ? 1:0, ['id' => 'is_testing_job']) }} {{ Form::hidden('job_type', $csa_job->job_type, ['id' => 'job_type']) }} @if ($csa_job->is_testing_job) @if ($csa_job->can_manage_job_testing())
{{ Form::button_ex('Run Test', "run_test()", 'run_test_btn') }} {{ Form::button_save(\App\Http\Controllers\CSA\CSAJobController::GO_LIVE, "action") }}
@endif @else @if ($csa_job->can_manage_job_testing())
{{ Form::button_save(\App\Http\Controllers\CSA\CSAJobController::TESTING_MODE, "action") }}
@endif @endif
{{ Form::row_text_inline('name', 'Name', $csa_job->name, 2, 4, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_textarea_inline('description', 'Description', $csa_job->description, 2, 10, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_select_inline('default_reviewer', 'Default Reviewer', $csa_job->default_reviewer, $csa_job->csa_job_reviewer_select(), 2, 4, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @if (!$csa_job->is_testing_job) {{ Form::row_checkbox_inline('hold', 'Hold', $csa_job->hold, 2, 10) }} @endif {{ Form::separator_row('grey-divider') }} @if(\App\Models\CSA\CSA_Job::can_see_sql()) {{ Form::row_label_inline('Required Fields', $csa_job->required_fields, '', 2, 10, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_textarea_inline('select_sql', 'Sql', $csa_job->select_sql, 2, 10, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @if ($csa_job->error_message) {{ Form::row_label_inline('Error Message', $csa_job->error_message, 'red-label', 2, 10, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @endif {{ Form::row_checkbox_inline('check_for_expired', 'Check for Expired Items', $csa_job->check_for_expired, 2, 10) }} {{ Form::separator_row('grey-divider') }} @endif @if (!$csa_job->is_testing_job) @if ($csa_job->csa_job) {{ Form::row_label_inline('Last Run', $csa_job->last_run_label, '', 2, 10, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @endif
{{ Form::label_ex('Run Interval', \App\Helpers\FormComponentHelper::SIZE_MEDIUM, '', 2) }}
{{ Form::number_ex('run_interval_len', $csa_job->run_interval_len) }} {{ Form::select_ex('run_interval_type', $csa_job->run_interval_type, \App\Models\CSA\CSA_Job::$interval_type_map) }}
@if ($csa_job->csa_job)
{{ Form::label_ex('Next Run', \App\Helpers\FormComponentHelper::SIZE_MEDIUM, '', 2) }}
{{ Form::hidden('next_run_date', $csa_job->next_run_date, ['id' => 'next_run_date']) }} {{ Form::label_styled2($csa_job->next_run_label, '', 'next_run_label', null, \App\Helpers\FormComponentHelper::SIZE_LARGE) }}
@endif {{ Form::separator_row('grey-divider') }} @endif
{{ Form::label_ex('Contact Interval', \App\Helpers\FormComponentHelper::SIZE_MEDIUM, '', 2) }}
{{ Form::number_ex('contact_interval_len', $csa_job->contact_interval_len) }} {{ Form::select_ex('contact_interval_type', $csa_job->contact_interval_type, \App\Models\CSA\CSA_Job::$interval_type_map) }}
{{ Form::separator_row('grey-divider') }} {{ Form::row_text_inline('subject_line', 'Subject Line', $csa_job->subject_line, 2, 10, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::row_textarea_inline('email_body', 'Email Body', $csa_job->email_body, 2, 10, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} {{ Form::separator_row_bottom('grey-divider') }}
{{ Form::button_save() }} {{ Form::button_cancel_trackback() }}
{{ Form::close() }}
@endsection @section('page_script') @include('shared_script._ajax_post_script') @endsection @section('page_style') @endsection