Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 2 | Revision 86 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2 Revision 85
Zeile 1... Zeile 1...
1
{extends file="index.tpl"}
1
{extends file="index.tpl"}
2
{block name="maincontent"}
2
{block name="maincontent"}
3
    <!-- $Id: actions.tpl 1548 2023-04-29 11:08:55Z lars $ BEGIN -->
3
    <!-- $Id: actions.tpl 1548 2023-04-29 11:08:55Z lars $ BEGIN -->
4
    <script>
4
    <script>
5
        $(function (){
5
        $(function (){
6
            $('#editActionDlg').dialog({
6
            $('#editDlg').dialog({
7
                autoOpen:false,
7
                autoOpen:false,
8
                modal:true,
8
                modal:true,
9
                resizable:false,
9
                resizable:false,
10
                width:800
10
                width:800
11
            })
11
            })
Zeile 13... Zeile 13...
13
                icons:{
13
                icons:{
14
                    primary:"ui-icon-plus"
14
                    primary:"ui-icon-plus"
15
                }
15
                }
16
            }).click(function()
16
            }).click(function()
17
            {
17
            {
18
                let url="/Online-Shop/actions/create/";
18
                let url="/Online-Shop/manufacturers/create/";
19
                $('#editActionDlg').load(url).dialog("open");
19
                $('#editDlg').load(url).dialog("open");
20
            });
20
            });
21
            $(".edit").uibutton({
21
            $(".edit").uibutton({
22
                icons:{
22
                icons:{
23
                    primary:"ui-icon-pencil"
23
                    primary:"ui-icon-pencil"
24
                }
24
                }
25
            }).click(function() {
25
            }).click(function() {
26
                let url="/Online-Shop/actions/"+$(this).attr("data-id")+"/edit/";
26
                let url="/Online-Shop/actions/"+$(this).attr("data-id")+"/edit/";
27
                $('#editActionDlg').load(url).dialog("open");
27
                $('#editDlg').load(url).dialog("open");
28
            });
28
            });
29
            $(".del").uibutton({
29
            $(".del").uibutton({
30
                icons:{
30
                icons:{
31
                    primary:"ui-icon-trash"
31
                    primary:"ui-icon-trash"
32
                }
32
                }
33
            })
33
            })
34
            $("#aktionenTable").dataTable({
34
            $("#aktionenTable").dataTable({
35
                "columnDefs": [
-
 
36
                    { "type": "de_date", targets: [3,4] },
-
 
37
                    { "orderable":false, targets: [0,2,5] }
-
 
38
                ],
-
 
39
                "lengthMenu": [[100, -1], [100, "Alle"]],
35
                "lengthMenu": [[100, -1], [100, "Alle"]],
40
                "language": {
36
                "language": {
41
                    "url": "/js/DataTables-1.10.19/German.json"
37
                    "url": "/js/DataTables-1.10.19/German.json"
42
                }
38
                }
43
            });
39
            });
Zeile 46... Zeile 42...
46
    <button id="new"></button>
42
    <button id="new"></button>
47
    <br><br>
43
    <br><br>
48
    <table style="width:100%" id="aktionenTable">
44
    <table style="width:100%" id="aktionenTable">
49
        <thead>
45
        <thead>
50
        <tr>
46
        <tr>
51
            <th>Status</th>
-
 
52
            <th>Kategorie</th>
-
 
53
            <th>Name</th>
47
            <th>Name</th>
54
            <th>von</th>
-
 
55
            <th>bis</th>
-
 
56
            <th>Aktionen</th>
48
            <th>Aktionen</th>
57
        </tr>
49
        </tr>
58
        </thead>
50
        </thead>
59
        <tbody>
51
        <tbody>
60
        {foreach $aktionen as $aktion}
52
        {foreach $manufacturers as $manufacturer}
61
            <tr>
53
            <tr>
62
                <td><img src="/images/lieferstatus/common/{$aktion.status}.gif"  alt=""/></td>
-
 
63
                <td>{$aktion.category}</td>
-
 
64
                <td>{$aktion.headline}</td>
54
                <td>{$manufacturer.name}</td>
65
                <td>{$aktion.valid_from|date_format:"d.m.Y"}</td>
-
 
66
                <td>{$aktion.valid_to|date_format:"d.m.Y"}</td>
-
 
67
                <td>
55
                <td>
68
                    <button class="edit" data-id="{$aktion.id}"></button>
56
                    <button class="edit" data-id="{$manufacturer.id}"></button>
69
                    <button class="del" data-id="{$aktion.id}"></button>
57
                    <button class="del" data-id="{$manufacturer.id}"></button>
70
                </td>
58
                </td>
71
            </tr>
59
            </tr>
72
        {/foreach}
60
        {/foreach}
73
        </tbody>
61
        </tbody>
74
    </table>
62
    </table>
75
    <div id="editActionDlg"></div>
63
    <div id="editDlg"></div>
76
    <!-- $Id: actions.tpl 1548 2023-04-29 11:08:55Z lars $ END -->
64
    <!-- $Id: actions.tpl 1548 2023-04-29 11:08:55Z lars $ END -->
77
{/block}
65
{/block}