diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-05-27 08:30:27 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-05-27 08:30:27 +0200 |
commit | ffd47c28bd7288a88745964a2031e61d991b0364 (patch) | |
tree | 3c74ff2345a4afa7699d91e09b68b4d168d778af /archaeological_operations/templates | |
parent | dfed6307d550c63eea210828cfc35eb299d37fdc (diff) | |
download | Ishtar-ffd47c28bd7288a88745964a2031e61d991b0364.tar.bz2 Ishtar-ffd47c28bd7288a88745964a2031e61d991b0364.zip |
OA prefix: fix customize on sheet, form and save
Diffstat (limited to 'archaeological_operations/templates')
-rw-r--r-- | archaeological_operations/templates/ishtar/blocks/OAWidget.html | 6 | ||||
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/archaeological_operations/templates/ishtar/blocks/OAWidget.html b/archaeological_operations/templates/ishtar/blocks/OAWidget.html index 6f4c1af24..58744daa6 100644 --- a/archaeological_operations/templates/ishtar/blocks/OAWidget.html +++ b/archaeological_operations/templates/ishtar/blocks/OAWidget.html @@ -1,6 +1,6 @@ <div class="input-group"> - <div class="input-group-prepend"> - <div class="input-group-text">OA</div> - </div> + {% if oa_prefix %}<div class="input-group-prepend"> + <div class="input-group-text">{{oa_prefix}}</div> + </div>{% endif %} <input class="form-control widget-oa" type="text"{{final_attrs|safe}}> </div>
\ No newline at end of file diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index e3076d3e9..a7d0b7ecc 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -117,7 +117,7 @@ <div class="col main"> {% if item.year or item.operation_code %} {{item.year|default:''}}-{{item.operation_code|default:''}}{% endif %}<br> - {% if item.code_patriarche %}OA{{item.code_patriarche}}{% endif %} + {% if item.code_patriarche %}{% if PROFILE.operation_prefix %}{{PROFILE.operation_prefix}}{% endif %}{{item.code_patriarche}}{% endif %} {% if item.complete_identifier %}<p class="window-refs" title="{% trans 'Complete identifier' %}"> <strong>{{ item.complete_identifier }}</strong></p>{% endif %} |