Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1494 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

{extends file="admin/index.tpl"}
{block name="maincontent"}
    <!-- $Id: actions.tpl 1548 2023-04-29 11:08:55Z lars $ BEGIN -->
    <script>
        $(function (){
            $("#new").uibutton({
                icons:{
                    primary:"ui-icon-plus"
                }
            }).click(function()
            {
                document.location.href="/backend/actions/create/";
            });
            $(".edit").uibutton({
                icons:{
                    primary:"ui-icon-pencil"
                }
            }).click(function() {
                document.location.href="/backend/actions/"+$(this).attr("data-id")+"/edit/";
            });
            $(".del").uibutton({
                icons:{
                    primary:"ui-icon-trash"
                }
            })
            $("#aktionenTable").dataTable({
                "columnDefs": [
                    { "type": "de_date", targets: [3,4] },
                    { "orderable":false, targets: [0,2,5] }
                ],
                "lengthMenu": [[100, -1], [100, "Alle"]],
                "language": {
                    "url": "/admin/js/DataTables-1.10.19/German.json"
                }
            });
        })
    </script>
    <button id="new"></button>
    <br><br>
    <table style="width:100%" id="aktionenTable">
        <thead>
        <tr>
            <th>Status</th>
            <th>Kategorie</th>
            <th>Name</th>
            <th>von</th>
            <th>bis</th>
            <th>Aktionen</th>
        </tr>
        </thead>
        <tbody>
        {foreach $aktionen as $aktion}
            <tr>
                <td><img src="/admin/images/lieferstatus/common/{$aktion.status}.gif"  alt=""/></td>
                <td>{$aktion.category}</td>
                <td>{$aktion.headline}</td>
                <td>{$aktion.valid_from|date_format:"d.m.Y"}</td>
                <td>{$aktion.valid_to|date_format:"d.m.Y"}</td>
                <td>
                    <button class="edit" data-id="{$aktion.id}"></button>
                    <button class="del" data-id="{$aktion.id}"></button>
                </td>
            </tr>
        {/foreach}
        </tbody>
    </table>
    <!-- $Id: actions.tpl 1548 2023-04-29 11:08:55Z lars $ END -->
{/block}