summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2017-08-28 13:29:49 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2017-08-28 13:29:49 +0000
commit4d0b54c34adf5a6853466056f93b1f29b17afcf9 (patch)
tree8142ffb4aca0d5d055d51c743ba059f58c9c1c51 /views/mods
parentfd69cb567b83d79e9ee47e734e700cd95d0eb9e8 (diff)
- Speichern / Laden von Profilen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6428 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_export/profil.phtml4
-rw-r--r--views/mods/mod_export/settings_edit.phtml16
2 files changed, 18 insertions, 2 deletions
diff --git a/views/mods/mod_export/profil.phtml b/views/mods/mod_export/profil.phtml
index b703055..ee3184c 100644
--- a/views/mods/mod_export/profil.phtml
+++ b/views/mods/mod_export/profil.phtml
@@ -6,6 +6,7 @@
$inlineEdit_url = WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=inlinedit&noheader=1&profil_id='.$this->view['profil']['id'];
$upload_url = WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=musterupload&noheader=1&profil_id='.$this->view['profil']['id'];
+ $download_url = WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=save&noheader=1&profil_id='.$this->view['profil']['id'];
?>
@@ -214,7 +215,8 @@
<br />
-<a onclick="return wpsg_mod_export_removeProfil(<?php echo $this->view['profil']['id']; ?>);" href="#"><span class="glyphicon glyphicon-trash wpsg-glyphicon"></span><?php echo __('Profil löschen', 'wpsg'); ?></a>
+<a onclick="return wpsg_mod_export_removeProfil(<?php echo $this->view['profil']['id']; ?>);" href="#"><span class="glyphicon glyphicon-trash wpsg-glyphicon"></span><?php echo __('Profil löschen', 'wpsg'); ?></a><br />
+<a href="<?php echo $download_url; ?>"><span class="glyphicon glyphicon-save wpsg-glyphicon"></span><?php echo __('Profil speichern', 'wpsg'); ?></a>
<script type="text/javascript">/* <![CDATA[ */
diff --git a/views/mods/mod_export/settings_edit.phtml b/views/mods/mod_export/settings_edit.phtml
index 39c0c16..9af617d 100644
--- a/views/mods/mod_export/settings_edit.phtml
+++ b/views/mods/mod_export/settings_edit.phtml
@@ -5,6 +5,7 @@
*/
?>
+
<script type="text/javascript">
function wpsg_mod_export_profilSwitch()
@@ -150,4 +151,17 @@
<br /><br />
-<div id="wpsg_profil_list"><?php echo $this->callMod('wpsg_mod_export', 'profilList'); ?></div> \ No newline at end of file
+<div id="wpsg_profil_list"><?php echo $this->callMod('wpsg_mod_export', 'profilList'); ?></div>
+
+<br />
+
+<fieldset>
+ <legend><?php echo __('Profil importieren', 'wpsg'); ?></legend>
+ <form method="post" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=import&noheader=1" enctype="multipart/form-data">
+
+ <?php echo wpsg_drawForm_Upload('profil_file', __('JSON Profildatei', 'wpsg')); ?>
+
+ <input type="submit" value="<?php echo __('Profil importieren', 'wpsg'); ?>" class="button" />
+
+ </form>
+</fieldset> \ No newline at end of file