0001-backoffice-fix-display-of-add-related-button-in-grid.patch
wcs/qommon/static/css/dc2/admin.scss | ||
---|---|---|
2126 | 2126 |
} |
2127 | 2127 |
} |
2128 | 2128 | |
2129 |
.wcs-widget-select2-container { |
|
2130 |
display: flex; |
|
2131 |
.add-related { |
|
2132 |
margin-top: 2px; // == margin-top of span.select2-container |
|
2133 |
margin-left: 3px; |
|
2134 |
} |
|
2135 |
} |
|
2136 | ||
2129 | 2137 |
.wcs-block-with-remove-button { |
2130 | 2138 |
.BlockSubWidget { |
2131 | 2139 |
position: relative; |
wcs/qommon/templates/qommon/forms/widgets/select_jsonp.html | ||
---|---|---|
1 | 1 |
{% extends "qommon/forms/widget.html" %} |
2 | 2 |
{% load i18n %} |
3 | 3 |
{% block widget-control %} |
4 |
<div class="wcs-widget-select2-container"> |
|
4 | 5 |
<select id="form_{{widget.name}}" name="{{widget.name}}" |
5 | 6 |
data-select2-url="{{widget.get_select2_url}}" |
6 | 7 |
{% if widget.value %}data-value="{{ widget.value }}"{% endif %} |
... | ... | |
12 | 13 |
href="{{ widget.add_related_url }}?_popup=1" |
13 | 14 |
title="{% blocktrans with card=widget.get_title %}Add another {{ card }}{% endblocktrans %}">+</a> |
14 | 15 |
{% endif %} |
16 |
</div> |
|
15 | 17 |
{% endblock %} |
16 |
- |