django-suit icon indicating copy to clipboard operation
django-suit copied to clipboard

Calender and clock icons for date and datetime fields not displayed in tabular inlines

Open AliPolat opened this issue 8 years ago • 6 comments

Django version: 1.10.4 Django Suit version: V2 Python version: 3.4

Calender and clock icons, displayed correctly for date and datetime fields in admin change forms, are not displayed in admin tabular inlines. Stacked inlines are ok.

AliPolat avatar Dec 30 '16 13:12 AliPolat

Django: 1.9.12 Suit: V2 Suit install via "-e git://github.com/darklow/django-suit.git@v2#egg=django-suit"

It seems to affect all in-lines. Adding example images.

This is what is expected and what displays in a top-level ModelAdmin: end_date_model

Same model and field as a StackedInline: end_date_stacked

Same model and field as a TabularInline: end_date_tabular

I have verified that the font-awesome css is loaded and that the font is downloading from the server correctly.

TehCorwiz avatar Feb 13 '17 15:02 TehCorwiz

same here. Django 1.10 Suit v2

bskim45 avatar Mar 24 '17 09:03 bskim45

I've found a solution for this.

In the base.html comes with Django Suit, under {% block extrastyle %} replace <link href='{% static "suit/css/font-awesome.min.css" %}' rel='stylesheet' type='text/css'>

by <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

ArnoldGitHub avatar Jul 28 '17 06:07 ArnoldGitHub

Is suit really dependant on access to maxcdn.bootstrapcdn.com - would it not be better to make a local copy available (esp for internal use of Django where internet access is unreliable)?

gamesbook avatar Jul 28 '17 07:07 gamesbook

Suit should not dependant on maxcdn, but you are right, my solution doesn't work well when offline.

But the local copy of suit seems broken for font-awesome to work for admin inlines

ArnoldGitHub avatar Jul 28 '17 07:07 ArnoldGitHub

I don't think it's a problem with font-awesome, but rather with suits.css.

rcotrina94 avatar Nov 26 '18 05:11 rcotrina94