summaryrefslogtreecommitdiff
path: root/views/admin/kalkulation.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-03-22 13:59:16 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-03-22 13:59:16 +0000
commit0fc69ce3ad89844dd5fb2f87532e7b6fca55923d (patch)
treeb89a251b26e0726a80c4c24eb0b726f1bbaeea62 /views/admin/kalkulation.phtml
parentc14a7c20ec8c489a37412cebb524e367679f5a60 (diff)
- sync
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5439 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/kalkulation.phtml')
-rw-r--r--views/admin/kalkulation.phtml99
1 files changed, 39 insertions, 60 deletions
diff --git a/views/admin/kalkulation.phtml b/views/admin/kalkulation.phtml
index e41888a..a6019b3 100644
--- a/views/admin/kalkulation.phtml
+++ b/views/admin/kalkulation.phtml
@@ -7,85 +7,64 @@
?>
<div class="wpsg_admin_submenu">
- <div class="head">
- <div class="title"><?php echo __("Einstellungen", "wpsg"); ?></div>
- <div style="clear:both;"></div>
- </div>
-
- <ul>
- <?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
- <li class="<?php echo (($k == $this->view['subAction'])?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a></li>
+ <div class="list-group">
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration'); ?></span>
+ <?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
+ <a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
<?php } ?>
- </ul>
+ </div>
</div>
-<div style="padding:0px; margin:0px; float:left;">
+<div class="wpsg_admin_content form-horizontal">
<form name="form1" method="post" enctype="multipart/form-data" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $_REQUEST['subaction']; ?>&amp;noheader=1">
- <?php echo wpsg_drawForm_Checkbox('wpsg_kleinunternehmer', __('Kleinunternehmerregelung', 'wpsg'), $this->get_option('wpsg_kleinunternehmer'), array('help' => 'Preiskalkulation_wpsg_kleinunternehmer')); ?>
- <?php echo wpsg_drawForm_Textarea('wpsg_kleinunternehmer_text', __('Kleinunternehmerregelung Text', 'wpsg'), $this->get_option('wpsg_kleinunternehmer_text'), array()) ?>
- <div class="wpsg_preisangaben_layer">
- <div class="wpsg_form_field">
- <div class="wpsg_form_left">
- <?php echo __("Preisangaben im Shop (Backend)", "wpsg"); ?>:
- </div>
- <div class="wpsg_form_right">
- <select name="wpsg_preisangaben">
- <option value="<?php echo WPSG_BRUTTO; ?>" <?php echo (($this->get_option('wpsg_preisangaben') == WPSG_BRUTTO)?'selected="selected"':''); ?>><?php echo __('Brutto (inkl. Steuer)', 'wpsg'); ?></option>
- <option value="<?php echo WPSG_NETTO; ?>" <?php echo (($this->get_option('wpsg_preisangaben') == WPSG_NETTO)?'selected="selected"':''); ?>><?php echo __('Netto (zzgl. Steuer)', 'wpsg'); ?></option>
- </select>
+
+ <div class="panel panel-default">
+ <div class="panel-heading clearfix">
+ <h3 class="panel-title"><?php echo __('Preiskalkulation', 'wpsg'); ?></h3>
+ </div>
+ <div class="panel-body">
+
+ <?php echo wpsg_drawForm_Checkbox('wpsg_hideemptyshipping', __('Versandkosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptyshipping'), array('help' => 'Preiskalkulation_wpsg_hideemptyshipping')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_hideemptypayment', __('Zahlungskosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptypayment'), array('help' => 'Preiskalkulation_wpsg_hideemptypayment')); ?>
+
+ <?php echo wpsg_drawForm_Checkbox('wpsg_kleinunternehmer', __('Kleinunternehmerregelung', 'wpsg'), $this->get_option('wpsg_kleinunternehmer'), array('help' => 'Preiskalkulation_wpsg_kleinunternehmer')); ?>
+
+ <div class="wpsg_kleinunternehmer_layer wpsg_kleinunternehmer_layer_1">
+ <?php echo wpsg_drawForm_Textarea('wpsg_kleinunternehmer_text', __('Kleinunternehmerregelung Text', 'wpsg'), $this->get_option('wpsg_kleinunternehmer_text'), array()) ?>
</div>
- <div class="wpsg_clear"></div>
+
+ <div class="wpsg_kleinunternehmer_layer wpsg_kleinunternehmer_layer_0">
+ <?php echo wpsg_drawForm_Select('wpsg_preisangaben', __('Preisangaben im Shop (Backend)', 'wpsg'), array(
+ WPSG_NETTO => __('Netto (zzgl. Steuer)', 'wpsg'),
+ WPSG_BRUTTO => __('Brutto (inkl. Steuer)', 'wpsg')
+ ), $this->get_option('wpsg_preisangaben')); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_preisangaben_frontend', __('Preisangaben im Shop (Frontend)', 'wpsg'), array(WPSG_BRUTTO => __('Brutto (inkl. Steuer)', 'wpsg'), WPSG_NETTO => __('Netto (zzgl. Steuer)', 'wpsg')), $this->get_option('wpsg_preisangaben_frontend')); ?>
+ </div>
+
</div>
- <?php echo wpsg_drawForm_Select('wpsg_preisangaben_frontend', __('Preisangaben im Shop (Frontend)', 'wpsg'), array(WPSG_BRUTTO => __('Brutto (inkl. Steuer)', 'wpsg'), WPSG_NETTO => __('Netto (zzgl. Steuer)', 'wpsg')), $this->get_option('wpsg_preisangaben_frontend')); ?>
- </div>
-
- <?php echo wpsg_drawForm_Checkbox('wpsg_hideemptyshipping', __('Versandkosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptyshipping'), array('help' => 'Preiskalkulation_wpsg_hideemptyshipping')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_hideemptypayment', __('Zahlungskosten bei 0 ausblenden', 'wpsg'), $this->get_option('wpsg_hideemptypayment'), array('help' => 'Preiskalkulation_wpsg_hideemptypayment')); ?>
-
+ </div>
+
<input type="hidden" name="subaction" value="kalkulation" />
<p class="submit"><input type="submit" value="<?php echo __('Einstellungen speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" /></p>
- <script type="text/javascript">
-
- /**
- * Wird beim ändern der Kleinunternehmerregelung aufgerufen
- */
- function wpsg_setKleinunternehmer()
- {
-
- return;
-
- if (jQuery('#wpsg_kleinunternehmer').attr('checked'))
- {
-
- jQuery('.wpsg_preisangaben_layer').hide();
-
- }
- else
- {
-
- jQuery('.wpsg_preisangaben_layer').show();
-
- }
-
- } // function wpsg_setKleinunternehmer()
-
+ <script type="text/javascript">/* <![CDATA[ */
+
jQuery(document).ready(function() {
jQuery('#wpsg_kleinunternehmer').bind('change', function() {
- wpsg_setKleinunternehmer();
+ jQuery('.wpsg_kleinunternehmer_layer').hide();
+
+ if (jQuery(this).prop('checked')) jQuery('.wpsg_kleinunternehmer_layer_1').show();
+ else jQuery('.wpsg_kleinunternehmer_layer_0').show();
- } );
-
- jQuery('.wpsg_form_help').tipTip();
- wpsg_setKleinunternehmer();
+ } ).change();
} );
- </script>
+ /* ]]> */</script>
</form>
</div> \ No newline at end of file