@extends('layouts.master') @section('head') @endsection @section('content') @if(Session::has('success') && Session::get('success')) @elseif(Session::has('success') && !Session::get('success')) @elseif(Session::has('authorized') && !Session::get('authorized')) @else

Add New COECIS Alert

{!! Form::open(['method' => 'post', 'route' => $routeArray, 'class' => 'form-basic']) !!}
{!! Form::label('netid', 'NetID', array('class' => 'required'.($errors->has('netid')?' error':''))) !!}
{!! Form::text('netid', $data["netid"], [ 'class' => 'form-control mini', 'aria-required' => 'true', "readonly" => "true", 'maxlength' => '8', 'aria-invalid' => ($errors->has('netid')?"true":"false") ]) !!}
{{ $errors->first('netid') }}
{!! Form::label('products', 'Subsites for Alert') !!}
{!! Form::select('products', $products, $data["products"], [ 'multiple' => 'multiple', 'name' => 'products[]', 'class' => 'form-control large', 'aria-invalid' => ($errors->has('products')?"true":"false") ]) !!}
Choose the subsite(s) this alert will be on by typing and selecting the name of each subsite.
{{ $errors->first('products') }}
@if(isset($data)) {!! Form::label('units', 'Units', array('class' => 'required'.($errors->has('units')?' error':''))) !!}
{!! Form::select('units', $units, $data["units"], [ 'multiple' => 'multiple', 'name' => 'units[]', 'class' => 'form-control large', 'aria-required' => 'true', 'aria-invalid' => ($errors->has('units')?"true":"false") ]) !!}
Choose the unit(s) affected by this alert by typing and selecting the name of each unit.
{{ $errors->first('units') }}
{!! Form::label('short_subject', 'Short Subject', array('class' => 'required'.($errors->has('short_subject')?' error':''))) !!}
{!! Form::text('short_subject', $data["short_subject"], [ 'class' => 'form-control medium', 'aria-required' => 'true', 'maxlength' => '75', 'aria-invalid' => ($errors->has('short_subject')?"true":"false") ]) !!}
{{strlen($data["short_subject"])}}/75
{{ $errors->first('short_subject') }}