mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-10 22:03:09 +00:00
bootstrap3 and foundation5 pep8
This commit is contained in:
parent
5fbc7b4fc6
commit
14c19da273
24 changed files with 201 additions and 133 deletions
|
|
@ -29,7 +29,7 @@ class Bootstrap3Theme(BaseTheme):
|
|||
'bootstrap3/js/bootstrap.min.js',
|
||||
'js/jquery.slugify.js',
|
||||
'js/fobi.core.js',
|
||||
'bootstrap3/js/bootstrap3_fobi_extras.js', # Theme-specific scripts
|
||||
'bootstrap3/js/bootstrap3_fobi_extras.js', # Theme-specific scripts
|
||||
)
|
||||
|
||||
# footer_text = '© django-fobi example site 2014'
|
||||
|
|
@ -111,4 +111,5 @@ class Bootstrap3Theme(BaseTheme):
|
|||
super(Bootstrap3Theme, self).__init__(user=user)
|
||||
self.form_radio_element_html_class = ''
|
||||
|
||||
|
||||
theme_registry.register(Bootstrap3Theme)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.date_bootstrap3_widget'
|
||||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'date_bootstrap3_widget'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('default_app_config',)
|
||||
|
||||
default_app_config = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.date_bootstrap3_widget.apps.Config'
|
||||
default_app_config = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'date_bootstrap3_widget.apps.Config'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.date_bootstrap3_widget.apps'
|
||||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'date_bootstrap3_widget.apps'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
|
|
@ -8,8 +9,12 @@ try:
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Config(AppConfig):
|
||||
name = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.date_bootstrap3_widget'
|
||||
label = 'fobi_contrib_themes_bootstrap3_widgets_form_elements_date_bootstrap3_widget'
|
||||
"""Config."""
|
||||
|
||||
name = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'date_bootstrap3_widget'
|
||||
label = 'fobi_contrib_themes_bootstrap3_widgets_form_elements_' \
|
||||
'date_bootstrap3_widget'
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,19 +1,20 @@
|
|||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.date_bootstrap3_widget.fobi_form_elements'
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.plugins.form_elements.fields.date.widgets import (
|
||||
BaseDatePluginWidget
|
||||
)
|
||||
from fobi.contrib.themes.bootstrap3 import UID
|
||||
|
||||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'date_bootstrap3_widget.fobi_form_elements'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('DatePluginWidget',)
|
||||
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.themes.bootstrap3 import UID
|
||||
from fobi.contrib.plugins.form_elements.fields.date.widgets import (
|
||||
BaseDatePluginWidget
|
||||
)
|
||||
|
||||
class DatePluginWidget(BaseDatePluginWidget):
|
||||
"""
|
||||
Date plugin widget for Boootstrap 3.
|
||||
"""
|
||||
"""Date plugin widget for Bootstrap 3."""
|
||||
|
||||
theme_uid = UID
|
||||
media_js = [
|
||||
'js/moment-with-locales.js',
|
||||
|
|
@ -22,7 +23,7 @@ class DatePluginWidget(BaseDatePluginWidget):
|
|||
]
|
||||
media_css = [
|
||||
'bootstrap3/css/bootstrap-datetimepicker.min.css',
|
||||
#'datetime/css/fobi.plugin.date-bootstrap3-widget.css',
|
||||
# 'datetime/css/fobi.plugin.date-bootstrap3-widget.css',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.datetime_bootstrap3_widget'
|
||||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'datetime_bootstrap3_widget'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('default_app_config',)
|
||||
|
||||
default_app_config = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.datetime_bootstrap3_widget.apps.Config'
|
||||
default_app_config = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'datetime_bootstrap3_widget.apps.Config'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.datetime_bootstrap3_widget.apps'
|
||||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'datetime_bootstrap3_widget.apps'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
|
|
@ -8,8 +9,12 @@ try:
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Config(AppConfig):
|
||||
name = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.datetime_bootstrap3_widget'
|
||||
label = 'fobi_contrib_themes_bootstrap3_widgets_form_elements_datetime_bootstrap3_widget'
|
||||
"""Config."""
|
||||
|
||||
name = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'datetime_bootstrap3_widget'
|
||||
label = 'fobi_contrib_themes_bootstrap3_widgets_form_elements_' \
|
||||
'datetime_bootstrap3_widget'
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,19 +1,20 @@
|
|||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.datetime_bootstrap3_widget.fobi_form_elements'
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.plugins.form_elements.fields.datetime.widgets import (
|
||||
BaseDateTimePluginWidget
|
||||
)
|
||||
from fobi.contrib.themes.bootstrap3 import UID
|
||||
|
||||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'datetime_bootstrap3_widget.fobi_form_elements'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('DateTimePluginWidget',)
|
||||
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.themes.bootstrap3 import UID
|
||||
from fobi.contrib.plugins.form_elements.fields.datetime.widgets import (
|
||||
BaseDateTimePluginWidget
|
||||
)
|
||||
|
||||
class DateTimePluginWidget(BaseDateTimePluginWidget):
|
||||
"""
|
||||
DateTime plugin widget for Boootstrap 3.
|
||||
"""
|
||||
"""DateTime plugin widget for Bootstrap 3."""
|
||||
|
||||
theme_uid = UID
|
||||
media_js = [
|
||||
'js/moment-with-locales.js',
|
||||
|
|
@ -22,7 +23,7 @@ class DateTimePluginWidget(BaseDateTimePluginWidget):
|
|||
]
|
||||
media_css = [
|
||||
'bootstrap3/css/bootstrap-datetimepicker.min.css',
|
||||
#'datetime/css/fobi.plugin.datetime-bootstrap3-widget.css',
|
||||
# 'datetime/css/fobi.plugin.datetime-bootstrap3-widget.css',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.dummy_bootstrap3_widget'
|
||||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'dummy_bootstrap3_widget'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('default_app_config',)
|
||||
|
||||
default_app_config = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.dummy_bootstrap3_widget.apps.Config'
|
||||
default_app_config = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'dummy_bootstrap3_widget.apps.Config'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.dummy_bootstrap3_widget.apps'
|
||||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'dummy_bootstrap3_widget.apps'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
|
|
@ -8,8 +9,12 @@ try:
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Config(AppConfig):
|
||||
name = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.dummy_bootstrap3_widget'
|
||||
label = 'fobi_contrib_themes_bootstrap3_widgets_form_elements_dummy_bootstrap3_widget'
|
||||
"""Config."""
|
||||
|
||||
name = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'dummy_bootstrap3_widget'
|
||||
label = 'fobi_contrib_themes_bootstrap3_widgets_form_elements_' \
|
||||
'dummy_bootstrap3_widget'
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.dummy_bootstrap3_widget.fobi_form_elements'
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.plugins.form_elements.test.dummy.widgets import (
|
||||
BaseDummyPluginWidget
|
||||
)
|
||||
from fobi.contrib.themes.bootstrap3 import UID
|
||||
|
||||
__title__ = 'fobi.contrib.themes.bootstrap3.widgets.form_elements.' \
|
||||
'dummy_bootstrap3_widget.fobi_form_elements'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('DummyPluginWidget',)
|
||||
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.themes.bootstrap3 import UID
|
||||
from fobi.contrib.plugins.form_elements.test.dummy.widgets import (
|
||||
BaseDummyPluginWidget
|
||||
)
|
||||
|
||||
class DummyPluginWidget(BaseDummyPluginWidget):
|
||||
"""
|
||||
Dummy plugin widget for Boootstrap 3.
|
||||
"""
|
||||
"""Dummy plugin widget for Boootstrap 3."""
|
||||
theme_uid = UID
|
||||
media_js = [
|
||||
#'bootstrap3/js/fobi.plugin.dummy-bootstrap3-widget.js',
|
||||
# 'bootstrap3/js/fobi.plugin.dummy-bootstrap3-widget.js',
|
||||
]
|
||||
media_css = [
|
||||
#'datetime/css/fobi.plugin.dummy-bootstrap3-widget.css',
|
||||
# 'datetime/css/fobi.plugin.dummy-bootstrap3-widget.css',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ try:
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Config(AppConfig):
|
||||
"""Config."""
|
||||
|
||||
name = 'fobi.contrib.themes.foundation5'
|
||||
label = 'fobi_contrib_themes_foundation5'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,19 +1,22 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.fobi_themes'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('Foundation5Theme',)
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from fobi.base import BaseTheme, theme_registry
|
||||
|
||||
from . import UID
|
||||
|
||||
__title__ = 'fobi.contrib.themes.foundation5.fobi_themes'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('Foundation5Theme',)
|
||||
|
||||
|
||||
class Foundation5Theme(BaseTheme):
|
||||
"""
|
||||
Foundation5 theme. Based on the "Workspace" example of the Foundation 5.
|
||||
Click `here <http://foundation.zurb.com/templates/contact.html>`_ for more.
|
||||
"""Foundation5 theme.
|
||||
|
||||
Based on the "Workspace" example of the Foundation 5.
|
||||
Click `here <http://foundation.zurb.com/templates/contact.html>`_ for
|
||||
more.
|
||||
"""
|
||||
uid = UID
|
||||
name = _("Foundation 5")
|
||||
|
|
@ -22,27 +25,28 @@ class Foundation5Theme(BaseTheme):
|
|||
'foundation5/css/foundation.min.css',
|
||||
'foundation5/css/foundation_fobi_extras.css',
|
||||
'foundation5/icons/3/icons/foundation-icons.css',
|
||||
#'foundation5/icons/2/accessibility/stylesheets/accessibility_foundicons.css',
|
||||
#'foundation5/css/foundation_template-4.css', # Foundation Template 4
|
||||
#'foundation5/css/normalize.css',
|
||||
#'css/fobi.core.css',
|
||||
# 'foundation5/icons/2/accessibility/stylesheets/'
|
||||
# 'accessibility_foundicons.css',
|
||||
# 'foundation5/css/foundation_template-4.css', # Foundation Template 4
|
||||
# 'foundation5/css/normalize.css',
|
||||
# 'css/fobi.core.css',
|
||||
)
|
||||
|
||||
media_js = (
|
||||
'foundation5/js/vendor/modernizr.js',
|
||||
#'foundation5/js/foundation.min.js',
|
||||
#'js/jquery-1.10.2.min.js',
|
||||
# 'foundation5/js/foundation.min.js',
|
||||
# 'js/jquery-1.10.2.min.js',
|
||||
'foundation5/js/vendor/jquery.js',
|
||||
#'foundation5/js/vendor/fastclick.js',
|
||||
# 'foundation5/js/vendor/fastclick.js',
|
||||
'jquery-ui/js/jquery-ui-1.10.4.custom.min.js',
|
||||
#'foundation5/js/foundation_template-4.js', # Foundation Template 4
|
||||
# 'foundation5/js/foundation_template-4.js', # Foundation Template 4
|
||||
'foundation5/js/foundation.min.js',
|
||||
'js/fobi.core.js',
|
||||
'js/jquery.slugify.js',
|
||||
'foundation5/js/foundation5_fobi_extras.js', # Theme specific scripts
|
||||
'foundation5/js/foundation5_fobi_extras.js', # Theme specific scripts
|
||||
)
|
||||
|
||||
#footer_text = '© django-fobi example site 2014'
|
||||
# footer_text = '© django-fobi example site 2014'
|
||||
|
||||
# *************************************************************************
|
||||
# ********************** Form HTML specific *******************************
|
||||
|
|
@ -56,7 +60,7 @@ class Foundation5Theme(BaseTheme):
|
|||
# Important
|
||||
form_delete_form_entry_option_class = 'fi-page-delete'
|
||||
|
||||
# Imporatant
|
||||
# Important
|
||||
form_list_container_class = 'inline-list'
|
||||
|
||||
# *************************************************************************
|
||||
|
|
@ -74,28 +78,33 @@ class Foundation5Theme(BaseTheme):
|
|||
form_non_field_and_hidden_errors_snippet_template = \
|
||||
'foundation5/snippets/form_non_field_and_hidden_errors_snippet.html'
|
||||
|
||||
add_form_element_entry_template = 'foundation5/add_form_element_entry.html'
|
||||
add_form_element_entry_template = \
|
||||
'foundation5/add_form_element_entry.html'
|
||||
add_form_element_entry_ajax_template = \
|
||||
'foundation5/add_form_element_entry_ajax.html'
|
||||
|
||||
add_form_handler_entry_template = 'foundation5/add_form_handler_entry.html'
|
||||
add_form_handler_entry_template = \
|
||||
'foundation5/add_form_handler_entry.html'
|
||||
add_form_handler_entry_ajax_template = \
|
||||
'foundation5/add_form_handler_entry_ajax.html'
|
||||
|
||||
create_form_entry_template = 'foundation5/create_form_entry.html'
|
||||
create_form_entry_ajax_template = 'foundation5/create_form_entry_ajax.html'
|
||||
create_form_entry_ajax_template = \
|
||||
'foundation5/create_form_entry_ajax.html'
|
||||
|
||||
dashboard_template = 'foundation5/dashboard.html'
|
||||
forms_list_template = 'foundation5/forms_list.html'
|
||||
|
||||
edit_form_element_entry_template = 'foundation5/edit_form_element_entry.html'
|
||||
edit_form_element_entry_template = \
|
||||
'foundation5/edit_form_element_entry.html'
|
||||
edit_form_element_entry_ajax_template = \
|
||||
'foundation5/edit_form_element_entry_ajax.html'
|
||||
|
||||
edit_form_entry_template = 'foundation5/edit_form_entry.html'
|
||||
edit_form_entry_ajax_template = 'foundation5/edit_form_entry_ajax.html'
|
||||
|
||||
edit_form_handler_entry_template = 'foundation5/edit_form_handler_entry.html'
|
||||
edit_form_handler_entry_template = \
|
||||
'foundation5/edit_form_handler_entry.html'
|
||||
edit_form_handler_entry_ajax_template = \
|
||||
'foundation5/edit_form_handler_entry_ajax.html'
|
||||
|
||||
|
|
@ -107,7 +116,8 @@ class Foundation5Theme(BaseTheme):
|
|||
view_form_entry_ajax_template = 'foundation5/view_form_entry_ajax.html'
|
||||
|
||||
import_form_entry_template = 'foundation5/import_form_entry.html'
|
||||
import_form_entry_ajax_template = 'foundation5/import_form_entry_ajax.html'
|
||||
import_form_entry_ajax_template = \
|
||||
'foundation5/import_form_entry_ajax.html'
|
||||
|
||||
|
||||
theme_registry.register(Foundation5Theme)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.date_foundation5_widget'
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'date_foundation5_widget'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('default_app_config',)
|
||||
|
||||
default_app_config = 'fobi.contrib.themes.foundation5.widgets.form_elements.date_foundation5_widget.apps.Config'
|
||||
default_app_config = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'date_foundation5_widget.apps.Config'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.date_foundation5_widget.apps'
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'date_foundation5_widget.apps'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
|
|
@ -8,8 +9,12 @@ try:
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Config(AppConfig):
|
||||
name = 'fobi.contrib.themes.foundation5.widgets.form_elements.date_foundation5_widget'
|
||||
label = 'fobi_contrib_themes_foundation5_widgets_form_elements_date_foundation5_widget'
|
||||
"""Config."""
|
||||
|
||||
name = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'date_foundation5_widget'
|
||||
label = 'fobi_contrib_themes_foundation5_widgets_form_elements_' \
|
||||
'date_foundation5_widget'
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,19 +1,20 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.date_foundation5_widget.fobi_form_elements'
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.plugins.form_elements.fields.date.widgets import (
|
||||
BaseDatePluginWidget
|
||||
)
|
||||
from fobi.contrib.themes.foundation5 import UID
|
||||
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'date_foundation5_widget.fobi_form_elements'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('DatePluginWidget',)
|
||||
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.themes.foundation5 import UID
|
||||
from fobi.contrib.plugins.form_elements.fields.date.widgets import (
|
||||
BaseDatePluginWidget
|
||||
)
|
||||
|
||||
class DatePluginWidget(BaseDatePluginWidget):
|
||||
"""
|
||||
Date plugin widget for Foundation 5.
|
||||
"""
|
||||
"""Date plugin widget for Foundation 5."""
|
||||
|
||||
theme_uid = UID
|
||||
media_js = [
|
||||
'js/moment-with-locales.js',
|
||||
|
|
@ -22,7 +23,7 @@ class DatePluginWidget(BaseDatePluginWidget):
|
|||
]
|
||||
media_css = [
|
||||
'foundation5/css/foundation-datepicker.css',
|
||||
#'datetime/css/fobi.plugin.date-foundation5-widget.css',
|
||||
# 'datetime/css/fobi.plugin.date-foundation5-widget.css',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.datetime_foundation5_widget'
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'datetime_foundation5_widget'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('default_app_config',)
|
||||
|
||||
default_app_config = 'fobi.contrib.themes.foundation5.widgets.form_elements.datetime_foundation5_widget.apps.Config'
|
||||
default_app_config = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'datetime_foundation5_widget.apps.Config'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.datetime_foundation5_widget.apps'
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'datetime_foundation5_widget.apps'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
|
|
@ -8,8 +9,12 @@ try:
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Config(AppConfig):
|
||||
name = 'fobi.contrib.themes.foundation5.widgets.form_elements.datetime_foundation5_widget'
|
||||
label = 'fobi_contrib_themes_foundation5_widgets_form_elements_datetime_foundation5_widget'
|
||||
"""Config."""
|
||||
|
||||
name = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'datetime_foundation5_widget'
|
||||
label = 'fobi_contrib_themes_foundation5_widgets_form_elements_' \
|
||||
'datetime_foundation5_widget'
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,19 +1,20 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.datetime_foundation5_widget.fobi_form_elements'
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.plugins.form_elements.fields.datetime.widgets import (
|
||||
BaseDateTimePluginWidget
|
||||
)
|
||||
from fobi.contrib.themes.foundation5 import UID
|
||||
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'datetime_foundation5_widget.fobi_form_elements'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('DateTimePluginWidget',)
|
||||
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.themes.foundation5 import UID
|
||||
from fobi.contrib.plugins.form_elements.fields.datetime.widgets import (
|
||||
BaseDateTimePluginWidget
|
||||
)
|
||||
|
||||
class DateTimePluginWidget(BaseDateTimePluginWidget):
|
||||
"""
|
||||
DateTime plugin widget for Foundation 5.
|
||||
"""
|
||||
"""DateTime plugin widget for Foundation 5."""
|
||||
|
||||
theme_uid = UID
|
||||
media_js = [
|
||||
'js/moment-with-locales.js',
|
||||
|
|
@ -22,7 +23,7 @@ class DateTimePluginWidget(BaseDateTimePluginWidget):
|
|||
]
|
||||
media_css = [
|
||||
'foundation5/css/foundation-datetimepicker.css',
|
||||
#'datetime/css/fobi.plugin.datetime-foundation5-widget.css',
|
||||
# 'datetime/css/fobi.plugin.datetime-foundation5-widget.css',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.dummy_foundation5_widget'
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'dummy_foundation5_widget'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('default_app_config',)
|
||||
|
||||
default_app_config = 'fobi.contrib.themes.foundation5.widgets.form_elements.dummy_foundation5_widget.apps.Config'
|
||||
default_app_config = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'dummy_foundation5_widget.apps.Config'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.dummy_foundation5_widget.apps'
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'dummy_foundation5_widget.apps'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
|
|
@ -8,8 +9,12 @@ try:
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Config(AppConfig):
|
||||
name = 'fobi.contrib.themes.foundation5.widgets.form_elements.dummy_foundation5_widget'
|
||||
label = 'fobi_contrib_themes_foundation5_widgets_form_elements_dummy_foundation5_widget'
|
||||
"""Config."""
|
||||
|
||||
name = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'dummy_foundation5_widget'
|
||||
label = 'fobi_contrib_themes_foundation5_widgets_form_elements_' \
|
||||
'dummy_foundation5_widget'
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.dummy_foundation5_widget.fobi_form_elements'
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.plugins.form_elements.test.dummy.widgets import (
|
||||
BaseDummyPluginWidget
|
||||
)
|
||||
from fobi.contrib.themes.foundation5 import UID
|
||||
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_elements.' \
|
||||
'dummy_foundation5_widget.fobi_form_elements'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('DummyPluginWidget',)
|
||||
|
||||
from fobi.base import form_element_plugin_widget_registry
|
||||
from fobi.contrib.themes.foundation5 import UID
|
||||
from fobi.contrib.plugins.form_elements.test.dummy.widgets import (
|
||||
BaseDummyPluginWidget
|
||||
)
|
||||
|
||||
class DummyPluginWidget(BaseDummyPluginWidget):
|
||||
"""
|
||||
Dummy plugin widget for Foundation 5.
|
||||
"""
|
||||
"""Dummy plugin widget for Foundation 5."""
|
||||
theme_uid = UID
|
||||
media_js = [
|
||||
#'bootstrap3/js/fobi.plugin.dummy-bootstrap3-widget.js',
|
||||
# 'bootstrap3/js/fobi.plugin.dummy-bootstrap3-widget.js',
|
||||
]
|
||||
media_css = [
|
||||
#'datetime/css/fobi.plugin.dummy-bootstrap3-widget.css',
|
||||
# 'datetime/css/fobi.plugin.dummy-bootstrap3-widget.css',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_handlers.db_store_foundation5_widget'
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_handlers.' \
|
||||
'db_store_foundation5_widget'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('default_app_config',)
|
||||
|
||||
default_app_config = 'fobi.contrib.themes.foundation5.widgets.form_handlers.db_store_foundation5_widget.apps.Config'
|
||||
default_app_config = 'fobi.contrib.themes.foundation5.widgets.form_handlers.' \
|
||||
'db_store_foundation5_widget.apps.Config'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_handlers.db_store_foundation5_widget.apps'
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_handlers.' \
|
||||
'db_store_foundation5_widget.apps'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
|
|
@ -8,8 +9,12 @@ try:
|
|||
from django.apps import AppConfig
|
||||
|
||||
class Config(AppConfig):
|
||||
name = 'fobi.contrib.themes.foundation5.widgets.form_handlers.db_store_foundation5_widget'
|
||||
label = 'fobi_contrib_themes_foundation5_widgets_form_handlers_db_store_foundation5_widget'
|
||||
"""Config."""
|
||||
|
||||
name = 'fobi.contrib.themes.foundation5.widgets.form_handlers.' \
|
||||
'db_store_foundation5_widget'
|
||||
label = 'fobi_contrib_themes_foundation5_widgets_form_handlers_' \
|
||||
'db_store_foundation5_widget'
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,24 +1,26 @@
|
|||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_handlers.db_store_foundation5_widget.fobi_form_elements'
|
||||
from fobi.base import form_handler_plugin_widget_registry
|
||||
from fobi.contrib.plugins.form_handlers.db_store.widgets import (
|
||||
BaseDbStorePluginWidget
|
||||
)
|
||||
from fobi.contrib.themes.foundation5 import UID
|
||||
|
||||
__title__ = 'fobi.contrib.themes.foundation5.widgets.form_handlers.' \
|
||||
'db_store_foundation5_widget.fobi_form_elements'
|
||||
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
|
||||
__copyright__ = '2014-2016 Artur Barseghyan'
|
||||
__license__ = 'GPL 2.0/LGPL 2.1'
|
||||
__all__ = ('DbStorePluginWidget',)
|
||||
|
||||
from fobi.base import form_handler_plugin_widget_registry
|
||||
from fobi.contrib.themes.foundation5 import UID
|
||||
from fobi.contrib.plugins.form_handlers.db_store.widgets import (
|
||||
BaseDbStorePluginWidget
|
||||
)
|
||||
|
||||
class DbStorePluginWidget(BaseDbStorePluginWidget):
|
||||
"""
|
||||
DbStore plugin widget for Foundation 5.
|
||||
"""
|
||||
"""DbStore plugin widget for Foundation 5."""
|
||||
|
||||
theme_uid = UID
|
||||
view_entries_icon_class = 'fi-list'
|
||||
export_entries_icon_class = 'fi-page-export'
|
||||
view_saved_form_data_entries_template_name = \
|
||||
'db_store_foundation5_widget/view_saved_form_data_entries.html'
|
||||
|
||||
|
||||
# Registering the widget
|
||||
form_handler_plugin_widget_registry.register(DbStorePluginWidget)
|
||||
|
|
|
|||
Loading…
Reference in a new issue