Permalink
Browse files

Use localized strings and add format description for MAC address

  • Loading branch information...
ibot3 committed Oct 11, 2018
1 parent 0ab4f9e commit 25a51666152dde198e9b3f81d5d18f08d5c9c418
Showing with 4 additions and 3 deletions.
  1. +4 −3 sipa/forms.py
@@ -175,9 +175,10 @@ class ChangeMACForm(FlaskForm):
validators=[DataRequired(lazy_gettext("Passwort nicht angegeben!"))])
mac = StrippedStringField(
label=lazy_gettext("Neue MAC"),
validators=[DataRequired("MAC-Adresse nicht angegeben!"),
MacAddress("MAC ist nicht in gültigem Format!"),
require_unicast_mac])
validators=[DataRequired(lazy_gettext("MAC-Adresse nicht angegeben!")),
MacAddress(lazy_gettext("MAC ist nicht in gültigem Format!")),
require_unicast_mac],
description="XX:XX:XX:XX:XX:XX")
host_name = StringField(label=lazy_gettext("Neuer Gerätename (Optional)"),
validators=[Regexp(regex="^[a-zA-Z0-9 ]+", message=u"Gerätename ist ungültig"),
Optional()],

0 comments on commit 25a5166

Please sign in to comment.