summaryrefslogtreecommitdiff
path: root/views/mods/mod_legaltexts/settings_edit.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-02-06 07:57:50 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-02-06 07:57:50 +0000
commit4bb920b778122188ca914686c7e5830449524720 (patch)
tree74e8015430b2400b9a4fe0a55c80a2e2ac3725f1 /views/mods/mod_legaltexts/settings_edit.phtml
parent1336e14ea02c765cc245d0f1ee46cae258de65cb (diff)
- Warnung
- Platzhalter in Text Anschreiben git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7286 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_legaltexts/settings_edit.phtml')
-rw-r--r--views/mods/mod_legaltexts/settings_edit.phtml78
1 files changed, 56 insertions, 22 deletions
diff --git a/views/mods/mod_legaltexts/settings_edit.phtml b/views/mods/mod_legaltexts/settings_edit.phtml
index 25cf8a6..d3565f1 100644
--- a/views/mods/mod_legaltexts/settings_edit.phtml
+++ b/views/mods/mod_legaltexts/settings_edit.phtml
@@ -3,38 +3,72 @@
/**
* Template für das Modul "Rechtstexte"
*/
-
+
?>
-<?php echo wpsg_drawForm_Select('wpsg_mod_legaltexts_provider', __('Anbieter', 'wpsg'), array(
- wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS => __('Protected Shops', 'wpsg'),
- wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND => __('Händlerbund', 'wpsg'),
- wpsg_mod_legaltexts::PROVIDER_ITRECHT => __('IT-Recht Kanzlei München', 'wpsg')
-), $this->get_option('wpsg_mod_legaltexts_provider'), array('help' => 'wpsg_mod_legaltexts_provider')); ?>
+<div class="wpsg_mod_legaltext_select">
+
+ <label class="bg-info mark <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_ITRECHT)?'open':''); ?>" title="<?php echo __('Premiumpartner', 'itrecht'); ?>">
+
+ <input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_ITRECHT)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_ITRECHT; ?>" />
+ <span class="name"><?php echo __('IT-Recht Kanzlei München') ?></span>
+ <span class="grow"></span>
+ <span class="text-info glyphicon glyphicon-star-empty" aria-hidden="true"></span>
+
+ </label>
+
+ <div class="wpsg_provider_target wpsg_provider_target_<?php echo wpsg_mod_legaltexts::PROVIDER_ITRECHT; ?>"></div>
+
+ <label class="<?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS)?'open':''); ?>">
+
+ <input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS; ?>" />
+ <span class="name"><?php echo __('Protected Shops') ?></span>
-<br />
+ </label>
-<div id="wpsg_provider_target"></div>
+ <div class="wpsg_provider_target wpsg_provider_target_<?php echo wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS; ?>"></div>
+ <label class="<?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND)?'open':''); ?>">
+
+ <input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND; ?>" />
+ <span class="name"><?php echo __('Händlerbund') ?></span>
+
+ </label>
+
+ <div class="wpsg_provider_target wpsg_provider_target_<?php echo wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND; ?>"></div>
+
+</div>
+
<script type="text/javascript">/* <![CDATA[ */
jQuery(document).ready(function() {
- jQuery('#wpsg_mod_legaltexts_provider').bind('change', function() {
+ jQuery('.wpsg_mod_legaltexts_provider').bind('change', function() {
- jQuery('#wpsg_provider_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_legaltexts&noheader=1&do=add',
- data: {
- 'provider': jQuery('#wpsg_mod_legaltexts_provider').val()
- },
- success: function(data) {
-
- jQuery('#wpsg_provider_target').html(data);
-
- }
- } );
+ if (parseInt(jQuery('input[name=wpsg_mod_legaltexts_provider]:checked').val()) > 0) {
+
+ jQuery('.wpsg_mod_legaltext_select > label').removeClass('open');
+ jQuery('.wpsg_provider_target').slideUp(125);
+
+ var target = '.wpsg_provider_target_' + jQuery('input[name=wpsg_mod_legaltexts_provider]:checked').val();
+
+ jQuery(target).html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_legaltexts&noheader=1&do=add',
+ data: {
+ 'provider': jQuery('input[name=wpsg_mod_legaltexts_provider]:checked').val()
+ },
+ success: function(data) {
+
+ jQuery(target).prev().addClass('open');
+ jQuery(target).html(data);
+ jQuery(target).slideDown(125);
+
+ }
+ } );
+
+ }
} ).change();