summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
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