Line 44... |
Line 44... |
44 |
</div>
|
44 |
</div>
|
45 |
|
45 |
|
46 |
<div v-if="template" class="template">
|
46 |
<div v-if="template" class="template">
|
47 |
|
47 |
|
48 |
<div class="form-group form-group-sm has-feedback">
|
48 |
<div class="form-group form-group-sm has-feedback">
|
49 |
<label class="col-sm-6 control-label" for="wpsg_mod_downloadplus_filename"><?php echo __('Name des Templates', 'wpsg'); ?></label>
|
49 |
<label class="col-sm-6 control-label label-copy" for="wpsg_mod_downloadplus_filename">
|
- |
|
50 |
<a href="#" title="<?php echo __('Template kopieren', 'wpsg'); ?>" @click="copyTemplate()"><span class="wpsg-glyphicon glyphicon glyphicon-copy"></span></a>
|
- |
|
51 |
<span><?php echo __('Name des Templates', 'wpsg'); ?></span>
|
- |
|
52 |
</label>
|
50 |
<div class="col-sm-6">
|
53 |
<div class="col-sm-6">
|
51 |
<div class="wpsg_field_wrap wpsg_field_wrap_template_name">
|
54 |
<div class="wpsg_field_wrap wpsg_field_wrap_template_name">
|
52 |
<input type="text" v-model="template.name" />
|
55 |
<input type="text" v-model="template.name" />
|
53 |
<div>
|
56 |
<div>
|
54 |
<label class="control-label"><?php echo __('Standard: ', 'wpsg'); ?></label>
|
57 |
<label class="control-label"><?php echo __('Standard: ', 'wpsg'); ?></label>
|
Line 177... |
Line 180... |
177 |
#wpsg_dp_templates_app .uploadstate { display:flex; justify-content:flex-start; align-items:center; }
|
180 |
#wpsg_dp_templates_app .uploadstate { display:flex; justify-content:flex-start; align-items:center; }
|
178 |
#wpsg_dp_templates_app .uploadstate > img { margin-right:1rem; }
|
181 |
#wpsg_dp_templates_app .uploadstate > img { margin-right:1rem; }
|
179 |
#wpsg_dp_templates_app .file_wrap { display:flex; justify-content:space-between; align-items:center; }
|
182 |
#wpsg_dp_templates_app .file_wrap { display:flex; justify-content:space-between; align-items:center; }
|
180 |
#wpsg_dp_templates_app .file_wrap .file { display:flex; gap:1rem; justify-content:flex-end; align-items:center; }
|
183 |
#wpsg_dp_templates_app .file_wrap .file { display:flex; gap:1rem; justify-content:flex-end; align-items:center; }
|
181 |
#wpsg_dp_templates_app .file_wrap .file .wpsg-glyphicon { margin-right:8px; }
|
184 |
#wpsg_dp_templates_app .file_wrap .file .wpsg-glyphicon { margin-right:8px; }
|
- |
|
185 |
#wpsg_dp_templates_app .label-copy { display:flex; justify-content:space-between; }
|
- |
|
186 |
#wpsg_dp_templates_app .label-copy .glyphicon { font-size:14px; }
|
182 |
|
187 |
|
183 |
</style>
|
188 |
</style>
|
184 |
|
189 |
|
185 |
<script src="<?php echo WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/views/js/vue3.js'; ?>"></script>
|
190 |
<script src="<?php echo WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/views/js/vue3.js'; ?>"></script>
|
186 |
<script>
|
191 |
<script>
|
Line 218... |
Line 223... |
218 |
this.arTemplates.push(new_template);
|
223 |
this.arTemplates.push(new_template);
|
219 |
this.template = new_template;
|
224 |
this.template = new_template;
|
220 |
|
225 |
|
221 |
},
|
226 |
},
|
222 |
|
227 |
|
- |
|
228 |
copyTemplate: function() {
|
- |
|
229 |
|
- |
|
230 |
if (!confirm('<?php echo __('Sind Sie sich sicher, dass sie das Template kopieren möchten?', 'wpsg'); ?>')) return false;
|
- |
|
231 |
|
- |
|
232 |
let new_template = JSON.parse(JSON.stringify(this.template));
|
- |
|
233 |
|
- |
|
234 |
new_template.name += ' (Kopie)';
|
- |
|
235 |
|
- |
|
236 |
this.arTemplates.push(new_template);
|
- |
|
237 |
this.template = new_template;
|
- |
|
238 |
|
- |
|
239 |
},
|
- |
|
240 |
|
223 |
removeTemplate: function() {
|
241 |
removeTemplate: function() {
|
224 |
|
242 |
|
225 |
if (!confirm('<?php echo __('Sind Sie sich sicher? Das ganze Template und alle Felder werden gelöscht.', 'wpsg'); ?>')) return;
|
243 |
if (!confirm('<?php echo __('Sind Sie sich sicher? Das ganze Template und alle Felder werden gelöscht.', 'wpsg'); ?>')) return;
|
226 |
|
244 |
|
227 |
for (let i = 0; i < this.arTemplates.length; i ++) {
|
245 |
for (let i = 0; i < this.arTemplates.length; i ++) {
|