Commit c024b991 authored by Nicolas Widart's avatar Nicolas Widart

Adding the create item view

parent 14865164
......@@ -9,4 +9,14 @@ class MenuController extends AdminBaseController
{
return View::make('menu::admin.index');
}
public function create()
{
return View::make('menu::admin.create');
}
public function store()
{
dd('form posted');
}
}
......@@ -2,10 +2,12 @@
return [
'titles' => [
'menu' => 'Menu management'
'menu' => 'Menu management',
'create menu item' => 'Create a menu item',
],
'breadcrumb' => [
'menu' => 'Menu management'
'menu' => 'Menu management',
'create menu item' => 'Create a menu item',
],
'button' => [
'create menu item' => 'Create a menu item'
......
@extends('core::layouts.master')
@section('content-header')
<h1>
{{ trans('menu::menu.titles.create menu item') }}
</h1>
<ol class="breadcrumb">
<li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('dashboard.menu.index') }}">{{ trans('menu::menu.breadcrumb.menu') }}</a></li>
<li>{{ trans('menu::menu.breadcrumb.create menu item') }}</li>
</ol>
@stop
@section('content')
{!! Form::open(['route' => ['dashboard.menu.store'], 'method' => 'post']) !!}
<div class="row">
<div class="col-md-12">
</div>
</div>
{!! Form::close() !!}
@stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment