@extends('layouts.master') @section('navigation') @include('local.managers.admins._new_navigation') @stop @section('main')
Create a Course
{{ Form::open(['action' => 'CoursesController@create','enctype'=>"multipart/form-data"]) }}
{{ Form::label("name",'Name')}} {{ Form::text('name', Input::old('name'), ['class'=>'form-control', 'placeholder' => "Introducción a la ..."])}}
{{ Form::label('code', 'Code') }} {{ Form::text('code', Input::old('code'), ['class' => 'form-control', 'placeholder' => 'TEST', 'maxLength' => 4]) }}
{{ Form::label('number', 'Number') }} {{ Form::text('number', Input::old('number'), ['class' => 'form-control', 'placeholder' => '3001', 'maxLength' => 4]) }}
{{ Form::label('section', 'Section') }} {{ Form::text('section', Input::old('section'), ['class' => 'form-control', 'placeholder' => '001', 'maxLength' => 3]) }}
{{ Form::label('program', 'Program') }}
{{ Form::label('user_id', 'Professor') }}
{{ Form::label("semester_id",'Semester')}}

{{ Form::submit('Create Course', ['class' => 'btn btn-primary btn-block', 'name' => 'create_course']) }} {{ Form::close() }}
@if (Session::has('courses'))

The following courses were updated:

    @foreach (json_decode(Session::get('courses')) as $course)
  • @if (Session::has('show_sections')) {{ $course->code }}{{ $course->number }}-{{ $course->section }} @else {{ $course->code }}{{ $course->number }} @endif
  • @endforeach
@endif
Reassign Sections' Professors

Use this to reassign a section to a specific professor. Write down the code, number and section of the course. Then, choose a professor from the list. All fields are required.

{{ Form::open(['action' => 'CoursesController@update']) }}
{{ Form::label('code_prof', 'Code') }} {{ Form::text('code_prof', Input::old('code_prof'), ['class' => 'form-control', 'placeholder' => 'TEST', 'maxLength' => 4]) }}
{{ Form::label('number_prof', 'Number') }} {{ Form::text('number_prof', Input::old('number_prof'), ['class' => 'form-control', 'placeholder' => '3001', 'maxLength' => 4]) }}
{{ Form::label('section_prof', 'Section') }} {{ Form::text('section_prof', Input::old('section_prof'), ['class' => 'form-control', 'placeholder' => '001', 'maxLength' => 3]) }}
{{--
{{ Form::label('user_prof', 'User') }}
--}}
{{ Form::label('semester_prof', 'Semester') }}

{{ Form::submit('Create Course', ['class' => 'btn btn-primary btn-block', 'name' => 'create_professor']) }} {{ Form::close() }}
@stop @section('javascript') // -------------------------------------------------------------------------- // Page load // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // Functions // -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // Events // -------------------------------------------------------------------------- @stop