Add config for supported vendor catalog parsers
also explicitly set "native value" for all configuration checkbox fields, since apparently it will send `'false'` by default...
This commit is contained in:
parent
2ce7c93aeb
commit
dc28b1337d
8 changed files with 92 additions and 0 deletions
|
@ -10,12 +10,42 @@
|
|||
<b-field>
|
||||
<b-checkbox name="rattail.batch.vendor_catalog.allow_future"
|
||||
v-model="simpleSettings['rattail.batch.vendor_catalog.allow_future']"
|
||||
native-value="true"
|
||||
@input="settingsNeedSaved = true">
|
||||
Allow "future" cost changes
|
||||
</b-checkbox>
|
||||
</b-field>
|
||||
|
||||
</div>
|
||||
|
||||
<h3 class="block is-size-3">Catalog Parsers</h3>
|
||||
<div class="block" style="padding-left: 2rem;">
|
||||
|
||||
<p class="block">
|
||||
Only the selected parsers will be exposed to users.
|
||||
</p>
|
||||
|
||||
% for Parser in catalog_parsers:
|
||||
<b-field message="${Parser.key}">
|
||||
<b-checkbox name="catalog_parser_${Parser.key}"
|
||||
v-model="catalogParsers['${Parser.key}']"
|
||||
native-value="true"
|
||||
@input="settingsNeedSaved = true">
|
||||
${Parser.display}
|
||||
</b-checkbox>
|
||||
</b-field>
|
||||
% endfor
|
||||
|
||||
</div>
|
||||
</%def>
|
||||
|
||||
<%def name="modify_this_page_vars()">
|
||||
${parent.modify_this_page_vars()}
|
||||
<script type="text/javascript">
|
||||
|
||||
ThisPageData.catalogParsers = ${json.dumps(catalog_parsers_data)|n}
|
||||
|
||||
</script>
|
||||
</%def>
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue