Skip to content

Commit

Permalink
Update edit translatable alias template to match Miro
Browse files Browse the repository at this point in the history
  • Loading branch information
kaedroho committed Nov 2, 2020
1 parent 7d53ffa commit c8b19fd
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -3,15 +3,15 @@

{% block form %}
<div class="nice-padding" style="padding-top: 20px;">
<p>{% trans "This page is an alias of another page." %}</p>

{% url 'wagtailadmin_pages:edit' page.alias_of_id as edit_original_page_url %}
<p>
<a class="button button-secondary" href="{% url 'wagtailadmin_pages:edit' page.alias_of_id %}">{% trans "Edit original page" %}</a>
{% blocktrans with edit_original_page_url=edit_original_page_url original_locale=page.alias_of.locale.get_display_name %}
This page hasn't been translated yet. It is mirroring the <a href="{{ edit_original_page_url }}" target="_blank">{{ original_locale }} page.</a>.
{% endblocktrans %}
</p>

<p>
<a class="button button-secondary" href="{% url 'wagtail_localize:submit_page_translation' page.alias_of_id %}?select_locale={{ page.locale.language_code }}&next={% url 'wagtailadmin_pages:edit' page.id %}">{% trans "Translate this page" %}</a>

{% url 'wagtailadmin_pages:edit' page.id as this_url %}
<a class="button button-secondary" href="{% url 'wagtailadmin_pages:convert_alias' page.id %}?next={{ this_url|urlencode }}">{% trans "Convert this alias into a regular page" %}</a>
</p>
</div>
{% endblock %}

0 comments on commit c8b19fd

Please sign in to comment.