0002-show-cube-warnings-36576.patch
bijoe/templates/bijoe/cube.html | ||
---|---|---|
45 | 45 |
{% block buttons %} |
46 | 46 |
<input type="submit" name="visualize" value="{% trans "Visualiser" %}"> |
47 | 47 |
{% endblock %} |
48 |
{% if cube.warnings %} |
|
49 |
{% block warnings %} |
|
50 |
<ul class="messages"> |
|
51 |
{% for message in cube.warnings %} |
|
52 |
<li class="warning">{{ message }}</li> |
|
53 |
{% endfor %} |
|
54 |
</ul> |
|
55 |
{% endblock %} |
|
56 |
{% endif %} |
|
48 | 57 |
</form> |
49 | 58 |
<div id="data" {% if visualization %}class="visualization-{{visualization.representation}}"{% endif %}> |
50 | 59 |
{% if visualization %} |
tests/test_schema1.py | ||
---|---|---|
10 | 10 |
response = app.get('/').follow() |
11 | 11 |
response = response.click('Facts 1') |
12 | 12 |
assert 'big-msg-info' in response |
13 |
assert u'le champ « pouët »' in response |
|
14 |
assert 'warning2' in response |
|
13 | 15 |
form = response.form |
14 | 16 |
form.set('representation', 'table') |
15 | 17 |
form.set('measure', 'simple_count') |
16 |
- |