| 24 |
lars |
1 |
<!-- $Id: action.tpl 1562 2023-04-29 23:10:26Z lars $ BEGIN -->
|
| 25 |
lars |
2 |
<link rel="stylesheet" href="/js/upload/jquery.fileupload-ui.css?{$smarty.now}"/>
|
|
|
3 |
<script type="text/javascript" src="/js/tinymce/tinymce.min.js?{$smarty.now}"></script>
|
| 24 |
lars |
4 |
<script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js?{$smarty.now}"></script>
|
| 25 |
lars |
5 |
<script type="text/javascript" src="/js/upload/jquery.iframe-transport.js?{$smarty.now}"></script>
|
|
|
6 |
<script type="text/javascript" src="/js/upload/jquery.fileupload.js?{$smarty.now}"></script>
|
|
|
7 |
<script type="text/javascript" src="/js/upload/jquery.fileupload-ui.js?{$smarty.now}"></script>
|
|
|
8 |
<script type="text/javascript" src="/js/upload/application.js?{$smarty.now}"></script>
|
|
|
9 |
<script type="text/javascript" src="/js/upload/vendor/jquery.ui.widget.js?{$smarty.now}"></script>
|
| 24 |
lars |
10 |
<script type="text/javascript">
|
|
|
11 |
function changeArt3(){
|
|
|
12 |
let data = [];
|
|
|
13 |
let id = $("#art").val();
|
|
|
14 |
let aktionsID = "{$action->id}";
|
|
|
15 |
|
|
|
16 |
data.push({ name: "aktionsArtID", value: id });
|
|
|
17 |
data.push({ name: "aktionsID", value: aktionsID });
|
|
|
18 |
|
|
|
19 |
$.ajax({
|
|
|
20 |
type: "POST",
|
| 101 |
lars |
21 |
url: "/changeAktionsArt",
|
| 24 |
lars |
22 |
data: data
|
|
|
23 |
}).done(function(html){
|
|
|
24 |
$(".darstellungListe3").html(html);
|
|
|
25 |
});
|
|
|
26 |
}
|
|
|
27 |
$(function (){
|
|
|
28 |
$("#art").change(changeArt3);
|
|
|
29 |
$("input[type=submit]").button();
|
|
|
30 |
$('#tabs').tabs();
|
|
|
31 |
tinyMCE.init({
|
|
|
32 |
// General options
|
|
|
33 |
selector: "#notes,#text,#html",
|
|
|
34 |
theme : "modern",
|
|
|
35 |
language: "de",
|
|
|
36 |
plugins: [
|
|
|
37 |
"advlist autolink lists link image charmap preview anchor",
|
|
|
38 |
"searchreplace visualblocks code fullscreen",
|
|
|
39 |
"insertdatetime media table contextmenu paste" ],
|
|
|
40 |
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
|
|
|
41 |
|
|
|
42 |
});
|
|
|
43 |
})
|
|
|
44 |
</script>
|
|
|
45 |
<div id="tabs">
|
| 137 |
lars |
46 |
<form method="post" action="/Online-Shop/actions/{$action->id}">
|
| 136 |
lars |
47 |
<input type="hidden" name="_token" value="{csrf_token()}"/>
|
|
|
48 |
{if $action->id}
|
|
|
49 |
<input type="hidden" name="_method" value="PATCH">
|
|
|
50 |
{/if}
|
| 24 |
lars |
51 |
<ul>
|
|
|
52 |
<li>
|
|
|
53 |
<a href="#grunddaten">Grunddaten</a>
|
|
|
54 |
</li>
|
|
|
55 |
{if $action->id}
|
|
|
56 |
<li>
|
|
|
57 |
<a href="#darstellung">Darstellung</a>
|
|
|
58 |
</li>
|
|
|
59 |
<li>
|
|
|
60 |
<a href="#medien">Medien</a>
|
|
|
61 |
</li>
|
|
|
62 |
<li>
|
|
|
63 |
<a href="#artikelzuweisungDirectory">Artikelzuweisung</a>
|
|
|
64 |
</li>
|
|
|
65 |
{/if}
|
|
|
66 |
</ul>
|
|
|
67 |
<div id="grunddaten">
|
|
|
68 |
<table style="width: 100%">
|
|
|
69 |
<tr>
|
|
|
70 |
<td class="links">
|
|
|
71 |
<b>
|
|
|
72 |
<label for="headline">Überschrift</label>
|
|
|
73 |
</b>
|
|
|
74 |
</td>
|
|
|
75 |
<td class="rechts">
|
|
|
76 |
<input type="text" name="headline" value="{$action->headline}" id="headline"/>
|
|
|
77 |
</td>
|
|
|
78 |
</tr>
|
|
|
79 |
<tr>
|
|
|
80 |
<td class="links">
|
|
|
81 |
<b>
|
|
|
82 |
<label for="language">Sprache</label>
|
|
|
83 |
</b>
|
|
|
84 |
</td>
|
|
|
85 |
<td class="rechts">
|
|
|
86 |
<select name="language" id="language">
|
|
|
87 |
{foreach $language_pack as $index => $language}
|
|
|
88 |
<option value="{$language[0]}" {if $action->Language == $language[0]}selected="selected"{/if}>{$language[0]}</option>
|
|
|
89 |
{/foreach}
|
|
|
90 |
</select>
|
|
|
91 |
</td>
|
|
|
92 |
</tr>
|
|
|
93 |
<tr>
|
|
|
94 |
<td class="links">
|
|
|
95 |
<b>
|
|
|
96 |
<label for="shop">Shop</label>
|
|
|
97 |
</b>
|
|
|
98 |
</td>
|
|
|
99 |
<td class="rechts">
|
|
|
100 |
{html_options options=$c_shops selected=$action->shop_id name="shop" id="shop"}
|
|
|
101 |
</td>
|
|
|
102 |
</tr>
|
|
|
103 |
<tr>
|
|
|
104 |
<td class="links">
|
|
|
105 |
<b>
|
|
|
106 |
<label for="kategorie">Kategorie</label>
|
|
|
107 |
</b>
|
|
|
108 |
</td>
|
|
|
109 |
<td class="rechts">
|
| 110 |
lars |
110 |
{html_options options=$kategorien selected=$action->action_category_id name="kategorie" id="kategorie"}
|
| 24 |
lars |
111 |
</td>
|
|
|
112 |
</tr>
|
|
|
113 |
<tr>
|
|
|
114 |
<td class="links">
|
|
|
115 |
<b>
|
|
|
116 |
<label for="von">gültig von</label>
|
|
|
117 |
</b>
|
|
|
118 |
</td>
|
|
|
119 |
<td class="rechts">
|
|
|
120 |
<input type="date" name="von" value="{$action->valid_from}" id="von">
|
|
|
121 |
</td>
|
|
|
122 |
</tr>
|
|
|
123 |
<tr>
|
|
|
124 |
<td class="links">
|
|
|
125 |
<b>
|
|
|
126 |
<label for="bis">gültig bis</label>
|
|
|
127 |
</b>
|
|
|
128 |
</td>
|
|
|
129 |
<td class="rechts">
|
|
|
130 |
<input type="date" name="bis" value="{$action->valid_to}" id="bis">
|
|
|
131 |
</td>
|
|
|
132 |
</tr>
|
|
|
133 |
<tr>
|
|
|
134 |
<td class="links"><b><label for="notes">Notizen / Design-Vorgaben</label></b></td>
|
|
|
135 |
<td>
|
|
|
136 |
<textarea name="notizen" id="notes">{$action->notizen}</textarea>
|
|
|
137 |
</td>
|
|
|
138 |
</tr>
|
|
|
139 |
</table>
|
|
|
140 |
</div>
|
|
|
141 |
{if $action->id}
|
|
|
142 |
<div id="darstellung">
|
|
|
143 |
<table style="width: 100%">
|
|
|
144 |
<tr>
|
|
|
145 |
<td class="links">
|
|
|
146 |
<b>
|
|
|
147 |
<label for="art">Art</label>
|
|
|
148 |
</b>
|
|
|
149 |
</td>
|
|
|
150 |
<td class="rechts">
|
|
|
151 |
<select name="art" class="aktionsArt3" id="art">
|
|
|
152 |
{html_options options=$darstellungen selected=$action->art}
|
|
|
153 |
</select>
|
|
|
154 |
</td>
|
|
|
155 |
</tr>
|
|
|
156 |
<tr>
|
|
|
157 |
<td colspan="2" class="darstellungListe3">
|
| 26 |
lars |
158 |
{include file="aktion_darstellung_liste_v3.tpl" aktionsArtID=$action->art}
|
| 24 |
lars |
159 |
</td>
|
|
|
160 |
</tr>
|
|
|
161 |
</table>
|
|
|
162 |
</div>
|
|
|
163 |
<div id="medien">
|
|
|
164 |
<div id="bildverwaltung"></div>
|
|
|
165 |
<input type="button" value="neues Bild zuordnen" id="add_k_image"/>
|
|
|
166 |
<input type="button" value="Bilder hochladen" id="upload_images"/>
|
|
|
167 |
</div>
|
|
|
168 |
<div id="artikelzuweisungDirectory">
|
|
|
169 |
<div style="display:inline-block;width:100%;">
|
|
|
170 |
<div style="width:49%;border-right:1px solid #666;overflow: auto;float:left;">
|
| 26 |
lars |
171 |
{include file="directory_tree_page.tpl" aktionsID=$action->id}
|
| 24 |
lars |
172 |
</div>
|
|
|
173 |
<div id="artikelListe" style="width:49%;float:left;">
|
| 26 |
lars |
174 |
{include file="aktion_artikel_aktion.tpl"}
|
| 24 |
lars |
175 |
</div>
|
|
|
176 |
</div>
|
|
|
177 |
</div>
|
|
|
178 |
{/if}
|
|
|
179 |
<input type="submit" name="mode" value="speichern"/>
|
|
|
180 |
</form>
|
|
|
181 |
</div>
|
|
|
182 |
|
|
|
183 |
{if ( isset( $user_rechte["admin"]["toolbox"]["bildverwaltung"] ) && $action->id )}
|
|
|
184 |
<div id="add_image_dialog" title="Bild hinzufügen"></div>
|
|
|
185 |
<div id="del_image_dialog3" title="Bildzuordnung löschen">
|
|
|
186 |
<form id="del_image_form3">
|
|
|
187 |
<input type="hidden" id="b_id3" name="b_id" />
|
|
|
188 |
<input type="hidden" id="a_id" name="l_id" value="{$action->id}" />
|
|
|
189 |
<input type="hidden" name="l_type" value="{$lType}"/>
|
|
|
190 |
<input type="hidden" name="m" value="0" id="isMobile" />
|
|
|
191 |
Wollen Sie die Zuordnung des Bildes <b><span id="bild_name3"></span></b> wirklich <span style="color: red;font-weight: bold">aufheben</span>?
|
|
|
192 |
</form>
|
|
|
193 |
</div>
|
| 26 |
lars |
194 |
{include file="toolbox/upload.tpl"}
|
| 24 |
lars |
195 |
{/if}
|
|
|
196 |
<!-- $Id: action.tpl 1562 2023-04-29 23:10:26Z lars $ END -->
|