{% load static %} {% load i18n %} {% if messages %} {% endif %}

{% if device_id %} {% trans "Edit" %} {% else %} {% trans "Add" %} {% endif %} {{ biometric_form.verbose_name }}

{% csrf_token %} {{ biometric_form.non_field_errors }}
{# name #}
{{ biometric_form.name }} {% if biometric_form.name.errors %} {{ biometric_form.name.errors }} {% endif %}
{# machine_type #}
{{ biometric_form.machine_type }} {% if biometric_form.machine_type.errors %} {{ biometric_form.machine_type.errors }} {% endif %}
{# machine_ip #} {# port #} {# zk_password #} {# bio_username #} {# bio_password #} {# Anviz specific fields #} {# direction and company #}
{{ biometric_form.device_direction }} {% if biometric_form.device_direction.errors %} {{ biometric_form.device_direction.errors }} {% endif %}
{{ biometric_form.company_id }} {% if biometric_form.company_id.errors %} {{ biometric_form.company_id.errors }} {% endif %}