Subversion Repositories wpShopGermany4

Rev

Rev 7549 | Rev 8195 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6134 daniel 1
<?php
2
 
3
	/**
4
	 * Template für das Anlegen/Bearbeiten einer Produktgruppe
5
	 */
6
 
7
?>
8
 
9
<div class="wpsg_productgroups" id="wpsg-bs">
10
 
11
    <nav class="navbar navbar-default">
12
 
13
		<div class="container-fluid">
14
			<div class="navbar-header">
15
				<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
16
			</div>
17
			<div class="collapse navbar-collapse" id="bs-customer-navbar-collapse-1">
18
				<ul class="nav navbar-nav">
19
					<li role="presentation" class="wpsg-customer-tab-a active"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Productgroups&wpsg_mod_action=index"><?php echo __("Produktgruppenverwaltung", "wpsg"); ?></a></li>
7774 daniel 20
                    <li role="presentation" class="active"><a href="<?php
21
 
22
                        echo wpsg_admin_url('Productgroups', '', ['wpsg_mod_action' => 'add']);
23
 
24
                    ?>"><span class="glyphicon glyphicon-plus"></span><?php echo __("Produktgruppe anlegen/bearbeiten", "wpsg"); ?></a></li>
6134 daniel 25
				</ul>
26
				<ul class="nav navbar-nav navbar-right">
27
				</ul>
28
			</div>
29
		</div>
30
 
31
    </nav>
32
 
7549 daniel 33
	<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
34
	<div class="wpsg_clear"></div>
6134 daniel 35
 
36
    <form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Productgroups&wpsg_mod_action=save&noheader=1" enctype="multipart/form-data">
7549 daniel 37
 
38
		<?php echo \wp_nonce_field('wpsg-productgroup-save-'.wpsg_getInt($_REQUEST['edit_id'])); ?>
39
 
6134 daniel 40
        <div class="content form-horizontal">
41
 
42
            <div class="row">
43
                <div class="col-md-8 col-lg-8">
44
 
45
                    <?php echo wpsg_drawForm_AdminboxStart(__('Allgemein', 'wpsg')); ?>
46
 
7549 daniel 47
                        <?php echo wpsg_drawForm_Input('name', __('Produktgruppenname', 'wpsg'), $this->view['data']['name']); ?>
6134 daniel 48
 
49
                        <?php if (wpsg_isSizedArray($this->view['languages'])) { ?>
6494 hartmut 50
                            <?php foreach ($this->view['languages'] as $l) { if ($l['locale'] != $this->getDefaultLanguageLocale()) { ?>
6134 daniel 51
 
52
                                <?php echo wpsg_drawForm_Input(
53
                                    'lang['.$l['locale'].'][name]',
6655 daniel 54
                                    __('Produktgruppenname', 'wpsg').'&nbsp;('.$l['name'].'&nbsp;<img src="'.$this->getFlagURL().$l['flag'].'" alt="'.$l['Name'].'" />)',
6134 daniel 55
                                    $this->view['data']['lang'][$l['locale']]['name']
56
                                ); ?>
57
 
58
                            <?php } } ?>
59
                        <?php } ?>
60
 
7549 daniel 61
                        <?php echo wpsg_drawForm_Select('template_file', __('Template', 'wpsg'), $this->view['templates'], $this->view['data']['template_file']); ?>
62
                        <?php echo wpsg_drawForm_Select('infopage', __('Info Seite', 'wpsg'), $this->view['pages'], $this->view['data']['infopage']); ?>
6134 daniel 63
 
64
                    <?php echo wpsg_drawForm_AdminboxEnd(); ?>
65
 
66
                </div>
67
                <div class="col-md-4 col-lg-4">
68
 
69
                    <?php $this->callMods('wpsg_mod_productgroups_addedit_sidebar', array(&$this->view['data'])); ?>
70
 
71
                </div>
72
            </div>
73
 
74
            <input type="submit" value="<?php echo __('Produktgruppe speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" />
75
	        <input type="submit" value="<?php echo __('Produktgruppe speichern und zur Übersicht', 'wpsg'); ?>" class="button-primary" id="submit_index" name="submit_index" />
76
 
77
        </div>
78
 
79
        <?php if (isset($this->view['data']['id']) && $this->view['data']['id'] > 0) { ?>
80
		<input type="hidden" name="edit_id" value="<?php echo $this->view['data']['id']; ?>" />
81
		<?php } ?>
82
 
83
    </form>
84
 
85
</div>