summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/css/admin.css2
-rw-r--r--views/mods/mod_export/profil.phtml4
-rw-r--r--views/mods/mod_export/settings_edit.phtml16
3 files changed, 20 insertions, 2 deletions
diff --git a/views/css/admin.css b/views/css/admin.css
index 1265c70..1c9ada8 100644
--- a/views/css/admin.css
+++ b/views/css/admin.css
@@ -6,6 +6,8 @@
/* Bootstrap Teil */
#wpsg-bs { margin-top:20px; min-width:1000px; }
+#wpsg-bs .updated,
+#wpsg-bs .error,
#wpsg-bs .notice { margin-left:0px; margin-right:20px; width:auto; margin-bottom:1.5rem; }
#wpsg-bs nav.navbar { margin-right:20px; }
#wpsg-bs nav.navbar li { margin-bottom:0px; }
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