Improve settings link for propagated settings

This commit is contained in:
Raphael Michel
2022-08-11 16:14:37 +02:00
parent 000407bcaf
commit b586a52813
2 changed files with 11 additions and 9 deletions

View File

@@ -207,14 +207,16 @@
{% bootstrap_field sform.logo_show_title layout="control" %} {% bootstrap_field sform.logo_show_title layout="control" %}
{% bootstrap_field sform.og_image layout="control" %} {% bootstrap_field sform.og_image layout="control" %}
{% url "control:organizer.edit" organizer=request.organizer.slug as org_url %} {% url "control:organizer.edit" organizer=request.organizer.slug as org_url %}
{% propagated request.event org_url "primary_color" "primary_font" "theme_color_success" "theme_color_danger" "theme_color_background" "theme_round_borders" %} {% with org_url|add:"#tab-0-4-open" as org_url_tab %}
{% bootstrap_field sform.primary_color layout="control" %} {% propagated request.event org_url_tab "primary_color" "primary_font" "theme_color_success" "theme_color_danger" "theme_color_background" "theme_round_borders" %}
{% bootstrap_field sform.theme_color_success layout="control" %} {% bootstrap_field sform.primary_color layout="control" %}
{% bootstrap_field sform.theme_color_danger layout="control" %} {% bootstrap_field sform.theme_color_success layout="control" %}
{% bootstrap_field sform.theme_color_background layout="control" %} {% bootstrap_field sform.theme_color_danger layout="control" %}
{% bootstrap_field sform.theme_round_borders layout="control" %} {% bootstrap_field sform.theme_color_background layout="control" %}
{% bootstrap_field sform.primary_font layout="control" %} {% bootstrap_field sform.theme_round_borders layout="control" %}
{% endpropagated %} {% bootstrap_field sform.primary_font layout="control" %}
{% endpropagated %}
{% endwith %}
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>{% trans "Timeline" %}</legend> <legend>{% trans "Timeline" %}</legend>

View File

@@ -55,7 +55,7 @@ class PropagatedNode(Node):
</div> </div>
<div class="panel-body help-text"> <div class="panel-body help-text">
{text_expl}<br> {text_expl}<br>
<a href="{url}" target="_blank"> <a href="{url}" target="_blank" class="btn btn-default">
{text_orga} {text_orga}
</a> </a>
</div> </div>