@extends('admin.dashboard') @section('title', 'Edit Element') @section('stylesheets') @endsection @section('content')

Dashboard OPALESCE Version 1.0

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

Edit Element to Microunit: {{$microunit->muid}}

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::model($element, ['route'=> ['admin.element.update', $element->id], 'method'=>'PUT', 'class'=> 'form-horizontal', 'files'=> true ]) !!}
{{ Form::label('title', 'Title *', ['class'=>'col-lg-2 control-label', 'for'=>'validate-title']) }}
{{ Form::text('title', null, array( 'class' => 'form-control title', 'name'=> 'emtitle', 'id' => 'emtitle', 'placeholder' => 'Title...', 'required'=> '')) }}
{{ Form::label('element_id', 'Element', ['class'=>'col-lg-2 control-label', 'for'=>'validate-element']) }}
{{ Form::select('element_id', $typeselements, null, [ 'class' => 'form-control elementid', 'placeholder' => 'Element Type', 'required' =>'', 'id'=>'elementid', 'name' => 'element_id' ])}}
{{ Form::label('language_id', 'Language', ['class'=>'col-lg-2 control-label', 'for'=>'validate-element']) }}
{{ Form::select('language_id', $languages, null, [ 'class' => 'form-control', 'placeholder' => 'Language', 'required' =>'', 'name'=>'emlanguage_id' ])}}
{{ Form::label('state_id', 'Status', ['class'=>'col-lg-2 control-label', 'for'=>'validate-element']) }}
{{ Form::select('state_id', $status, null, [ 'class' => 'form-control elementid', 'placeholder' => 'Status', 'required' =>'', 'id'=>'state_id', 'name' => 'state_id' ])}}
@include('admin.elements.modals.image')
{{ Form::label('filename', 'File', ['class'=>'col-lg-2 control-label', 'for'=>'validate-language']) }}
{{ Form::label('description', 'Description', ['class'=>'col-lg-1 control-label', 'for'=>'validate-desc']) }}
{{ Form::textarea('description', null, array( 'class' => 'form-control', 'placeholder' => 'Description...', 'id' => 'emdescription', 'rows'=> '5')) }}
{{ Form::label('short_description', 'Short Description', ['class'=>'col-lg-1 control-label short-description', 'for'=>'validate-desc']) }}
{{ Form::textarea('short_keywords', null, array( 'class' => 'form-control short-description', 'placeholder' => 'Short Description...', 'id' => 'short-description', 'rows'=> '5')) }}
{{ Form::label('audiofile', 'Audio File', ['class'=>'col-lg-1 control-label audio-file', 'for'=>'validate-desc']) }}
{!! Form::close() !!}
@endsection @section('javascripts') @endsection