Subversion Repositories wpShopGermany4

Rev

Rev 6503 | Rev 7549 | 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>
20
                    <li role="presentation" class="active"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Productgroups&wpsg_mod_action=add"><span class="glyphicon glyphicon-plus"></span><?php echo __("Produktgruppe anlegen/bearbeiten", "wpsg"); ?></a></li>
21
				</ul>
22
				<ul class="nav navbar-nav navbar-right">
23
				</ul>
24
			</div>
25
		</div>
26
 
27
    </nav>
28
 
29
    <div class="wpsg_clear"></div>
30
 
31
    <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">
32
        <div class="content form-horizontal">
33
 
34
            <div class="row">
35
                <div class="col-md-8 col-lg-8">
36
 
37
                    <?php echo wpsg_drawForm_AdminboxStart(__('Allgemein', 'wpsg')); ?>
38
 
6655 daniel 39
                        <?php echo wpsg_drawForm_Input('wpsg_mod_productgroups_name', __('Produktgruppenname', 'wpsg'), $this->view['data']['name']); ?>
6134 daniel 40
 
41
                        <?php if (wpsg_isSizedArray($this->view['languages'])) { ?>
6494 hartmut 42
                            <?php foreach ($this->view['languages'] as $l) { if ($l['locale'] != $this->getDefaultLanguageLocale()) { ?>
6134 daniel 43
 
44
                                <?php echo wpsg_drawForm_Input(
45
                                    'lang['.$l['locale'].'][name]',
6655 daniel 46
                                    __('Produktgruppenname', 'wpsg').'&nbsp;('.$l['name'].'&nbsp;<img src="'.$this->getFlagURL().$l['flag'].'" alt="'.$l['Name'].'" />)',
6134 daniel 47
                                    $this->view['data']['lang'][$l['locale']]['name']
48
                                ); ?>
49
 
50
                            <?php } } ?>
51
                        <?php } ?>
52
 
53
                        <?php echo wpsg_drawForm_Select('wpsg_mod_productgroups_template', __('Template', 'wpsg'), $this->view['templates'], $this->view['data']['template_file']); ?>
54
                        <?php echo wpsg_drawForm_Select('wpsg_mod_productgroups_infopage', __('Info Seite', 'wpsg'), $this->view['pages'], $this->view['data']['infopage']); ?>
55
 
56
                    <?php echo wpsg_drawForm_AdminboxEnd(); ?>
57
 
58
                </div>
59
                <div class="col-md-4 col-lg-4">
60
 
61
                    <?php $this->callMods('wpsg_mod_productgroups_addedit_sidebar', array(&$this->view['data'])); ?>
62
 
63
                </div>
64
            </div>
65
 
66
            <input type="submit" value="<?php echo __('Produktgruppe speichern', 'wpsg'); ?>" class="button-primary" id="submit" name="submit" />
67
	        <input type="submit" value="<?php echo __('Produktgruppe speichern und zur Übersicht', 'wpsg'); ?>" class="button-primary" id="submit_index" name="submit_index" />
68
 
69
        </div>
70
 
71
        <?php if (isset($this->view['data']['id']) && $this->view['data']['id'] > 0) { ?>
72
		<input type="hidden" name="edit_id" value="<?php echo $this->view['data']['id']; ?>" />
73
		<?php } ?>
74
 
75
    </form>
76
 
77
</div>