@extends('author.dashboard') @section('title', 'Edit Microunit') @section('stylesheets') @endsection @section('content')

Dashboard OPALESCE Version 1.0

{!! Breadcrumbs::render('autheditmicrounits', $microunit) !!}

Edit Microunit

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::model($microunit, ['route'=> ['authpanel.microunits.update', $microunit->id], 'method'=>'PUT', 'class'=> 'form-horizontal', 'files'=> true ]) !!}

Microunit Main Info

{{ Form::label('language_id', 'Language *', ['class'=>'col-lg-3 control-label', 'for'=>'validate-language']) }}
{{ Form::select('language_id', $languages, null, ['class' => 'form-control', 'placeholder' => 'Language', 'required' =>'', 'id'=>'mu-language' ])}}
{{ Form::label('license_id', 'License *', ['class'=>'col-lg-3 control-label', 'for'=>'validate-license']) }}
{{ Form::select('license_id', $licenses, null, ['class' => 'form-control', 'placeholder' => 'License', 'required' =>'', 'id'=>'mu-license' ])}}
{{ Form::label('category_id', 'Topic *', ['class'=>'col-lg-3 control-label', 'for'=>'validate-topic']) }}
{{ Form::select('category_id', $categories, null, ['class' => 'form-control', 'placeholder' => 'Topic', 'required' =>'', 'id'=>'validate-select' ])}}
{{ Form::label('title', 'Title *', ['class'=>'col-lg-1 control-label', 'for'=>'validate-title']) }}
{{ Form::text('title', null, array( 'class' => 'form-control', 'name'=> 'title', 'id' => 'mu-title', 'placeholder' => 'Title...', 'required')) }}
{{ Form::label('image', 'Image *', ['class' => 'col-lg-6 control-label']) }}
{{ Form::file('image', array( 'class' => 'form-control', 'id' => 'mu-file' )) }}
@include('admin.microunits.modals.image')
{{ Form::label('material', 'I take full responsibility for the uploaded material', ['class'=>'col-lg-11 control-label']) }}
{{ Form::checkbox('material', 1, true) }}

Microunit Description & Target Group

{{ Form::label('description', 'Description *', ['class'=>'col-lg-2 control-label', 'for'=>'validate-desc']) }}
{{ Form::textarea('description', null, array( 'class' => 'form-control', 'placeholder' => 'Description...', 'rows'=> '7', 'id' => 'mu-desc')) }}
{{ Form::label('target', 'Target *', ['class'=>'col-lg-2 control-label', 'for'=>'validate-desc']) }}
{{ Form::textarea('target', null, array('class' => 'form-control', 'placeholder' => 'Description...', 'rows'=> '7', 'id'=>'mu-target')) }}

Microunit Tags

{{ Form::label('tags', 'Tags:', ['class'=>'col-sm-2 control-label', 'for'=>'validate-topic']) }}
{{ Form::select('tag_id[]', $tags, null, [ 'class' => 'form-control select2-multi', 'id'=>'tag_id[]', 'multiple' => 'multiple' ])}}

Microunit Text Info

{{ Form::label('short_description', 'Short Desc', ['class'=>'col-lg-1 control-label', 'for'=>'validate-desc']) }}
{{ Form::textarea('short_description', null, array('class' => 'form-control', 'placeholder' => 'Short Description...', 'rows'=> '5')) }}
{{ Form::label('experiences', 'Experiences', ['class'=>'col-lg-2 control-label', 'for'=>'validate-desc']) }}
{{ Form::textarea('experiences', null, array('class' => 'form-control', 'placeholder' => 'Experiences...', 'rows'=> '5')) }}
{{ Form::label('learning_styles', 'Learning Styles', ['class'=>'col-lg-2 control-label', 'for'=>'validate-desc']) }}
{{ Form::textarea('learning_styles', null, array('class' => 'form-control', 'placeholder' => 'Learning Styles...', 'rows'=> '5')) }}
{{ Form::label('prerequisites', 'Pre-requisites', ['class'=>'col-lg-2 control-label', 'for'=>'validate-desc']) }}
{{ Form::textarea('prerequisites', null, array('class' => 'form-control', 'placeholder' => 'Pre-requisites...', 'rows'=> '5')) }}
{{ Form::label('funding', 'Funding', ['class'=>'col-lg-2 control-label', 'for'=>'validate-desc']) }}
{{ Form::textarea('funding', null, array('class' => 'form-control', 'placeholder' => 'Funding...', 'rows'=> '5')) }}
{!! Form::close() !!}
@endsection @section('javascripts') @endsection