Skip to content

Commit

Permalink
Migrate CLM translations and urls
Browse files Browse the repository at this point in the history
  • Loading branch information
johnatawnclementawn committed Jul 23, 2024
1 parent 5419e02 commit 7a1e572
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions arches_references/templates/javascript.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% extends "javascript.htm" %}

{% load static %}
{% load l10n %}
{% load i18n %}

{% block arches_translations %}
{{ block.super }}
<div class='arches-translations'
required='{% trans "required" as required %} "{{ required|escapejs }}"'
controlled-list='{% trans "Controlled List" as controlledList %} "{{ controlledList|escapejs }}"'
unlabeled-item='{% trans "Unlabeled Item" as unlabeledItem %} "{{ unlabeledItem|escapejs }}"'
select-a-controlled-list='{% trans "Select a controlled list" as selectAControlledList %} "{{ selectAControlledList|escapejs }}"'
multiple-values='{% trans "Multiple Values" as multipleValues %} "{{ multipleValues|escapejs }}"'
allow-selection-of-multiple-items='{% trans "Allow selection of multiple items" as allowSelectionOfMultipleItems %} "{{ allowSelectionOfMultipleItems|escapejs }}"'
></div>
{% endblock arches_translations %}


{% block arches_urls %}
{{ block.super }}
<div class="arches-urls"
controlled_lists="{% url 'controlled_lists' %}"
controlled_list='(listid) => {return "{% url "controlled_list" "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" %}".replace("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", listid)}'
controlled_list_add="{% url 'controlled_list_add' %}"
controlled_list_item='(itemid) => {return "{% url "controlled_list_item" "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" %}".replace("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", itemid)}'
controlled_list_item_add="{% url 'controlled_list_item_add' %}"
controlled_list_item_value='(valueid) => {return "{% url "controlled_list_item_value" "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" %}".replace("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", valueid)}'
controlled_list_item_value_add="{% url 'controlled_list_item_value_add' %}"
controlled_list_item_image='(imageid) => { return "{% url "controlled_list_item_image" "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" %}".replace("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", imageid)}'
controlled_list_item_image_add="{% url 'controlled_list_item_image_add' %}"
controlled_list_item_image_metadata='(metadataid) => { return "{% url "controlled_list_item_image_metadata" "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" %}".replace("aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", metadataid)}'
controlled_list_item_image_metadata_add="{% url 'controlled_list_item_image_metadata_add' %}"
></div>
{% endblock arches_urls %}

0 comments on commit 7a1e572

Please sign in to comment.