Template tags

class evileg_core.templatetags.evileg_core.TabBarFlexContentNode(nodelist)[source]

Bases: django.template.base.Node

render(context)[source]

Return the node rendered as a string.

class evileg_core.templatetags.evileg_core.TabBarMenuNode(nodelist, menu_id=None, menu_title=None)[source]

Bases: django.template.base.Node

render(context)[source]

Return the node rendered as a string.

class evileg_core.templatetags.evileg_core.TabBarNode(nodelist, menu_target=None)[source]

Bases: django.template.base.Node

render(context)[source]

Return the node rendered as a string.

evileg_core.templatetags.evileg_core.activities_count(activity_set, model_name)[source]
evileg_core.templatetags.evileg_core.breadcrumb_active(url, title)[source]
evileg_core.templatetags.evileg_core.breadcrumb_home(url='/', title='')[source]
evileg_core.templatetags.evileg_core.breadcrumb_item(url, title)[source]
evileg_core.templatetags.evileg_core.checkbox(name, value=None, checked=None, checkbox_id=None, label='', help_text=None, input_css='form-check-input m-0', label_css='form-check-label', wrapper_css='m-0')[source]
evileg_core.templatetags.evileg_core.do_modal_menu(parser, token)[source]
evileg_core.templatetags.evileg_core.do_tabbar(parser, token)[source]
evileg_core.templatetags.evileg_core.do_tabbar_flex_content(parser, token)[source]
evileg_core.templatetags.evileg_core.drawer_item(title, url='#', icon=None, **kwargs)[source]
evileg_core.templatetags.evileg_core.edit(context, obj, **kwargs)[source]
evileg_core.templatetags.evileg_core.evileg_core_cropper_css()[source]
evileg_core.templatetags.evileg_core.evileg_core_cropper_js()[source]
evileg_core.templatetags.evileg_core.evileg_core_cropper_min_css()[source]
evileg_core.templatetags.evileg_core.evileg_core_cropper_min_js()[source]
evileg_core.templatetags.evileg_core.evileg_core_css(theme=1, minified=True, cdn=False)[source]
evileg_core.templatetags.evileg_core.evileg_core_icons_css()[source]
evileg_core.templatetags.evileg_core.evileg_core_icons_min_css()[source]
evileg_core.templatetags.evileg_core.evileg_core_jquery_js(cdn=False)[source]
evileg_core.templatetags.evileg_core.evileg_core_js(minified=True, cdn=False)[source]
evileg_core.templatetags.evileg_core.evileg_core_markdown_js()[source]
evileg_core.templatetags.evileg_core.evileg_core_markdown_min_js()[source]
evileg_core.templatetags.evileg_core.evileg_core_popper_js(cdn=False)[source]
evileg_core.templatetags.evileg_core.filter_view(context)[source]
evileg_core.templatetags.evileg_core.get_active(context, url, startswith=False, **kwargs)[source]
evileg_core.templatetags.evileg_core.get_content_type_id(obj)[source]

Function for getting content type

Parameters

obj – model object from which we want to get content type id

Returns

Content Type Id

evileg_core.templatetags.evileg_core.get_counters(**kwargs)[source]
evileg_core.templatetags.evileg_core.human_format(num, round_to=1)[source]
evileg_core.templatetags.evileg_core.menu_btn(title, url, **kwargs)[source]
evileg_core.templatetags.evileg_core.object_list_preview(context, not_found_message=None, object_list=None)[source]
evileg_core.templatetags.evileg_core.object_list_preview_columns(context, not_found_message=None, object_list=None)[source]
evileg_core.templatetags.evileg_core.parse_tag(token, parser)[source]

Generic template tag parser.

Returns a three-tuple: (tag_name, args, kwargs)

tag_name is a string, the name of the tag.

args is a list of FilterExpressions, from all the arguments that didn’t look like kwargs, in the order they occurred, including any that were mingled amongst kwargs.

kwargs is a dictionary mapping kwarg names to FilterExpressions, for all the arguments that looked like kwargs, including any that were mingled amongst args.

(At rendering time, a FilterExpression f can be evaluated by calling f.resolve(context).)

evileg_core.templatetags.evileg_core.random_gradient()[source]
evileg_core.templatetags.evileg_core.recaptcha(classes='')[source]

Google recaptcha template tag, which should be included in forms

Parameters

classes – additional classes

Returns

rendered template

evileg_core.templatetags.evileg_core.render_object(context, obj, template_name='TEMPLATE_FULL')[source]
evileg_core.templatetags.evileg_core.search_form(context, search_filter)[source]
evileg_core.templatetags.evileg_core.select_static_file(cdn, minified, files_dict)[source]
evileg_core.templatetags.evileg_core.select_static_minified_file(cdn, files_dict)[source]
evileg_core.templatetags.evileg_core.tab_item(context, title, url='#', **kwargs)[source]
evileg_core.templatetags.evileg_core.views(obj)[source]