summaryrefslogtreecommitdiff
path: root/views/mods/mod_customergroup/addedit.phtml
blob: c3522e174add27d455f26443b8cdb6cd99fd906d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
	
	/**
	 * Template für das Anlegen und Bearbeiten einer Kundengruppe im Backend
	 * @version 4.6.1
	 */

?>
<div class="wpsg_customergroup wpsg_customergroup_add" id="wpsg-bs">

    <nav class="navbar navbar-default">

		<div class="container-fluid">
			<div class="navbar-header">
				<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
			</div>
			<div class="collapse navbar-collapse" id="bs-customergroup-navbar-collapse-1">
				<ul class="nav navbar-nav">
					<li role="presentation" class="wpsg-customergroup-tab-a active"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&action=index"><?php echo __("Kundengruppenverwaltung", "wpsg"); ?></a></li>
					<li role="presentation" class="<?php echo ((wpsg_isSizedString($_REQUEST['action'], 'add'))?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&action=add"><span class="glyphicon glyphicon-plus"></span><?php echo __("Kundengruppe anlegen/bearbeiten", "wpsg"); ?></a></li>
				</ul>
				<ul class="nav navbar-nav navbar-right">

				</ul>
			</div>
		</div>

    </nav>

	<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
	
	<div class="wpsg_clear"></div>

	<div class="content form-horizontal">

        <form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&action=save&noheader=1" enctype="multipart/form-data">
            <?php echo wpsg_drawForm_AdminboxStart(__('Allgemein', 'wpsg')); ?>

                <?php if ($this->view['mode'] == 'edit') { ?>
                <input type="hidden" name="edit_id" value="<?php echo $this->view['data']->id; ?>" />
                <?php } ?>

                <?php $this->callMods('customergroup_edit', array(&$this->view['data'])); ?>

                <?php echo wpsg_drawForm_Input('wpsg_mod_kundenverwaltung[name]', __('Name', 'wpsg'), @$this->view['data']->name); ?>
                <?php echo wpsg_drawForm_Select('wpsg_mod_kundenverwaltung[calculation]', __('Preisangaben im Shop (Frontend)', 'wpsg'), array(
                    -1 => __('Standard', 'wpsg'),
                    WPSG_BRUTTO => __('Brutto (inkl. Steuer)', 'wpsg'),
                    WPSG_NETTO => __('Netto (zzgl. Steuer)', 'wpsg')
                ), @$this->view['data']->calculation); ?>

            <?php echo wpsg_drawForm_AdminboxEnd(); ?>

            <input type="submit" value="<?php echo __('Kundengruppe speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" />
			<input type="submit" value="<?php echo __('Kundengruppe speichern und zur Übersicht', 'wpsg'); ?>" class="button-primary" id="submit_index" name="submit_index" />

        </form>

    </div>

</div>