Skip to content

Commit

Permalink
update template wording in provision mode
Browse files Browse the repository at this point in the history
  • Loading branch information
goose-life committed Jan 16, 2025
1 parent 2ea0191 commit b9e75a8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 18 additions & 6 deletions indigo_app/templates/indigo_api/document/_defined_terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,31 @@ <h4 class="modal-title">{% trans 'Defined Terms' %}</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">

<p>{% trans 'These are terms that are explicitly defined in this document. Always refresh defined terms before publishing a document to ensure that all references to terms are captured.' %}</p>

<div class="card bg-light scrollable">
{% if provision_eid == "" %}
<p>{% trans 'These are terms that are explicitly defined in this document. Always refresh defined terms before publishing a document to ensure that all references to terms are captured.' %}</p>
<div class="card bg-light scrollable">
<div class="card-body">
<div class="document-terms-list"></div>
</div>
</div>

{% else %}
<p>
<i class="fa fa-exclamation-triangle text-warning"></i>
{% trans 'In provision mode, only passive references that have already been marked up can be linked.' %}
{% trans 'To mark up definitions, even in this provision, you need to edit the full document.' %}
</p>
{% endif %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary remove-terms pull-left"><i class="fas fa-times"></i> {% trans 'Remove defined terms' %}</button>
<button class="btn btn-outline-secondary link-terms"><i class="fas fa-sync"></i> {% trans 'Find and link defined terms' %}</button>
<button class="btn btn-outline-secondary link-terms">
<i class="fas fa-sync"></i>
{% if provision_eid == "" %}
{% trans 'Find and link defined terms' %}
{% else %}
{% trans 'Link defined terms' %}
{% endif %}
</button>
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">{% trans 'Close' %}</button>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion indigo_app/templates/indigo_api/document/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h5 class="main-header-title">
</div>

{% include "indigo_api/document/_revisions.html" %}
{% include "indigo_api/document/_defined_terms.html" %}
{% include "indigo_api/document/_defined_terms.html" with provision_eid=provision_eid %}
{% include "indigo_api/document/_references.html" %}
{% include "indigo_api/document/_annotations.html" %}
{% include "indigo_api/document/_insert_image_modal.html" %}
Expand Down

0 comments on commit b9e75a8

Please sign in to comment.