How to use the feincms3.plugins.image.ImageInline.create function in feincms3

To help you get started, we’ve selected a few feincms3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github matthiask / feincms3 / tests / testapp / admin.py View on Github external
{
                "fields": (
                    "menu",
                    "language_code",
                    "template_key",
                    "application",
                    "optional",
                ),
                "classes": ("tabbed",),
            },
        ),
    ]

    inlines = [
        richtext.RichTextInline.create(model=models.RichText),
        image.ImageInline.create(model=models.Image),
        snippet.SnippetInline.create(model=models.Snippet),
        external.ExternalInline.create(model=models.External),
        html.HTMLInline.create(model=models.HTML),
    ]

    class Media:
        css = {
            "all": (
                "https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css",  # noqa
            )
        }
        js = ("app/plugin_buttons.js",)
github matthiask / feincms3-example / app / pages / admin.py View on Github external
'classes': ('tabbed',),
        }),
        (capfirst(_('settings')), {
            'fields': (
                'menu',
                'language_code',
                'template_key',
                'application',
            ),
            'classes': ('tabbed',),
        }),
    ]

    inlines = [
        richtext.RichTextInline.create(model=models.RichText),
        image.ImageInline.create(model=models.Image),
    ]

    class Media:
        js = (
            JS('https://use.fontawesome.com/releases/v5.0.10/js/all.js', {
                'async': 'async',
                'integrity': 'sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+',  # noqa
                'crossorigin': 'anonymous',
            }, static=False),
            'app/plugin_buttons.js',
        )