Subversion-Projekte lars-tiefland.ci

Revision

Revision 1790 | Revision 1792 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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