<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">

<div id="header"><h1><a href="/">Orders System</a><br><br></h1></div>

<h2>{{model.printername}}</h2>
<script>
  let printerforstateenabled = [
          {% for item in model.printerforstateenabled %}
          "{{item.name}}",
          {% endfor %}
       ];

  let enabledStatesforcategories = new Map([
    {% for item in model.enabledstatesforcategories %}
    ["{{item.index}}",[{% for statename