Subversion-Projekte lars-tiefland.ci

Revision

Revision 1955 | Revision 1965 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1941 lars 1
{include file="header.tpl"}
2
<!-- $Id: herstellerkatalog.tpl 1964 2017-01-20 22:36:01Z lars $ BEGIN -->
1942 lars 3
<script>
4
	$(function(){
5
		$(".del_hst").button({
6
			icons:{
1943 lars 7
				primary:"ui-icon-trash"
1942 lars 8
			}
9
		}).css("cursor","pointer");
10
		$(".edit_hst").button({
11
			icons:{
12
				primary:"ui-icon-pencil"
13
			}
1955 lars 14
		}).css("cursor","pointer").click(editHst);
15
		$('#hstEditDlg').dialog({
16
			autoOpen:false,
17
			modal:true,
18
			width:600,
1964 lars 19
			resizable:false,
20
			buttons:[{
21
				text:"speichern",
22
				icons: {
23
					primary: "ui-icon-check"
24
				},
25
				click:function()
26
				{
27
					$('#result').load("/backend/herstellerkatalog/save",$('#herstellerForm').serializeArray(),function(){
28
						$('#result').dialog("open");
29
					})
30
					$('#edit_dir_dialog').dialog("close");
31
				}
32
			},
33
			{
34
				text:"verwerfen",
35
				icons: {
36
					primary: "ui-icon-close"
37
				},
38
				click:function(){
39
					$('#edit_dir_dialog').dialog("close");
40
				}
41
			}
42
			]
1955 lars 43
		})
1942 lars 44
	})
1955 lars 45
	function editHst()
46
	{
47
		$('#hstEditDlg').load("/backend/herstellerkatalog/edit/"+$(this).attr('data-id'),function(){
48
			$('#hstEditDlg').dialog('open');
49
		});
50
	}
1942 lars 51
</script>
1944 lars 52
<table style="width:100%">
1941 lars 53
	<tr>
1946 lars 54
		<th>Name</th>
55
		<th style="width:210px">Aktionen</th>
1941 lars 56
	</tr>
57
	{foreach $hersteller as $hst}
58
	<tr>
59
		<td>
60
			{$hst.name}
61
		</td>
1942 lars 62
		<td>
63
			<a class="edit_hst" data-id="{$hst.id}">ändern</a>
64
			<a class="del_hst" data-id="{$hst.id}" data-name="{$hst.name}">löschen</a>
65
		</td>
1941 lars 66
	</tr>
67
	{/foreach}
68
</table>
1955 lars 69
<div id="hstEditDlg"></div>
70
<div id="hstDelDlg"></div>
1941 lars 71
<!-- $Id: herstellerkatalog.tpl 1964 2017-01-20 22:36:01Z lars $ END -->
72
{include file="footer.tpl"}