summaryrefslogtreecommitdiff
path: root/archaeological_operations/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/widgets.py')
-rw-r--r--archaeological_operations/widgets.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/archaeological_operations/widgets.py b/archaeological_operations/widgets.py
index 3a587e4fd..04e0fcdfd 100644
--- a/archaeological_operations/widgets.py
+++ b/archaeological_operations/widgets.py
@@ -52,9 +52,12 @@ class ParcelWidget(widgets.MultiWidget):
class SelectParcelWidget(widgets.TextInput):
def render(self, *args, **kwargs):
render = super(SelectParcelWidget, self).render(*args, **kwargs)
- render += u" <button name='formset_add' value='add'>%s</button>" \
- % _(u"Add")
- return mark_safe(render)
+ html = u"""{}
+ <div class="input-group-append">
+ <button class='input-group-text btn btn-success' name='formset_add'
+ value='add'>{}</button>
+ </div>""".format(render, _(u"Add"))
+ return mark_safe(html)
class OAWidget(forms.TextInput):