summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 19387aa..e18de5e 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -122,8 +122,10 @@ class FolderForm(FlaskForm):
class ClientDetailsForm(FlaskForm):
server = HiddenField()
name = StringField(label=_l('Name'))
- ip = StringField(label=_l('IP'))
- mac = StringField(label=_l('MAC'))
+ ip = StringField(label=_l('IP'),
+ validators=[InputRequired()])
+ mac = StringField(label=_l('MAC'),
+ validators=[InputRequired()])
serial_number = StringField(label=_l('Serial Number'))
livedir = SelectField(label=_l('ogLive'),
choices=[('ogLive', 'Default'),])