mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-03-16 22:10:28 +00:00
More
This commit is contained in:
parent
4344b36e02
commit
c2a9bc559e
154 changed files with 474 additions and 436 deletions
|
|
@ -223,6 +223,7 @@ INSTALLED_APPS = [
|
|||
"fobi.contrib.plugins.form_elements.fields.decimal",
|
||||
"fobi.contrib.plugins.form_elements.fields.duration",
|
||||
"fobi.contrib.plugins.form_elements.fields.email",
|
||||
"fobi.contrib.plugins.form_elements.fields.email_repeat",
|
||||
"fobi.contrib.plugins.form_elements.fields.file",
|
||||
"fobi.contrib.plugins.form_elements.fields.float",
|
||||
"fobi.contrib.plugins.form_elements.fields.hidden",
|
||||
|
|
@ -565,7 +566,7 @@ LOGGING = {
|
|||
},
|
||||
"root": {
|
||||
"level": "INFO",
|
||||
"handlers": ["all_log"],
|
||||
"handlers": ["console"],
|
||||
},
|
||||
"formatters": {
|
||||
"verbose": {
|
||||
|
|
@ -585,54 +586,27 @@ LOGGING = {
|
|||
"class": "logging.StreamHandler",
|
||||
"formatter": "verbose",
|
||||
},
|
||||
"all_log": {
|
||||
"level": "DEBUG",
|
||||
"class": "logging.handlers.RotatingFileHandler",
|
||||
"filename": PROJECT_DIR("../../logs/all.log"),
|
||||
"maxBytes": 1048576,
|
||||
"backupCount": 99,
|
||||
"formatter": "verbose",
|
||||
},
|
||||
"django_log": {
|
||||
"level": "DEBUG",
|
||||
"class": "logging.handlers.RotatingFileHandler",
|
||||
"filename": PROJECT_DIR("../../logs/django.log"),
|
||||
"maxBytes": 1048576,
|
||||
"backupCount": 99,
|
||||
"formatter": "verbose",
|
||||
},
|
||||
"django_request_log": {
|
||||
"level": "DEBUG",
|
||||
"class": "logging.handlers.RotatingFileHandler",
|
||||
"filename": PROJECT_DIR("../../logs/django_request.log"),
|
||||
"maxBytes": 1048576,
|
||||
"backupCount": 99,
|
||||
"formatter": "verbose",
|
||||
},
|
||||
"fobi_log": {
|
||||
"level": "DEBUG",
|
||||
"class": "logging.handlers.RotatingFileHandler",
|
||||
"filename": PROJECT_DIR("../../logs/fobi.log"),
|
||||
"maxBytes": 1048576,
|
||||
"backupCount": 99,
|
||||
"formatter": "verbose",
|
||||
},
|
||||
},
|
||||
"loggers": {
|
||||
"django.request": {
|
||||
"handlers": ["django_request_log"],
|
||||
"handlers": ["console"],
|
||||
"level": "INFO",
|
||||
"propagate": True,
|
||||
},
|
||||
"django": {
|
||||
"handlers": ["django_log"],
|
||||
"handlers": ["console"],
|
||||
"level": "ERROR",
|
||||
"propagate": False,
|
||||
},
|
||||
"fobi": {
|
||||
"handlers": ["console", "fobi_log"],
|
||||
"handlers": ["console"],
|
||||
"level": "DEBUG",
|
||||
"propagate": True,
|
||||
"propagate": False,
|
||||
},
|
||||
"": {
|
||||
"handlers": ["console"],
|
||||
"level": "DEBUG",
|
||||
"propagate": False,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,8 +71,3 @@ os.environ.setdefault(
|
|||
'FOBI_SOURCE_PATH',
|
||||
'/home/user/repose/django-fobi/src'
|
||||
)
|
||||
|
||||
try:
|
||||
from .loca_settings import TEST_DATABASES as DATABASES
|
||||
except:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
[tool.black]
|
||||
line-length = 80
|
||||
target-version = ['py39']
|
||||
target-version = ['py37', 'py38', 'py39',]
|
||||
include = '\.pyi?$'
|
||||
exclude = '''
|
||||
/(
|
||||
|
|
@ -28,3 +28,75 @@ exclude = '''
|
|||
| profiling
|
||||
)/
|
||||
'''
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
combine_as_imports = true
|
||||
multi_line_output = 3
|
||||
include_trailing_comma = true
|
||||
force_grid_wrap = 0
|
||||
use_parentheses = true
|
||||
ensure_newline_before_comments = true
|
||||
line_length = 80
|
||||
known_first_party = [
|
||||
"admin_tools_dashboard",
|
||||
"bar",
|
||||
"cmd_addons",
|
||||
"customauth",
|
||||
"factories",
|
||||
"fobi",
|
||||
"fobi_locale",
|
||||
"foo",
|
||||
"foreign_key_to_saved_form_data_entry",
|
||||
"locale",
|
||||
"override_radio_plugin",
|
||||
"override_select_model_object_plugin",
|
||||
"override_simple_theme",
|
||||
"page",
|
||||
"registration_addons",
|
||||
"runserver",
|
||||
"settings",
|
||||
"templates",
|
||||
"urls",
|
||||
]
|
||||
|
||||
known_third_party = ["django", "factory"]
|
||||
skip = ["wsgi.py", "migrations/"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 80
|
||||
|
||||
# Enable Pyflakes `E` and `F` codes by default.
|
||||
select = ["E", "F"]
|
||||
ignore = []
|
||||
|
||||
# Exclude a variety of commonly ignored directories.
|
||||
exclude = [
|
||||
".bzr",
|
||||
".direnv",
|
||||
".eggs",
|
||||
".git",
|
||||
".hg",
|
||||
".mypy_cache",
|
||||
".nox",
|
||||
".pants.d",
|
||||
".ruff_cache",
|
||||
".svn",
|
||||
".tox",
|
||||
".venv",
|
||||
"__pypackages__",
|
||||
"_build",
|
||||
"buck-out",
|
||||
"build",
|
||||
"dist",
|
||||
"node_modules",
|
||||
"venv",
|
||||
"examples/simple/wsgi.py",
|
||||
]
|
||||
per-file-ignores = {}
|
||||
|
||||
# Allow unused variables when underscore-prefixed.
|
||||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
||||
|
||||
# Assume Python 3.10.
|
||||
target-version = "py310"
|
||||
|
|
|
|||
|
|
@ -12,5 +12,6 @@ try:
|
|||
|
||||
name = label = "fobi"
|
||||
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ from cms.plugin_base import CMSPluginBase
|
|||
from cms.plugin_pool import plugin_pool
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.integration.processors import IntegrationProcessor
|
||||
|
||||
from .models import FobiFormWidget
|
||||
from .settings import WIDGET_FORM_SENT_GET_PARAM
|
||||
|
||||
from fobi.integration.processors import IntegrationProcessor
|
||||
|
||||
__title__ = "fobi.contrib.apps.djangocms_integration.cms_plugins"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .settings import FORM_TEMPLATE_CHOICES, SUCCESS_PAGE_TEMPLATE_CHOICES
|
||||
|
||||
from fobi.integration.helpers import get_template_choices
|
||||
|
||||
from .settings import FORM_TEMPLATE_CHOICES, SUCCESS_PAGE_TEMPLATE_CHOICES
|
||||
|
||||
__title__ = "fobi.contrib.apps.djangocms_integration.helpers"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
# Generated by Django 1.11.7 on 2018-02-16 13:18
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .settings import FORM_TEMPLATE_CHOICES, SUCCESS_PAGE_TEMPLATE_CHOICES
|
||||
|
||||
from fobi.integration.helpers import get_template_choices
|
||||
|
||||
from .settings import FORM_TEMPLATE_CHOICES, SUCCESS_PAGE_TEMPLATE_CHOICES
|
||||
|
||||
__title__ = "fobi.contrib.apps.feincms_integration.helpers"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@ from django.db import models
|
|||
from django.utils.translation import gettext, gettext_lazy as _
|
||||
from six import python_2_unicode_compatible
|
||||
|
||||
from fobi.integration.processors import IntegrationProcessor
|
||||
|
||||
from .helpers import (
|
||||
get_form_template_choices,
|
||||
get_success_page_template_choices,
|
||||
)
|
||||
from .settings import WIDGET_FORM_SENT_GET_PARAM
|
||||
|
||||
from fobi.integration.processors import IntegrationProcessor
|
||||
|
||||
__title__ = "fobi.contrib.apps.feincms_integration.widgets"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .settings import FORM_TEMPLATE_CHOICES, SUCCESS_PAGE_TEMPLATE_CHOICES
|
||||
|
||||
from fobi.integration.helpers import get_template_choices
|
||||
|
||||
from .settings import FORM_TEMPLATE_CHOICES, SUCCESS_PAGE_TEMPLATE_CHOICES
|
||||
|
||||
__title__ = "fobi.contrib.apps.mezzanine_integration.helpers"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
from mezzanine.pages.page_processors import processor_for
|
||||
|
||||
from fobi.integration.processors import IntegrationProcessor
|
||||
|
||||
from .models import FobiFormPage
|
||||
from .settings import WIDGET_FORM_SENT_GET_PARAM
|
||||
|
||||
from fobi.integration.processors import IntegrationProcessor
|
||||
|
||||
__title__ = "fobi.contrib.apps.mezzanine_integration.page_processors"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .settings import FORM_TEMPLATE_CHOICES, SUCCESS_PAGE_TEMPLATE_CHOICES
|
||||
|
||||
from fobi.integration.helpers import get_template_choices
|
||||
|
||||
from .settings import FORM_TEMPLATE_CHOICES, SUCCESS_PAGE_TEMPLATE_CHOICES
|
||||
|
||||
__title__ = "fobi.contrib.apps.wagtail_integration.helpers"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
# Generated by Django 1.10.7 on 2017-06-14 20:58
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ from django.template.loader import render_to_string
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
from nonefield.fields import NoneField
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
from fobi.helpers import clone_file, delete_file
|
||||
|
||||
from . import UID
|
||||
from .forms import ContentImageForm
|
||||
from .helpers import get_crop_filter
|
||||
|
|
@ -17,9 +20,6 @@ from .settings import (
|
|||
IMAGES_UPLOAD_DIR,
|
||||
)
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
from fobi.helpers import clone_file, delete_file
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.content.content_image.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2022 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import ContentImagePlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import ContentImagePlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.content.content_image."
|
||||
"fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import BasePluginForm, get_theme
|
||||
from fobi.helpers import handle_uploaded_file
|
||||
|
||||
from .settings import (
|
||||
DEFAULT_FIT_METHOD,
|
||||
DEFAULT_SIZE,
|
||||
|
|
@ -9,9 +12,6 @@ from .settings import (
|
|||
SIZES,
|
||||
)
|
||||
|
||||
from fobi.base import BasePluginForm, get_theme
|
||||
from fobi.helpers import handle_uploaded_file
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.content.content_image.forms"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ from django.template.loader import render_to_string
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
from nonefield.fields import NoneField
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
|
||||
from . import UID
|
||||
from .forms import ContentImageURLForm
|
||||
from .settings import FIT_METHOD_FIT_HEIGHT, FIT_METHOD_FIT_WIDTH
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.content.content_image_url.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2022 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import ContentImageURLPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import ContentImageURLPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.content.content_image."
|
||||
"fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import BasePluginForm, get_theme
|
||||
|
||||
from .settings import (
|
||||
DEFAULT_FIT_METHOD,
|
||||
DEFAULT_SIZE,
|
||||
|
|
@ -8,8 +10,6 @@ from .settings import (
|
|||
SIZES,
|
||||
)
|
||||
|
||||
from fobi.base import BasePluginForm, get_theme
|
||||
|
||||
# from fobi.widgets import NumberInput
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@ from uuid import uuid4
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
from nonefield.fields import NoneField
|
||||
|
||||
from . import UID
|
||||
from .forms import ContentMarkdownForm
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
from fobi.reusable.markdown_widget.helpers import convert_to_markdown
|
||||
|
||||
from . import UID
|
||||
from .forms import ContentMarkdownForm
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.content.content_richtext.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2022 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import ContentMarkdownPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import ContentMarkdownPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.content.content_markdown."
|
||||
"fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from . import UID
|
||||
|
||||
from fobi.base import FormElementPluginWidget
|
||||
|
||||
from . import UID
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.content." "content_markdown.widgets"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ from django.utils.encoding import smart_str
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
from nonefield.fields import NoneField
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
|
||||
from . import UID
|
||||
from .forms import ContentRichTextForm
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.content.content_richtext.base"
|
||||
__author__ = "Frantisek Holop <fholop@ripe.net>"
|
||||
__copyright__ = "RIPE NCC"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import ContentRichTextPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import ContentRichTextPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.content.content_richtext."
|
||||
"fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ try:
|
|||
except ImportError:
|
||||
BLEACH_INSTALLED = False
|
||||
BLEACH_VERSION = False
|
||||
|
||||
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.content.content_richtext.forms"
|
||||
__author__ = "Frantisek Holop <fholop@ripe.net>"
|
||||
|
|
@ -50,26 +50,31 @@ class ContentRichTextForm(forms.Form, BasePluginForm):
|
|||
"FOBI_PLUGIN_CONTENT_RICHTEXT_ALLOWED_ATTRIBUTES",
|
||||
bleach.ALLOWED_ATTRIBUTES,
|
||||
)
|
||||
|
||||
if BLEACH_VERSION > '5.0.0':
|
||||
from bleach.css_sanitizer import CSSSanitizer
|
||||
from bleach.css_sanitizer import ALLOWED_CSS_PROPERTIES
|
||||
css_sanitizer = CSSSanitizer(allowed_css_properties=getattr(
|
||||
settings,
|
||||
"FOBI_PLUGIN_CONTENT_RICHTEXT_ALLOWED_STYLES",
|
||||
|
||||
if BLEACH_VERSION > "5.0.0":
|
||||
from bleach.css_sanitizer import (
|
||||
ALLOWED_CSS_PROPERTIES,
|
||||
))
|
||||
CSSSanitizer,
|
||||
)
|
||||
|
||||
css_sanitizer = CSSSanitizer(
|
||||
allowed_css_properties=getattr(
|
||||
settings,
|
||||
"FOBI_PLUGIN_CONTENT_RICHTEXT_ALLOWED_STYLES",
|
||||
ALLOWED_CSS_PROPERTIES,
|
||||
)
|
||||
)
|
||||
return bleach.clean(
|
||||
text=self.cleaned_data["text"],
|
||||
tags=allowed_tags,
|
||||
attributes=allowed_attrs,
|
||||
strip=True,
|
||||
strip_comments=True,
|
||||
css_sanitizer=css_sanitizer
|
||||
css_sanitizer=css_sanitizer,
|
||||
)
|
||||
|
||||
|
||||
else:
|
||||
|
||||
|
||||
allowed_styles = getattr(
|
||||
settings,
|
||||
"FOBI_PLUGIN_CONTENT_RICHTEXT_ALLOWED_STYLES",
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from . import UID
|
||||
|
||||
from fobi.base import FormElementPluginWidget
|
||||
|
||||
from . import UID
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.content." "content_richtext.widgets"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ from django.utils.encoding import smart_str
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
from nonefield.fields import NoneField
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
|
||||
from . import UID
|
||||
from .forms import ContentTextForm
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.content.content_text.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2022 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import ContentTextPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import ContentTextPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.content.content_text."
|
||||
"fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ from django.forms.widgets import Textarea
|
|||
from django.utils.html import strip_tags
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .settings import ALLOWED_ATTRIBUTES, ALLOWED_TAGS
|
||||
|
||||
from fobi.base import BasePluginForm, get_theme
|
||||
|
||||
from .settings import ALLOWED_ATTRIBUTES, ALLOWED_TAGS
|
||||
|
||||
try:
|
||||
import bleach
|
||||
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ from django.utils.translation import gettext_lazy as _
|
|||
from nonefield.fields import NoneField
|
||||
from vishap import render_video
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
|
||||
from . import UID
|
||||
from .forms import ContentVideoForm
|
||||
|
||||
from fobi.base import FormElementPlugin
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.content.content_video.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2022 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import ContentVideoPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import ContentVideoPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.content.content_video."
|
||||
"fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .settings import DEFAULT_SIZE, SIZES
|
||||
|
||||
from fobi.base import BasePluginForm, get_theme
|
||||
|
||||
from .settings import DEFAULT_SIZE, SIZES
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.content.content_video.forms"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from django.forms.fields import BooleanField
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin
|
||||
|
||||
from . import UID
|
||||
from .forms import BooleanSelectForm
|
||||
|
||||
from fobi.base import FormFieldPlugin
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.boolean.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import BooleanSelectPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import BooleanSelectPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields.boolean." "fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@ from django.forms.fields import MultipleChoiceField
|
|||
from django.forms.widgets import CheckboxSelectMultiple
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import CheckboxSelectMultipleInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import get_select_field_choices, safe_text
|
||||
|
||||
from . import UID
|
||||
from .forms import CheckboxSelectMultipleInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
theme = get_theme(request=None, as_instance=True)
|
||||
|
||||
__title__ = (
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import CheckboxSelectMultipleInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import CheckboxSelectMultipleInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"checkbox_select_multiple.fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import DateField
|
|||
from django.forms.widgets import DateInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import DateInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.date.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import DateInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import DateInputPlugin
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.date.fobi_form_elements"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from . import UID
|
||||
|
||||
from fobi.base import FormElementPluginWidget
|
||||
|
||||
from . import UID
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.date.widgets"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import DateField
|
|||
from django.forms.widgets import SelectDateWidget
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import DateDropDownInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields." "date_drop_down.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import DateDropDownInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import DateDropDownInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"date_drop_down.fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import DateTimeField
|
|||
from django.forms.widgets import DateTimeInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import DateTimeInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields." "datetime.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import DateTimeInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import DateTimeInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "datetime.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from . import UID
|
||||
|
||||
from fobi.base import FormElementPluginWidget
|
||||
|
||||
from . import UID
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.datetime.widgets"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@ import decimal
|
|||
from django.forms.fields import DecimalField
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import DecimalInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.widgets import NumberInput
|
||||
|
||||
from . import UID
|
||||
from .forms import DecimalInputForm
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields." "decimal.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import DecimalInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import DecimalInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "decimal.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ from django.forms.widgets import TextInput
|
|||
from django.utils.duration import duration_string
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import DurationInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.duration.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import DurationInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import DurationInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields.duration." "fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import EmailField
|
|||
from django.forms.widgets import TextInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import EmailInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "email.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import EmailInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import EmailInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "email.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,16 +4,14 @@ from django.forms.fields import EmailField
|
|||
from django.forms.widgets import TextInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import EmailRepeatInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.reusable.email_repeat.field import EmailRepeatField
|
||||
from fobi.reusable.email_repeat.widget import EmailRepeatWidget
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields.email.fobi_form_elements"
|
||||
)
|
||||
from . import UID
|
||||
from .forms import EmailRepeatInputForm
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.email.fobi_form_elements"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
__license__ = "GPL 2.0/LGPL 2.1"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import EmailRepeatInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import EmailRepeatInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields.email_repeat.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@ from django.conf import settings
|
|||
from django.forms.widgets import ClearableFileInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin
|
||||
from fobi.helpers import handle_uploaded_file
|
||||
|
||||
from . import UID
|
||||
from .fields import AllowedExtensionsFileField as FileField
|
||||
from .forms import FileInputForm
|
||||
from .settings import FILES_UPLOAD_DIR
|
||||
|
||||
from fobi.base import FormFieldPlugin
|
||||
from fobi.helpers import handle_uploaded_file
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.file.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import FileInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import FileInputPlugin
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.file.fobi_form_elements"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ from __future__ import absolute_import
|
|||
from django.forms.fields import FloatField
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import FloatInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.widgets import NumberInput
|
||||
|
||||
from . import UID
|
||||
from .forms import FloatInputForm
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.float.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import FloatInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import FloatInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "float.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import CharField
|
|||
from django.forms.widgets import HiddenInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import HiddenInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.hidden.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import HiddenInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import HiddenInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "hidden.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import Field
|
|||
from django.forms.widgets import TextInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import InputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.input.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import InputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import InputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "input.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@ from django import forms
|
|||
from django.core.validators import MinValueValidator
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .constants import FORM_FIELD_TYPE_CHOICES
|
||||
|
||||
from fobi.base import BaseFormFieldPluginForm, get_theme
|
||||
from fobi.settings import DEFAULT_MAX_LENGTH, DEFAULT_MIN_LENGTH
|
||||
from fobi.widgets import NumberInput
|
||||
|
||||
from .constants import FORM_FIELD_TYPE_CHOICES
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.input.forms"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ from __future__ import absolute_import
|
|||
from django.forms.fields import IntegerField
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import IntegerInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.widgets import NumberInput
|
||||
|
||||
from . import UID
|
||||
from .forms import IntegerInputForm
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.integer.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import IntegerInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import IntegerInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "integer.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import GenericIPAddressField
|
|||
from django.forms.widgets import TextInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import IPAddressInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.ip_address.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import IPAddressInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import IPAddressInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "ip_address.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import NullBooleanField
|
|||
from django.forms.widgets import NullBooleanSelect
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import NullBooleanSelectForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.null_boolean.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import NullBooleanSelectPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import NullBooleanSelectPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"null_boolean.fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import CharField
|
|||
from django.forms.widgets import PasswordInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import PasswordInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.password.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import PasswordInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import PasswordInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "password.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ from django.forms.fields import ChoiceField
|
|||
from django.forms.widgets import RadioSelect
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import RadioInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import get_select_field_choices, safe_text
|
||||
|
||||
from . import UID
|
||||
from .forms import RadioInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.radio.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import RadioInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import RadioInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "radio.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .conf import get_setting
|
||||
|
||||
from fobi.helpers import validate_submit_value_as
|
||||
|
||||
from .conf import get_setting
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.radio.settings"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import RangeSelectInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import RangeSelectInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields.range_select."
|
||||
"fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import BaseFormFieldPluginForm, get_theme
|
||||
from fobi.widgets import NumberInput
|
||||
|
||||
from .settings import (
|
||||
INITIAL,
|
||||
INITIAL_MAX_VALUE,
|
||||
|
|
@ -10,9 +13,6 @@ from .settings import (
|
|||
STEP,
|
||||
)
|
||||
|
||||
from fobi.base import BaseFormFieldPluginForm, get_theme
|
||||
from fobi.widgets import NumberInput
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.range_select.forms"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2015 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ from django.forms.fields import RegexField
|
|||
from django.forms.widgets import TextInput
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
from . import UID
|
||||
from .forms import RegexInputForm
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.regex.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import RegexInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import RegexInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "regex.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ from django.forms.fields import ChoiceField
|
|||
from django.forms.widgets import Select
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import get_select_field_choices, safe_text
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.select.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import SelectInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import SelectInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "select.fobi_form_elements"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .conf import get_setting
|
||||
|
||||
from fobi.helpers import validate_submit_value_as
|
||||
|
||||
from .conf import get_setting
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields.select.settings"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -5,10 +5,6 @@ from django.forms.models import ModelChoiceField
|
|||
from django.forms.widgets import Select
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectModelObjectInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import (
|
||||
|
|
@ -17,6 +13,10 @@ from fobi.helpers import (
|
|||
safe_text,
|
||||
)
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectModelObjectInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "select_model_object.base"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import SelectModelObjectInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import SelectModelObjectInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_model_object.fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .settings import IGNORED_MODELS
|
||||
|
||||
from fobi.base import BaseFormFieldPluginForm, get_theme
|
||||
from fobi.helpers import get_registered_models
|
||||
|
||||
from .settings import IGNORED_MODELS
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "select_model_object.forms"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .conf import get_setting
|
||||
|
||||
from fobi.helpers import validate_submit_value_as
|
||||
|
||||
from .conf import get_setting
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "select_model_object.settings"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -5,10 +5,6 @@ from django.forms.widgets import Select
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
from mptt.fields import TreeNodeChoiceField
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectMPTTModelObjectInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import (
|
||||
|
|
@ -17,6 +13,10 @@ from fobi.helpers import (
|
|||
safe_text,
|
||||
)
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectMPTTModelObjectInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "select_mptt_model_object.base"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import SelectMPTTModelObjectInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import SelectMPTTModelObjectInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_mptt_model_object.fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .settings import IGNORED_MODELS
|
||||
|
||||
from fobi.base import BaseFormFieldPluginForm, get_theme
|
||||
from fobi.helpers import get_registered_models
|
||||
|
||||
from .settings import IGNORED_MODELS
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_mptt_model_object.forms"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .conf import get_setting
|
||||
|
||||
from fobi.helpers import validate_submit_value_as
|
||||
|
||||
from .conf import get_setting
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_mptt_model_object.settings"
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ from django.forms.fields import MultipleChoiceField
|
|||
from django.forms.widgets import SelectMultiple
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectMultipleInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import get_select_field_choices, safe_text
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectMultipleInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
__title__ = "fobi.contrib.plugins.form_elements.fields." "select_multiple.base"
|
||||
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
|
||||
__copyright__ = "2014-2019 Artur Barseghyan"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import SelectMultipleInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import SelectMultipleInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple.fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .conf import get_setting
|
||||
|
||||
from fobi.helpers import validate_submit_value_as
|
||||
|
||||
from .conf import get_setting
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "select_multiple.settings"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8,10 +8,6 @@ from django.forms.models import ModelMultipleChoiceField
|
|||
from django.forms.widgets import SelectMultiple
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectMultipleModelObjectsInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import (
|
||||
|
|
@ -20,6 +16,10 @@ from fobi.helpers import (
|
|||
safe_text,
|
||||
)
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectMultipleModelObjectsInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple_model_objects.fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import SelectMultipleModelObjectsInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import SelectMultipleModelObjectsInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple_model_objects.fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .settings import IGNORED_MODELS
|
||||
|
||||
from fobi.base import BaseFormFieldPluginForm, get_theme
|
||||
from fobi.helpers import get_registered_models
|
||||
|
||||
from .settings import IGNORED_MODELS
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple_model_objects.forms"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .conf import get_setting
|
||||
|
||||
from fobi.helpers import validate_submit_value_as
|
||||
|
||||
from .conf import get_setting
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple_model_objects.settings"
|
||||
|
|
|
|||
|
|
@ -8,10 +8,6 @@ from django.forms.widgets import SelectMultiple
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
from mptt.fields import TreeNodeMultipleChoiceField
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectMultipleMPTTModelObjectsInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import (
|
||||
|
|
@ -20,6 +16,10 @@ from fobi.helpers import (
|
|||
safe_text,
|
||||
)
|
||||
|
||||
from . import UID
|
||||
from .forms import SelectMultipleMPTTModelObjectsInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple_mptt_model_objects.base"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import SelectMultipleMPTTModelObjectsInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import SelectMultipleMPTTModelObjectsInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple_mptt_model_objects.fobi_form_elements"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .settings import IGNORED_MODELS
|
||||
|
||||
from fobi.base import BaseFormFieldPluginForm, get_theme
|
||||
from fobi.helpers import get_registered_models
|
||||
|
||||
from .settings import IGNORED_MODELS
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple_mptt_model_objects.forms"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from .conf import get_setting
|
||||
|
||||
from fobi.helpers import validate_submit_value_as
|
||||
|
||||
from .conf import get_setting
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple_mptt_model_objects.settings"
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@ from __future__ import absolute_import
|
|||
from django.forms.widgets import SelectMultiple
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import get_select_field_choices, safe_text
|
||||
|
||||
from . import UID
|
||||
from .fields import MultipleChoiceWithMaxField
|
||||
from .forms import SelectMultipleWithMaxInputForm
|
||||
from .settings import SUBMIT_VALUE_AS
|
||||
|
||||
from fobi.base import FormFieldPlugin, get_theme
|
||||
from fobi.constants import SUBMIT_VALUE_AS_REPR, SUBMIT_VALUE_AS_VAL
|
||||
from fobi.helpers import get_select_field_choices, safe_text
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields." "select_multiple_with_max.base"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .base import SelectMultipleWithMaxInputPlugin
|
||||
|
||||
from fobi.base import form_element_plugin_registry
|
||||
|
||||
from .base import SelectMultipleWithMaxInputPlugin
|
||||
|
||||
__title__ = (
|
||||
"fobi.contrib.plugins.form_elements.fields."
|
||||
"select_multiple_with_max.fobi_form_elements"
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue