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

Revision

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

Revision 119 Revision 122
Zeile 1... Zeile 1...
1
{extends file="index.tpl"}
1
{extends file="index.tpl"}
2
{block name="maincontent"}
2
{block name="maincontent"}
3
    <!-- $Id: manufacturerList.tpl 119 2023-07-15 23:00:54Z lars $ BEGIN -->
3
    <!-- $Id: manufacturerList.tpl 122 2023-07-15 23:08:35Z lars $ BEGIN -->
4
    <script>
4
    <script>
5
        $(function (){
5
        $(function (){
6
            $('#editDlg').dialog({
6
            $('#editDlg').dialog({
7
                autoOpen:false,
7
                autoOpen:false,
8
                modal:true,
8
                modal:true,
Zeile 41... Zeile 41...
41
                buttons:[
41
                buttons:[
42
                    {
42
                    {
43
                        text:"OK",
43
                        text:"OK",
44
                        icon:"ui-icon-check",
44
                        icon:"ui-icon-check",
45
                        click:function (){
45
                        click:function (){
46
                            let url="/Online-Shop/manufacturers/"+$("#ID").val();
46
                            let url="/Online-Shop/manufacturers/"+$("#mId").val();
47
                            $.post(url,$('#manufacturerDelForm').serializeArray(),function(){
47
                            $.post(url,$('#manufacturerDelForm').serializeArray(),function(){
48
                                $('#delDlg').dialog("close")
48
                                $('#delDlg').dialog("close")
49
                                location.reload()
49
                                location.reload()
50
                            });
50
                            });
51
                        }
51
                        }
Zeile 118... Zeile 118...
118
        </tbody>
118
        </tbody>
119
    </table>
119
    </table>
120
    <div id="editDlg"></div>
120
    <div id="editDlg"></div>
121
    <div id="delDlg" title="Hersteller löschen">
121
    <div id="delDlg" title="Hersteller löschen">
122
        Wollen Sie den Hersteller <span id="manufacturerName"></span> wirklich löschen?
122
        Wollen Sie den Hersteller <span id="manufacturerName"></span> wirklich löschen?
123
        <span id="mID" style="display: none"></span>
123
        <span id="mId" style="display: none"></span>
124
        <form id="manufacturerDelForm">
124
        <form id="manufacturerDelForm">
125
            <input type="hidden" name="_method" value="DELETE">
125
            <input type="hidden" name="_method" value="DELETE">
126
            <input type="hidden" name="_token" value="{csrf_token()}">
126
            <input type="hidden" name="_token" value="{csrf_token()}">
127
        </form>
127
        </form>
128
    </div>
128
    </div>
129
    <!-- $Id: manufacturerList.tpl 119 2023-07-15 23:00:54Z lars $ END -->
129
    <!-- $Id: manufacturerList.tpl 122 2023-07-15 23:08:35Z lars $ END -->
130
{/block}
130
{/block}