Ejemplo n.º 1
0
/**
 * Created by PhpStorm.
 * User: crosscomp
 * Date: 23.01.2015
 * Time: 12:23
 */
use Lang\Lang;
?>
<!--Begin Container-->
<div class="container">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h1>Edit Menu Item</h1>
        </div>
        <form method="post" action="<?php 
echo Helpers\Uri::makeUriFromId('Admin/Menus/Edit/' . $item->id);
?>
" enctype="multipart/form-data" id="form">
            <div class="panel-body">
                <div class="group container-fluid">
                    <div class="row col-sm-6 pull-right">
                        <div class="form-group col-sm-13">
                            <label for="alias">Slug</label>
                            <input type="text" name="slug" value="<?php 
echo $item->slug;
?>
" class="form-control" id="slug" placeholder="Slug" required>
                        </div>
                        <div class="form-group col-sm-9">
                            <label for="parentId">Select Parent</label>
                            <select name="parentId">
Ejemplo n.º 2
0
/**
 * Created by PhpStorm.
 * User: crosscomp
 * Date: 22.01.2015
 * Time: 11:54
 */
?>
<div class="container-fluid">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3>Categories List</h3>
        </div>
        <div class="panel-body">
            <a class="btn btn-primary" href="<?php 
echo Helpers\Uri::makeUriFromId('Admin/Menus/Add/' . $id);
?>
">Add Menu</a>
            <button name="menu-node-save" class="btn btn-primary">Save</button>
            <div>
                <label for="show-invisible-items">Show Invisible Menus</label>
                <input class="checkbox-inline" type="checkbox" id="show-invisible-items"/>
            </div>
            <?php 
if ($items->count()) {
    ?>
                <?php 
    echo $items::getMenuSortableNode();
    ?>
            <?php 
}
Ejemplo n.º 3
0
?>
">Add</a></li>
                            <li><a href="<?php 
echo Helpers\Uri::makeRouteUri('back.entities.list');
?>
">List</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a aria-expanded="false" role="button" data-toggle="dropdown" class="dropdown-toggle" href="#">Players <span class="caret"></span></a>
                        <ul role="menu" class="dropdown-menu">
                            <?php 
foreach (TeamModel::orderBy('id')->get() as $item) {
    ?>
                                <li><a href="<?php 
    echo Helpers\Uri::makeUriFromId('Admin/Team/List/' . $item->id);
    ?>
"><?php 
    echo $item->article()->title;
    ?>
</a></li>
                            <?php 
}
?>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Languages  <span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="<?php 
echo Helpers\Uri::makeRouteUri('back.languages.add');