diff options
Diffstat (limited to 'views/admin/kalkulation.phtml')
| -rw-r--r-- | views/admin/kalkulation.phtml | 99 |
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&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&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&subaction=<?php echo $_REQUEST['subaction']; ?>&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 |
