pricing: add link to regie from agenda page (#75867)
gitea/lingo/pipeline/head This commit looks good
Details
gitea/lingo/pipeline/head This commit looks good
Details
This commit is contained in:
parent
52da1f8cd4
commit
505ba2bfa5
|
@ -97,7 +97,7 @@
|
|||
|
||||
<div aria-labelledby="tab-invoicing" hidden="" id="panel-invoicing" role="tabpanel" tabindex="0">
|
||||
<ul>
|
||||
<li>{% trans "Regie:" %} {{ object.regie|default:"" }}</li>
|
||||
<li>{% trans "Regie:" %} {% if object.regie.pk %}<a href="{% url 'lingo-manager-invoicing-regie-detail' pk=object.regie.pk %}">{{ object.regie }}</a>{% endif %}</li>
|
||||
</ul>
|
||||
<div class="panel--buttons">
|
||||
<a rel="popup" class="button" href="{% url 'lingo-manager-agenda-invoicing-settings' pk=object.pk %}">{% trans 'Configure' %}</a>
|
||||
|
|
|
@ -73,4 +73,4 @@ def test_edit_agenda_invoicing_settings(app, admin_user):
|
|||
resp = resp.form.submit().follow()
|
||||
agenda.refresh_from_db()
|
||||
assert agenda.regie == regie
|
||||
assert 'Regie: Foo bar' in resp
|
||||
assert 'Regie: <a href="/manage/invoicing/regie/%s/">Foo bar</a>' % regie.pk in resp
|
||||
|
|
Loading…
Reference in New Issue