summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks')
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_creation_section.html22
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_json.html6
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_field.html7
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_field_flex.html6
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_field_flex_detail.html6
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_field_flex_full.html6
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_field_flex_multiple.html8
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_field_flex_url.html7
8 files changed, 53 insertions, 15 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_creation_section.html b/ishtar_common/templates/ishtar/blocks/sheet_creation_section.html
index e6ce31c25..78126a240 100644
--- a/ishtar_common/templates/ishtar/blocks/sheet_creation_section.html
+++ b/ishtar_common/templates/ishtar/blocks/sheet_creation_section.html
@@ -1,19 +1,21 @@
{% load i18n link_to_window %}
{% if item.history_creator.ishtaruser.person %}
-<li><label>{% trans "Creation" context "Sheet" %}</label>
- <span class='value'>
+<div class="col-12 col-md-6 col-lg-4 d-flex flex-wrap row">
+ <dt class="col-5">{% trans "Creation" context "Sheet" %}</dt>
+ <dd class="col-7">
{{item.history_creator.ishtaruser.person}}
{{item.history_creator.ishtaruser.person|link_to_window}} <br/>
- <small><em>{{item.history_creation_date|date:"DATETIME_FORMAT"}}</em></small>
- </span>
-</li>
+ <small class="text-muted">{{item.history_creation_date|date:"DATETIME_FORMAT"}}</small>
+ </dd>
+</div>
{% endif %}
{% if item.history_creation_date != item.last_edition_date %}
-<li><label>{% trans "Modification" context "Sheet" %}</label>
- <span class='value'>
+<div class="col-12 col-md-6 col-lg-4 d-flex flex-wrap row">
+ <dt class="col-5">{% trans "Modification" context "Sheet" %}</dt>
+ <dd class='col-7'>
{{item.history_modifier.ishtaruser.person}}
{{item.history_modifier.ishtaruser.person|link_to_window}} <br/>
- <small><em>{% firstof item.history_date|date:"DATETIME_FORMAT" item.history.all.0.history_date|date:"DATETIME_FORMAT" %}</em></small>
- </span>
-</li>
+ <small class="text-muted">{% firstof item.history_date|date:"DATETIME_FORMAT" item.history.all.0.history_date|date:"DATETIME_FORMAT" %}</small>
+ </dd>
+</div>
{% endif %}
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_json.html b/ishtar_common/templates/ishtar/blocks/sheet_json.html
index 31e6acb84..6aaf4bae7 100644
--- a/ishtar_common/templates/ishtar/blocks/sheet_json.html
+++ b/ishtar_common/templates/ishtar/blocks/sheet_json.html
@@ -4,8 +4,8 @@
<h3>{{json_section}}</h3>
{% endif %}
{% for label, value in json_fields %}
-{% if forloop.first %}<ul class='form-flex'>{% endif %}
- {% field_li label value %}
-{% if forloop.last %}</ul>{% endif %}
+{% if forloop.first %}<div class='row'>{% endif %}
+ {% field_flex label value %}
+{% if forloop.last %}</div>{% endif %}
{% endfor %}
{% endfor %}
diff --git a/ishtar_common/templates/ishtar/blocks/window_field.html b/ishtar_common/templates/ishtar/blocks/window_field.html
index b52ed78ee..097ae3fd2 100644
--- a/ishtar_common/templates/ishtar/blocks/window_field.html
+++ b/ishtar_common/templates/ishtar/blocks/window_field.html
@@ -1,3 +1,6 @@
-{% load i18n %}{% if data %}{% if li %}<li>{% else %}<p>{% endif %}<label>{% trans caption %}</label>
-<span class='value'>{{pre_data|safe}}{{data|linebreaksbr}}{{post_data|safe}}</span>{% if li %}</li>{% else %}</p>{% endif %}
+{% load i18n %}{% if data %}{% if li %}<li>{% elif flex %}
+ <div class="col-12 col-md-6 col-lg-4 d-flex flex-wrap">{% else %}<p>{% endif %}
+ <label>{% trans caption %}</label>
+ <span class='value'>{{pre_data|safe}}{{data|linebreaksbr}}{{post_data|safe }}</span>
+ {% if li %}</li>{% elif flex %}</div>{% else %}</p>{% endif %}
{% endif %}
diff --git a/ishtar_common/templates/ishtar/blocks/window_field_flex.html b/ishtar_common/templates/ishtar/blocks/window_field_flex.html
new file mode 100644
index 000000000..e6bd03a85
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/window_field_flex.html
@@ -0,0 +1,6 @@
+{% load i18n %}{% if data %}
+ <dl class="col-12 col-md-6 col-lg-4 d-flex flex-wrap row">
+ <dt class="col-5">{% trans caption %}</dt>
+ <dd class="col-7">{{pre_data|safe}}{{data|linebreaksbr}}{{post_data|safe }}</dd>
+ </dl>
+{% endif %}
diff --git a/ishtar_common/templates/ishtar/blocks/window_field_flex_detail.html b/ishtar_common/templates/ishtar/blocks/window_field_flex_detail.html
new file mode 100644
index 000000000..5968f9afa
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/window_field_flex_detail.html
@@ -0,0 +1,6 @@
+{% load i18n %}{% if item %}
+<dl class="col-12 col-md-6 col-lg-4 d-flex flex-wrap row">
+ <dt class="col-5">{% trans caption %}</dt>
+ <dd class="col-7">{{item}}{{link}}</dd>
+</dl>
+{% endif %}
diff --git a/ishtar_common/templates/ishtar/blocks/window_field_flex_full.html b/ishtar_common/templates/ishtar/blocks/window_field_flex_full.html
new file mode 100644
index 000000000..f44cdc6fd
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/window_field_flex_full.html
@@ -0,0 +1,6 @@
+{% load i18n %}{% if data %}
+ <dl class="col-12 row">
+ <dt class="col-12">{% trans caption %}</dt>
+ <dd class="col-12">{{pre_data|safe}}{{data|linebreaksbr}}{{post_data|safe }}</dd>
+ </dl>
+{% endif %}
diff --git a/ishtar_common/templates/ishtar/blocks/window_field_flex_multiple.html b/ishtar_common/templates/ishtar/blocks/window_field_flex_multiple.html
new file mode 100644
index 000000000..60f6361b7
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/window_field_flex_multiple.html
@@ -0,0 +1,8 @@
+{% load i18n %}{% if data.count %}
+<dl class="col-12 col-md-6 col-lg-4 d-flex flex-wrap row">
+ <dt class="col-5">{% trans caption %}</dt>
+ <dd class="col-7">{% for d in data.all %}
+ {% if forloop.counter0 %} ; {% endif %}{{ d }}
+ {% endfor %}</dd>
+</dl>
+{% endif %}
diff --git a/ishtar_common/templates/ishtar/blocks/window_field_flex_url.html b/ishtar_common/templates/ishtar/blocks/window_field_flex_url.html
new file mode 100644
index 000000000..59f612bc6
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/window_field_flex_url.html
@@ -0,0 +1,7 @@
+{% load i18n %}{% if link %}
+<div class="col-12 col-md-6 col-lg-4 d-flex flex-wrap row">
+ <dt class="col-5">{% trans caption %}</dt>
+ <dd class="col-7">
+ <a target="_blank" href='{{link|safe}}'>{% if link_name %}{{link_name}}{% else %}{{link}}{% endif %}</a>
+ </dd>
+{% endif%}