Commit 9fada112 authored by Nicolas Widart's avatar Nicolas Widart

Changing the style of the dragable items

parent 11219a5a
......@@ -34,7 +34,7 @@
.dd-handle {
display: block;
margin: 5px 0;
padding: 5px 10px;
padding: 4px 10px;
color: #333;
text-decoration: none;
font-weight: bold;
......@@ -56,7 +56,7 @@
display: block;
position: relative;
cursor: pointer;
float: left;
float: right;
width: 25px;
height: 20px;
margin: 5px 0;
......
......@@ -39,7 +39,7 @@
.dd-handle {
display: block;
margin: 5px 0;
padding: 5px 10px;
padding: 4px 10px;
color: #333;
text-decoration: none;
font-weight: bold;
......@@ -63,7 +63,7 @@
display: block;
position: relative;
cursor: pointer;
float: left;
float: right;
width: 25px;
height: 20px;
margin: 5px 0;
......
......@@ -3,6 +3,7 @@
use Illuminate\Routing\Redirector;
use Laracasts\Flash\Flash;
use Modules\Menu\Entities\Menu;
use Modules\Menu\Entities\Menuitem;
use Modules\Menu\Http\Requests\CreateMenuItemRequest;
use Modules\Menu\Repositories\MenuItemRepository;
......@@ -36,6 +37,11 @@ class MenuItemController
return $this->redirector->route('dashboard.menu.edit', [$menu->id]);
}
public function edit(Menu $menu, Menuitem $menuitem)
{
dd('edit form');
}
public function update(Menu $menu)
{
}
......
......@@ -34,8 +34,8 @@
<ol class="dd-list">
<?php foreach($menuItems as $menuItem): ?>
<li class="dd-item" data-id="{{ $menuItem->id }}">
<a href="{{ URL::route('dashboard.menuitem.edit', [$menu->id, $menuItem->id]) }}" class="btn btn-sm btn-info" style="float:left; margin-right: 15px;">Edit</a>
<div class="dd-handle">
<a href="" class="btn btn-sm btn-info">Edit</a>
{{ $menuItem->title }}
</div>
</li>
......
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