Skip to content

Commit

Permalink
Moving CSS templates link to Sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 4, 2016
1 parent cf5d290 commit d276be8
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions panoramix/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,20 +198,6 @@ class ClusterModelView(PanoramixModelView, DeleteMixin):
category_icon='fa-database',)


class CssTemplateModelView(PanoramixModelView, DeleteMixin):
datamodel = SQLAInterface(models.CssTemplate)
list_columns = ['template_name']
edit_columns = ['template_name', 'css']
add_columns = edit_columns

appbuilder.add_view(
CssTemplateModelView,
"CSS Templates",
icon="fa-css3",
category="",
category_icon='',)


class SliceModelView(PanoramixModelView, DeleteMixin):
datamodel = SQLAInterface(models.Slice)
can_add = False
Expand Down Expand Up @@ -637,3 +623,20 @@ def featured_datasets(self):
category='Sources',
category_icon='fa-database',
icon="fa-cog")


class CssTemplateModelView(PanoramixModelView, DeleteMixin):
datamodel = SQLAInterface(models.CssTemplate)
list_columns = ['template_name']
edit_columns = ['template_name', 'css']
add_columns = edit_columns

appbuilder.add_separator("Sources")
appbuilder.add_view(
CssTemplateModelView,
"CSS Templates",
icon="fa-css3",
category="Sources",
category_icon='',)


0 comments on commit d276be8

Please sign in to comment.