Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1219 Revision 1220
Zeile 1... Zeile 1...
1
{extends file="admin/index.tpl"}
1
{extends file="admin/index.tpl"}
2
{block name="maincontent"}
2
{block name="maincontent"}
3
    <!-- $Id: changeShopVersion.tpl 1219 2023-04-09 23:07:42Z lars $ BEGIN -->
3
    <!-- $Id: changeShopVersion.tpl 1220 2023-04-09 23:10:38Z lars $ BEGIN -->
4
    <script>
4
    <script>
5
        $(function () {
5
        $(function () {
6
            $('.version').change(updateShopVersion);
6
            $('.version').change(updateShopVersion);
7
            $('#shopVersion').DataTable({
7
            $('#shopVersion').DataTable({
8
                "ordering": false,
8
                "ordering": false,
Zeile 41... Zeile 41...
41
                        "sSortDescending": ": aktivieren, um Spalte absteigend zu sortieren"
41
                        "sSortDescending": ": aktivieren, um Spalte absteigend zu sortieren"
42
                    }
42
                    }
43
                },
43
                },
44
                "drawCallback": function (settings) {
44
                "drawCallback": function (settings) {
45
                    let api = this.api();
45
                    let api = this.api();
46
                    let rows = api.rows({ page: 'current' }).nodes();
46
                    let rows = api.rows({
-
 
47
                                page: 'current'
-
 
48
                            }).nodes();
47
                    let last = null;
49
                    let last = null;
Zeile -... Zeile 50...
-
 
50
 
-
 
51
                    api.column(0, {
48
 
52
                        page: 'current'
49
                    api.column(0, { page: 'current' }).data().each(function (group, i) {
53
                    }).data().each(function (group, i) {
50
                        if (last !== group) {
54
                        if (last !== group) {
51
                            $(rows).eq(i).before(
55
                            $(rows).eq(i).before(
52
                                '<tr class="group"><th colspan="3">' + group + '</th></tr>'
56
                                '<tr class="group"><th colspan="3">' + group + '</th></tr>'
Zeile 89... Zeile 93...
89
        }
93
        }
90
    </style>
94
    </style>
91
    <div class="section__content section__content--p30">
95
    <div class="section__content section__content--p30">
92
        <div class="container-fluid">
96
        <div class="container-fluid">
93
            <div class="row">
97
            <div class="row">
94
                <table style="width:100%" id="shopVersion" class="hover">
-
 
95
                    <thead>
98
                <div class="col-lg-9">
96
                    <tr>
-
 
97
                        <th style="text-align:left">Shop</th>
-
 
98
                        <th style="text-align:left">Verzeichnis</th>
99
                    <div class="table-responsive table--no-card m-b-30">
99
                        <th style="text-align:left">Version</th>
100
                        <table style="width:100%" id="shopVersion" class="hover">
100
                        <th style="text-align:left">Log-Meldung (SVN)</th>
-
 
101
                    </tr>
-
 
102
                    </thead>
-
 
103
                    <tbody>
-
 
104
                    {foreach $shops as $sName => $shop}
-
 
105
                        {foreach $shop as $dir => $info}
-
 
106
                            {$style="color:black"}
-
 
107
                            {if substr($info["version"],0,4)=="php_" || substr($info["version"],0,9)=="tags/php_"}
-
 
108
                                {$style="color:red;font-weight:bold"}
-
 
109
                            {/if}
101
                            <thead>
110
                            <tr>
102
                            <tr>
111
                                <td style="text-align:left">{$sName}</td>
103
                                <th style="text-align:left">Shop</th>
112
                                <td style="width:25%;{$style}"
104
                                <th style="text-align:left">Verzeichnis</th>
113
                                    id="verz_{$sName|replace:".":"_"|replace:"-":"_"}_{$dir}">{$dir}</td>
-
 
114
                                <td style="width:25%;{$style}">
105
                                <th style="text-align:left">Version</th>
115
                                    <select name="{$sName}_{$dir}_version" class="version" data-shop="{$sName}"
-
 
116
                                            data-dir="{$dir}" data-server="{$info.server}"
-
 
117
                                            data-shop2="{$sName|replace:".":"_"|replace:"-":"_"}" id="{$sName}_{$dir}">
-
 
118
                                        {html_options options=$versions selected=$info.version}
-
 
119
                                    </select>
-
 
120
                                </td>
-
 
121
                                <td style="width:50%;{$style}">
106
                                <th style="text-align:left">Log-Meldung (SVN)</th>
122
                                    <div id="svnlog_{$sName|replace:".":"_"|replace:"-":"_"}_{$dir}">{$info.logmessage}</div>
-
 
123
                                </td>
-
 
124
                            </tr>
107
                            </tr>
-
 
108
                            </thead>
-
 
109
                            <tbody>
-
 
110
                            {foreach $shops as $sName => $shop}
-
 
111
                                {foreach $shop as $dir => $info}
-
 
112
                                    {$style="color:black"}
-
 
113
                                    {if substr($info["version"],0,4)=="php_" || substr($info["version"],0,9)=="tags/php_"}
-
 
114
                                        {$style="color:red;font-weight:bold"}
-
 
115
                                    {/if}
-
 
116
                                    <tr>
-
 
117
                                        <td style="text-align:left">{$sName}</td>
-
 
118
                                        <td style="width:25%;{$style}"
-
 
119
                                            id="verz_{$sName|replace:".":"_"|replace:"-":"_"}_{$dir}">{$dir}</td>
-
 
120
                                        <td style="width:25%;{$style}">
-
 
121
                                            <select name="{$sName}_{$dir}_version" class="version" data-shop="{$sName}"
-
 
122
                                                    data-dir="{$dir}" data-server="{$info.server}"
-
 
123
                                                    data-shop2="{$sName|replace:".":"_"|replace:"-":"_"}"
-
 
124
                                                    id="{$sName}_{$dir}">
-
 
125
                                                {html_options options=$versions selected=$info.version}
-
 
126
                                            </select>
-
 
127
                                        </td>
-
 
128
                                        <td style="width:50%;{$style}">
-
 
129
                                            <div id="svnlog_{$sName|replace:".":"_"|replace:"-":"_"}_{$dir}">{$info.logmessage}</div>
-
 
130
                                        </td>
-
 
131
                                    </tr>
125
                        {/foreach}
132
                                {/foreach}
126
                    {/foreach}
133
                            {/foreach}
-
 
134
                            </tbody>
-
 
135
                        </table>
127
                    </tbody>
136
                    </div>
128
                </table>
137
                </div>
-
 
138
 
129
            </div>
139
            </div>
130
        </div>
140
        </div>
131
    </div>
141
    </div>
132
    <!-- $Id: changeShopVersion.tpl 1219 2023-04-09 23:07:42Z lars $ END -->
142
    <!-- $Id: changeShopVersion.tpl 1220 2023-04-09 23:10:38Z lars $ END -->
133
{/block}
143
{/block}
134
144