Skip to content

Commit

Permalink
grappelli admin widget: updated CSS classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Apr 17, 2014
1 parent 7ae2720 commit a64ec0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 0 additions & 4 deletions django_hstore/static/admin/css/django-hstore-widget.css

This file was deleted.

4 changes: 2 additions & 2 deletions django_hstore/templates/hstore_grappelli_widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
placeholder="{% trans 'value' %}">

<ul class="grp-tools" style="float:left;position:static;margin:0 0 0 15px">
<li><a href="#" class="icons-sprite hstore-remove-handler remove-row" title="{% trans 'remove row' %}"></a></li>
<li><a href="#" class="grp-icon grp-remove-handler remove-row" title="{% trans 'remove row' %}"></a></li>
</ul>
</div>
</div>
Expand All @@ -23,7 +23,7 @@ <h2><%= label %></h2>

<ul class="grp-tools">
<li><a href="#" class="grp-text hstore-toggle-txtarea">{% trans 'toggle textarea' %}</a></li>
<li class="hs-add-row"><a href="#" class="icons-sprite hstore-add-handler"></a></li>
<li class="hs-add-row"><a href="#" class="grp-icon grp-add-handler" title="{% trans "Add row" %}"></a></li>
</ul>

<% if(help && help != '') { %>
Expand Down
8 changes: 2 additions & 6 deletions django_hstore/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BaseAdminHStoreWidget(AdminTextareaWidget):
Base admin widget class for default-admin and grappelli-admin widgets
"""
admin_style = 'default'

@property
def media(self):
# load underscore from CDNJS (popular javascript content delivery network)
Expand All @@ -33,11 +33,7 @@ def media(self):

js = external_js + [static("admin/js/%s" % path) for path in internal_js]

css = {
'all': [static("admin/css/django-hstore-widget.css")]
}

return forms.Media(js=js, css=css)
return forms.Media(js=js)

def render(self, name, value, attrs=None):
if attrs is None:
Expand Down

0 comments on commit a64ec0c

Please sign in to comment.