Exemple #1
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>Entities List</h3>
        </div>
		<div class="panel-body">
            <a class="btn btn-primary" href="<?php 
echo Helpers\Uri::makeRouteUri('back.entities.add');
?>
">Add Entity</a>
            <?php 
if ($items->count()) {
    ?>
			<div class="table-responsive">
                <table class="table">
                    <thead>
                    <tr>
                        <th>Text</th>
                        <th>Edit</th>
                        <th>Delete</th>
                    </tr>
                    </thead>
                    <tbody>
Exemple #2
0
            browseIcon: "<i class=\"glyphicon glyphicon-picture\"></i> ",
            removeClass: "btn btn-danger",
            removeLabel: "Delete",
            removeIcon: "<i class=\"glyphicon glyphicon-trash\"></i> ",
            uploadClass: "btn btn-info",
            uploadLabel: "Upload",
            uploadIcon: "<i class=\"glyphicon glyphicon-upload\"></i> ",
            allowedFileTypes: ["image"],
            previewClass: "bg-warning",
            initialPreview: [
                <?php 
echo $item->flag ? '\'<img style="height:160px" src="' . File::getImagePath($item->flag) . '">\'' : '';
?>
                ],
            initialPreviewConfig: [{
                caption: '<?php 
echo $item->name . ' Flag';
?>
',
                width: "120px",
                url: '<?php 
echo Helpers\Uri::makeRouteUri("back.languages.image.delete");
?>
',
                key: <?php 
echo $item->id;
?>
            }]
        });
    });
</script>
Exemple #3
0
            removeClass: "btn btn-danger",
            removeLabel: "Delete",
            removeIcon: "<i class=\"glyphicon glyphicon-trash\"></i> ",
            uploadClass: "btn btn-info",
            uploadLabel: "Upload",
            uploadIcon: "<i class=\"glyphicon glyphicon-upload\"></i> ",
            allowedFileTypes: ["image"],
            previewClass: "bg-warning",
            initialPreview: [
                <?php 
echo $item->icon ? '\'<img style="height:160px" src="' . File::getImagePath($item->icon) . '">\'' : '';
?>
            ],
            initialPreviewConfig: [{
                caption: '<?php 
echo $item->text() . ' Icon';
?>
',
                width: "120px",
                url: '<?php 
echo Helpers\Uri::makeRouteUri("back.menus.image.delete");
?>
',
                key: <?php 
echo $item->id;
?>
            }]
        });

    });
</script>
Exemple #4
0
                            <li><a href="<?php 
echo Helpers\Uri::makeRouteUri('back.languages.add');
?>
">Add</a></li>
                            <li><a href="<?php 
echo Helpers\Uri::makeRouteUri('back.languages.list');
?>
">List</a></li>
                        </ul>
                    </li>
                    <li><a href="<?php 
echo Helpers\Uri::makeRouteUri('back.quiz');
?>
">Quiz</a></li>
                    <li><a href="<?php 
echo Helpers\Uri::makeRouteUri('back.settings');
?>
">Settings</a></li>
                </ul>
    <!--            <ul class="nav navbar-nav navbar-right">-->
    <!--                <li>-->
    <!--                    <a href="--><?php 
//=Helpers\Uri::makeRouteUri('auth.logout')
?>
<!--">Logout <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span></a>-->
    <!--                </li>-->
    <!--            </ul>-->
            </div><!-- /.nav-collapse -->
        </div><!-- /.container -->
    </nav><!-- /.navbar -->