reledit.py 962 Bytes
Newer Older
1
2
3
"""bootstrap implementation of reledit

:organization: Logilab
4
:copyright: 2013-2022 LOGILAB S.A. (Paris, FRANCE), license is LGPL.
Nicola Spanti's avatar
Nicola Spanti committed
5
:contact: https://www.logilab.fr/ -- mailto:contact@logilab.fr
6
"""
7
8
__docformat__ = "restructuredtext en"

9
10
from cubicweb.web.views.reledit import AutoClickAndEditFormView
AutoClickAndEditFormView._addzone = u' <span class="glyphicon glyphicon-plus"></span>'
11
AutoClickAndEditFormView._deletezone = u' <span class="glyphicon glyphicon-remove"></span>'
12
13
AutoClickAndEditFormView._editzone = u' <span class="glyphicon glyphicon-pencil"></span>'

14
try:
Nsukami Patrick's avatar
Nsukami Patrick committed
15
    from cubicweb_inlinedit.views import reledit
16
17
18
except ImportError:
    pass
else:
19
20
21
    reledit.ReleditRelationFormHandler._addzone = u' <span class="glyphicon glyphicon-plus"></span>'
    reledit.ReleditFormHandler._editzone = u' <span class="glyphicon glyphicon-pencil"></span>'
    reledit.ReleditEntityFormHandler._deletezone = u' <span class="glyphicon glyphicon-remove"></span>'