diff --git a/app/nossas/plugins/cms_plugins/button.py b/app/nossas/plugins/cms_plugins/button.py index 6b28df54..3fcd9bc6 100644 --- a/app/nossas/plugins/cms_plugins/button.py +++ b/app/nossas/plugins/cms_plugins/button.py @@ -1,10 +1,11 @@ +from django.utils.translation import ugettext_lazy as _ + from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool - from djangocms_frontend.contrib.link.cms_plugins import LinkPlugin -from nossas.plugins.forms.buttonform import MyLinkForm +from nossas.plugins.forms.buttonform import LinkButtonForm # from nossas.design.cms_plugins import UIPaddingMixin, UIBackgroundMixin, CMSUIPlugin # from nossas.plugins.models.buttonmodel import Button @@ -12,10 +13,10 @@ @plugin_pool.register_plugin -class MyLinkPlugin(LinkPlugin): - name = "MyLinkPlugin" +class LinkButtonPlugin(LinkPlugin): + name = _("Link / Botão") module = "NOSSAS" - form = MyLinkForm + form = LinkButtonForm # change_form_template = 'nossas/admin/link.html' # model = Button # form = ButtonPluginForm diff --git a/app/nossas/plugins/forms/buttonform.py b/app/nossas/plugins/forms/buttonform.py index 458d25aa..aaaf1245 100644 --- a/app/nossas/plugins/forms/buttonform.py +++ b/app/nossas/plugins/forms/buttonform.py @@ -17,7 +17,7 @@ ] -class MyLinkForm(LinkForm): +class LinkButtonForm(LinkForm): link_context = forms.ChoiceField( label=_("Context"), choices=CONTEXT_COLORS,