Update apps' other modules to use the new Icon class.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-06-29 02:54:14 -04:00
parent aa4e8e3507
commit 061366ffec
26 changed files with 138 additions and 28 deletions

View File

@@ -9,6 +9,7 @@ from django.views.generic.base import RedirectView
from common.generics import SimpleView, SingleObjectListView
from .forms import SearchForm, AdvancedSearchForm
from .icons import icon_search_submit
from .mixins import SearchModelMixin
from .settings import setting_limit
@@ -59,7 +60,7 @@ class SearchView(SearchModelMixin, SimpleView):
'search:results', args=(self.search_model.get_full_name(),)
),
'search_model': self.search_model,
'submit_icon': 'fa fa-search',
'submit_icon_class': icon_search_submit,
'submit_label': _('Search'),
'submit_method': 'GET',
'title': _('Search for: %s') % self.search_model.label,