Subversion-Projekte lars-tiefland.ci

Revision

Revision 1770 | Revision 1776 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1475 lars 1
{include file="header.tpl"}
1504 lars 2
<link rel="stylesheet" href="/backend/css/styles.css" />
1475 lars 3
{include file="artstamm_sub.tpl"}
1647 lars 4
<div id="edit_dir_dialog" title="Kategorie bearbeiten / anlegen"></div>
5
<div id="edit_item_dialog" title="Artikel bearbeiten / anlegen"></div>
1747 lars 6
<div id="delDialog" title="Löschen"></div>
1761 lars 7
<div id="terminDialog" title="Termin"></div>
8
<div id="cloneDialog" title="Artikel klonen"></div>
9
<div id="addonDialog" title="Zubehör"></div>
1715 lars 10
<div id="result" title="Ergebnis"></div>
1575 lars 11
<script>
12
	$(function(){
1761 lars 13
		$('#terminDialog').dialog({
14
			autoOpen:false,
15
			modal:true,
16
			resizable:false
17
		});
18
		$('#cloneDialog').dialog({
19
			autoOpen:false,
20
			modal:true,
21
			resizable:false
22
		});
23
		$('#addonDialog').dialog({
24
			autoOpen:false,
25
			modal:true,
26
			resizable:false
27
		});
1747 lars 28
		$('#delDialog').dialog({
29
			autoOpen:false,
30
			resizable:false,
1751 lars 31
			modal:true,
1747 lars 32
			width:"90%",
33
			buttons:{
34
				"Ja":function(){
1773 lars 35
					$.post('/backend/'+$('#typ').val()+'/del/',$('#delForm').serializeArray());
1747 lars 36
					$(this).dialog("close")
37
				},
38
				"Nein":function()
39
				{
40
					$(this).dialog("close")
41
				}
42
			}
43
		})
1715 lars 44
		$('#result').dialog({
1675 lars 45
			autoOpen:false,
46
			resizable:false,
1769 lars 47
			width:400,
1770 lars 48
			modal:true,
1675 lars 49
			buttons:{
50
				"OK":function(){
51
					$(this).dialog("close")
52
				}
53
			}
54
		})
1575 lars 55
		$('#edit_dir_dialog').dialog({
56
			autoOpen:false,
57
			width:"90%",
1710 lars 58
			height:700,
1655 lars 59
			resizable:false,
60
			buttons:[{
61
				text:"speichern",
62
				icons: {
63
					primary: "ui-icon-check"
64
				},
65
				click:function()
66
				{
1715 lars 67
					$('#result').load("/backend/kategorie/save",$('#dirForm').serializeArray(),function(){
68
						$('#result').dialog("open");
1676 lars 69
					})
70
					$('#edit_dir_dialog').dialog("close");
1655 lars 71
				}
72
			},
73
			{
74
				text:"verwerfen",
75
				icons: {
76
					primary: "ui-icon-close"
77
				},
78
				click:function(){
1708 lars 79
					$('#edit_dir_dialog').dialog("close");
1655 lars 80
				}
81
			},
82
			{
1656 lars 83
				text:"Neuen Ordner erstellen",
1655 lars 84
				icons:{
1656 lars 85
					primary:"ui-icon-plus"
1655 lars 86
				},
87
				click:function(){
88
 
89
				}
90
			},
91
			{
1656 lars 92
				text:"neuen Artikel erstellen",
1655 lars 93
				icons:{
1656 lars 94
					primary:"ui-icon-plus"
1655 lars 95
				},
96
				click:function(){
97
 
98
				}
99
			},
100
			{
1656 lars 101
				text:"Löschen",
1655 lars 102
				icons:{
1656 lars 103
					primary:"ui-icon-trash"
1655 lars 104
				},
105
				click:function(){
1773 lars 106
					$('#edit_dir_dialog').dialog('close');
107
					$('#delDialog').load("/backend/directory/del/"+$('#directoryId').val()).dialog('open');
1655 lars 108
				}
109
			},
110
			{
1656 lars 111
				text:"Artikel zuordnen",
1655 lars 112
				icons:{
113
					primary:"ui-icon-link"
114
				},
115
				click:function(){
116
 
117
				}
118
			}
119
			]
1575 lars 120
		})
121
		$('#edit_item_dialog').dialog({
122
			autoOpen:false,
123
			width:"90%",
1710 lars 124
			height:700,
1635 lars 125
			resizable:false,
1751 lars 126
			modal:true,
1635 lars 127
			buttons:[{
128
				text:"speichern",
129
				icons: {
130
					primary: "ui-icon-check"
131
				},
132
				click:function()
133
				{
1715 lars 134
					$('#result').load("/backend/artikel/save",$('#itemForm').serializeArray(),function(){
135
						$('#result').dialog("open");
1676 lars 136
					})
1635 lars 137
					$('#edit_item_dialog').dialog("close");
138
				}
139
			},
140
			{
1636 lars 141
				text:"verwerfen",
1635 lars 142
				icons: {
143
					primary: "ui-icon-close"
144
				},
145
				click:function(){
146
					$('#edit_item_dialog').dialog("close");
147
				}
1648 lars 148
			},
149
			{
1649 lars 150
				text:"Kopieren",
151
				icons:{
1650 lars 152
					primary:"ui-icon-copy"
1649 lars 153
				},
154
				click:function(){
155
 
156
				}
157
			},
158
			{
159
				text:"Löschen",
160
				icons:{
1650 lars 161
					primary:"ui-icon-trash"
1649 lars 162
				},
163
				click:function(){
1752 lars 164
					$('#edit_item_dialog').dialog('close');
1753 lars 165
					$('#delDialog').load("/backend/artikel/del/"+$('#artikelId').val()).dialog('open');
1649 lars 166
				}
167
			},
168
			{
1648 lars 169
				text:"Termin",
170
				icons:{
171
					primary:"ui-icon-calendar"
172
				},
173
				click:function(){
174
 
175
				}
1649 lars 176
			},
177
			{
178
				text:"Klonen",
179
				icons:{
1650 lars 180
					primary:"ui-icon-copy"
1649 lars 181
				},
182
				click:function(){
183
 
184
				}
185
			},
186
			{
187
				text:"Artikel-Cache löschen",
188
				icons:{
1650 lars 189
					primary:"ui-icon-refresh"
1649 lars 190
				},
191
				click:function(){
1765 lars 192
					$('#result').load('/backend/artikel/reset_cache/'+$('#artikelId').val()).dialog('open');
1649 lars 193
				}
194
			},
195
			{
196
				text:"Zubehör",
197
				icons:{
1650 lars 198
					primary:"ui-icon-link"
1649 lars 199
				},
200
				click:function(){
201
 
202
				}
1648 lars 203
			}
204
			]
1575 lars 205
		})
206
	})
207
</script>
1475 lars 208
{include file="footer.tpl"}