Files
kupshop/bundles/KupShop/POSBundle/Admin/templates/window/PosAdminSettings.tpl
2025-08-02 16:30:27 +02:00

96 lines
5.1 KiB
Smarty

{extends "[shared]/windowFrame.tpl"}
{block content}
<div id="flapPosAdminSettings" class="tab-pane fade active in boxStatic box">
<h1 class="h4 main-panel-title">{'regularPosAppPermissions'|translate:"posSettings"}</h1>
<div class="form-group">
<div class="col-md-2 control-label">
<label>{'api'|translate:"posSettings"}</label>
<a class="help-tip" data-toggle="tooltip" title="{'api_tooltip'|translate:"posSettings"}"><i class="bi bi-question-circle"></i></a>
</div>
<div class="col-md-10">
<div class="checkbox">
<input type="checkbox" class="check" name="data[POS_API]" id="POS_API"
value="ON" {if {find_right name="POS_API" var=$body.data.privilege}}checked{/if} />
<label for="POS_API">
{'use'|translate:"posSettings"}</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-2 control-label">
<label>{'settings'|translate:"posSettings"}</label>
<a class="help-tip" data-toggle="tooltip" title="{'settings_tooltip'|translate:"posSettings"}"><i class="bi bi-question-circle"></i></a>
</div>
<div class="col-md-10">
<div class="checkbox">
<input type="checkbox" class="check" name="data[POS_SETTINGS]" id="POS_SETTINGS"
value="ON" {if {find_right name="POS_SETTINGS" var=$body.data.privilege}}checked{/if} />
<label for="POS_SETTINGS">
{'set'|translate:"posSettings"}</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-2 control-label">
<label>{'app_settings'|translate:"posSettings"}</label>
<a class="help-tip" data-toggle="tooltip" title="{'app_settings_tooltip'|translate:"posSettings"}"><i class="bi bi-question-circle"></i></a>
</div>
<div class="col-md-10">
<div class="checkbox">
<input type="checkbox" class="check" name="data[POS_APP_SETTINGS]" id="POS_APP_SETTINGS"
value="ON" {if {find_right name="POS_APP_SETTINGS" var=$body.data.privilege}}checked{/if} />
<label for="POS_APP_SETTINGS">
{'set'|translate:"posSettings"}</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-2 control-label">
<label>{'discount_settings'|translate:"posSettings"}</label>
<a class="help-tip" data-toggle="tooltip" title="{'discount_settings_tooltip'|translate:"posSettings"}"><i class="bi bi-question-circle"></i></a>
</div>
<div class="col-md-10">
<div class="checkbox">
<input type="checkbox" class="check" name="data[POS_DISCOUNT_SETTINGS]" id="POS_DISCOUNT_SETTINGS"
value="ON" {if {find_right name="POS_DISCOUNT_SETTINGS" var=$body.data.privilege}}checked{/if} />
<label for="POS_DISCOUNT_SETTINGS">
{'allow'|translate:"posSettings"}</label>
</div>
</div>
</div>
<h1 class="h4 main-panel-title">{'storesPosAppPermissions'|translate:"posSettings"}</h1>
<div class="form-group" {if findModule('warehouse')}style="pointer-events:none; opacity: 75%"{/if}>
<div class="col-md-2 control-label">
<label>{'purchase_with_negative_pieces'|translate:"posSettings"}</label>
<a class="help-tip" data-toggle="tooltip" title="{'purchase_with_negative_pieces_tooltip'|translate:"posSettings"}"><i class="bi bi-question-circle"></i></a>
</div>
<div class="col-md-10">
<div class="checkbox">
<input type="checkbox" class="check" name="data[POS_PURCHASE_WITH_NEGATIVE_PIECES]" id="POS_PURCHASE_WITH_NEGATIVE_PIECES"
value="ON" {if {find_right name="POS_PURCHASE_WITH_NEGATIVE_PIECES" var=$body.data.privilege}}checked{/if} />
<label for="POS_PURCHASE_WITH_NEGATIVE_PIECES">
{'allow'|translate:"posSettings"}</label>
</div>
</div>
</div>
<div class="form-group" {if findModule('warehouse')}style="pointer-events:none; opacity: 75%"{/if}>
<div class="col-md-2 control-label">
<label>{'purchase_skip_pieces_check'|translate:"posSettings"}</label>
<a class="help-tip" data-toggle="tooltip" title="{'purchase_skip_pieces_check_tooltip'|translate:"posSettings"}">
<i class="bi bi-question-circle"></i>
</a>
</div>
<div class="col-md-10">
<div class="checkbox">
<input type="checkbox" class="check" name="data[POS_PURCHASE_SKIP_PIECES_CHECK]" id="POS_PURCHASE_SKIP_PIECES_CHECK"
value="ON" {if {find_right name="POS_PURCHASE_SKIP_PIECES_CHECK" var=$body.data.privilege}}checked{/if} />
<label for="POS_PURCHASE_SKIP_PIECES_CHECK">
{'allow'|translate:"posSettings"}</label>
</div>
</div>
</div>
</div>
{/block}