// Groups review
This commit is contained in:
@@ -27,11 +27,11 @@
|
|||||||
|
|
||||||
{block name="label"}
|
{block name="label"}
|
||||||
{if $input['type'] == 'modules'}
|
{if $input['type'] == 'modules'}
|
||||||
<div style="{if !$form_id}display:none{/if}">
|
<div {if !$form_id}class="hide"{/if}>
|
||||||
<label class="control-label col-lg-3">{l s='Authorized modules:'}</label>
|
<label class="control-label col-lg-3">{l s='Authorized modules:'}</label>
|
||||||
</div>
|
</div>
|
||||||
{elseif $input['type'] == 'group_discount_category'}
|
{elseif $input['type'] == 'group_discount_category'}
|
||||||
<div style="{if !$form_id}display:none{/if}">
|
<div {if !$form_id}class="hide"{/if}>
|
||||||
{$smarty.block.parent}
|
{$smarty.block.parent}
|
||||||
</div>
|
</div>
|
||||||
{else}
|
{else}
|
||||||
@@ -39,10 +39,9 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|
||||||
{block name="field"}
|
{block name="field"}
|
||||||
{if $input['type'] == 'group_discount_category'}
|
{if $input['type'] == 'group_discount_category'}
|
||||||
<div style="{if !$form_id}display:none{/if}">
|
<div {if !$form_id}class="hide"{/if}>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("#group_discount_category").fancybox({
|
$("#group_discount_category").fancybox({
|
||||||
@@ -143,7 +142,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
<div style="display:none" id="group_discount_category_fancybox">
|
<div style="display:none" id="group_discount_category_fancybox">
|
||||||
<div class="panel form-horizontal">
|
<div class="panel form-horizontal">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
@@ -168,7 +167,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{elseif $input['type'] == 'modules'}
|
{elseif $input['type'] == 'modules'}
|
||||||
<div style="{if !$form_id}display:none{/if}">
|
<div {if !$form_id}class="hide"{/if}>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#authorized-modules').find('[value="0"]').click(function() {
|
$('#authorized-modules').find('[value="0"]').click(function() {
|
||||||
@@ -217,4 +216,4 @@
|
|||||||
{else}
|
{else}
|
||||||
{$smarty.block.parent}
|
{$smarty.block.parent}
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
@@ -26,58 +26,62 @@
|
|||||||
{extends file="helpers/view/view.tpl"}
|
{extends file="helpers/view/view.tpl"}
|
||||||
|
|
||||||
{block name="override_tpl"}
|
{block name="override_tpl"}
|
||||||
<div class="col-lg-6">
|
<div class="row">
|
||||||
<div class="panel">
|
<div class="col-lg-6">
|
||||||
<h3><i class="icon-group"></i> {l s='Group information'}</h3>
|
<div class="panel">
|
||||||
<h2><i class="icon-group"></i> {$group->name[$language->id]}</h2>
|
<h3><i class="icon-group"></i> {l s='Group information'}</h3>
|
||||||
<div class="form-horizontal">
|
<h2><i class="icon-group"></i> {$group->name[$language->id]}</h2>
|
||||||
<div class="form-group">
|
<div class="form-horizontal">
|
||||||
<label class="col-lg-3 control-label">{l s='Discount:'}</label>
|
<div class="form-group">
|
||||||
<div class="col-lg-3"><p class="form-control-static">{l s='%d%%' sprintf=$group->reduction}</p></div>
|
<label class="col-lg-3 control-label">{l s='Discount:'}</label>
|
||||||
</div>
|
<div class="col-lg-3"><p class="form-control-static">{l s='%d%%' sprintf=$group->reduction}</p></div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label class="col-lg-3 control-label">{l s='Price display method:'}</label>
|
<div class="form-group">
|
||||||
<div class="col-lg-3"><p class="form-control-static">{if $group->price_display_method}
|
<label class="col-lg-3 control-label">{l s='Price display method:'}</label>
|
||||||
{l s='Tax excluded'}
|
<div class="col-lg-3"><p class="form-control-static">{if $group->price_display_method}
|
||||||
{else}
|
{l s='Tax excluded'}
|
||||||
{l s='Tax included'}
|
{else}
|
||||||
{/if}</p></div>
|
{l s='Tax included'}
|
||||||
</div>
|
{/if}</p></div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label class="col-lg-3 control-label">{l s='Show prices:'}</label>
|
<div class="form-group">
|
||||||
<div class="col-lg-3"><p class="form-control-static">{if $group->show_prices}{l s='Yes'}{else}{l s='No'}{/if}</p></div>
|
<label class="col-lg-3 control-label">{l s='Show prices:'}</label>
|
||||||
|
<div class="col-lg-3"><p class="form-control-static">{if $group->show_prices}{l s='Yes'}{else}{l s='No'}{/if}</p></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col-lg-6">
|
||||||
<div class="col-lg-6">
|
<div class="panel">
|
||||||
<div class="panel">
|
<h3><i class="icon-dollar"></i> {l s='Current category discount'}</h3>
|
||||||
<h3><i class="icon-dollar"></i> {l s='Current category discount'}</h3>
|
{if !$categorieReductions}
|
||||||
{if !$categorieReductions}
|
<div class="alert alert-warning">{l s='None'}</div>
|
||||||
<div class="alert alert-warning">{l s='None'}</div>
|
{else}
|
||||||
{else}
|
<table class="table">
|
||||||
<table class="table">
|
<thead>
|
||||||
<thead>
|
<tr>
|
||||||
<tr>
|
<th><span class="title_box">{l s='Category'}</span></th>
|
||||||
<th><span class="title_box">{l s='Category'}</span></th>
|
<th><span class="title_box">{l s='Discount'}</span></th>
|
||||||
<th><span class="title_box">{l s='Discount'}</span></th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
</thead>
|
<tbody>
|
||||||
<tbody>
|
{foreach $categorieReductions key=key item=category }
|
||||||
{foreach $categorieReductions key=key item=category }
|
<tr class="alt_row">
|
||||||
<tr class="alt_row">
|
<td>{$category.path}</td>
|
||||||
<td>{$category.path}</td>
|
<td>{l s='%d%%' sprintf=$category.reduction}</td>
|
||||||
<td>{l s='%d%%' sprintf=$category.reduction}</td>
|
</tr>
|
||||||
</tr>
|
{/foreach}
|
||||||
{/foreach}
|
<tbody>
|
||||||
<tbody>
|
</table>
|
||||||
</table>
|
{/if}
|
||||||
{/if}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-12">
|
<div class="row">
|
||||||
<h2>{l s='Members of this customer group'}</h2>
|
<div class="col-lg-12">
|
||||||
<p>{l s='Limited to the first 100 customers.'} {l s='Please use filters to narrow your search.'}</p>
|
<h2>{l s='Members of this customer group'}</h2>
|
||||||
{$customerList}
|
<p>{l s='Limited to the first 100 customers.'} {l s='Please use filters to narrow your search.'}</p>
|
||||||
|
{$customerList}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
@@ -310,7 +310,7 @@ class AdminGroupsControllerCore extends AdminController
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'type' => 'modules',
|
'type' => 'modules',
|
||||||
'label' => array('auth_modules' => $this->l('Authorized modules:'), 'unauth_modules' => $this->l('Unauthorized modules:')),
|
'label' => $this->l('Modules Authorization'),
|
||||||
'name' => 'auth_modules',
|
'name' => 'auth_modules',
|
||||||
'values' => $this->formatModuleListAuth($group->id)
|
'values' => $this->formatModuleListAuth($group->id)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user