-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
268 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...ver/template_content/templates/template_content/translate_localized_template_content.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{% extends 'template_content/manage_localized_template_content.html' %} | ||
{% load i18n imagekit static localcosmos_tags template_content_tags %} | ||
|
||
{% block taxonomic_restriction %}{% endblock %} | ||
|
||
|
||
{% block form_action %}{% url 'translate_template_content' app.uid template_content.id language %}{% endblock %} | ||
|
||
{% block form %} | ||
{% for field in form %} | ||
|
||
|
||
|
||
{% if field.is_hidden %} | ||
{% else %} | ||
|
||
{% if field.field.content_definition and field.field.content_definition.type == 'multi-image' %} | ||
{% elif field.field.content_definition and field.field.content_definition.type == 'image' %} | ||
{% else %} | ||
|
||
|
||
<h5 class="mt-5">{{ field.label }}</h5> | ||
|
||
<img src="{% static 'localcosmos_server/images/countries/' %}{{ app.primary_language }}.gif" /> {{ app.primary_language }} | ||
<div class="card mb-2"> | ||
<div class="card-body bg-light"> | ||
|
||
{% get_content form.template_content field.name app.primary_language %} | ||
|
||
</div> | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% if field.field.content_definition and field.field.content_definition.type == 'multi-image' %} | ||
{% elif field.field.content_definition and field.field.content_definition.type == 'image' %} | ||
{% else %} | ||
|
||
{% if field.field.language %} | ||
<img src="{% static 'localcosmos_server/images/countries/' %}{{ field.field.language }}.gif" /> {{ field.field.language }} | ||
{% endif %} | ||
|
||
{{ field }} | ||
|
||
{% if field.help_text %} | ||
<small class="form-text text-muted">{{ field.help_text|safe }}</small> | ||
{% endif %} | ||
{% if field.errors %} | ||
<div class="text-danger">{% for error in field.errors %}{{ error }}<br>{% endfor %}</div> | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% endfor %} | ||
{% endblock %} | ||
|
||
{% block save_button_text %}{% trans 'save translation' %}{% endblock %} |
4 changes: 0 additions & 4 deletions
4
...cosmos_server/template_content/templates/template_content/translate_template_content.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.