Coverage for seedboxsync/front/forms/settings/nas.py: 100%
7 statements
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-26 17:14 +0000
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-26 17:14 +0000
1#
2# Copyright (C) 2015-2026 Guillaume Kulakowski <guillaume@kulakowski.fr>
3#
4# For the full copyright and license information, please view the LICENSE
5# file that was distributed with this source code.
6#
7"""SeedboxSync WTForms form for settings NAS."""
9from flask_wtf import FlaskForm
10from wtforms import StringField
11from wtforms.validators import DataRequired
12from seedboxsync.front.babel import gettext as _
15class SettingsNasForm(FlaskForm): # type: ignore[misc]
16 """
17 Form for configuring local NAS storage paths.
19 Manages path definitions for local torrent watch folders and local
20 download storage locations.
21 """
23 local_watch_path = StringField(
24 _("Watch path"),
25 validators=[DataRequired()],
26 render_kw={"placeholder": "/watch", "icon": "fa-folder", "help": _("Your local watch folder.")},
27 )
28 local_download_path = StringField(
29 _("Downloads path"),
30 validators=[DataRequired()],
31 render_kw={"placeholder": "/downloads", "icon": "fa-folder", "help": _("Path where files are downloaded.")},
32 )