summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-18 19:20:18 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-01-18 19:20:18 +0100
commit8556202c32dfc6b4cbed037402c932337e4ef359 (patch)
treea672844f66def0b9480ee76b76cbaa9907bf79c3
parentf629ba23c50f7257d8fdd913d8096efa2631e9de (diff)
downloadIshtar-8556202c32dfc6b4cbed037402c932337e4ef359.tar.bz2
Ishtar-8556202c32dfc6b4cbed037402c932337e4ef359.zip
CSS: bold for required
-rw-r--r--ishtar_common/static/media/styles.css4
-rw-r--r--ishtar_common/templates/blocks/bs_field_snippet.html2
2 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/static/media/styles.css b/ishtar_common/static/media/styles.css
index 7d8789cc8..0526ee49e 100644
--- a/ishtar_common/static/media/styles.css
+++ b/ishtar_common/static/media/styles.css
@@ -2,6 +2,10 @@
display: none;
}
+.required label{
+ font-weight: bold;
+}
+
.search .form-group {
margin-bottom: 0.2rem;
font-size: 0.9em;
diff --git a/ishtar_common/templates/blocks/bs_field_snippet.html b/ishtar_common/templates/blocks/bs_field_snippet.html
index bf341db8e..c157461b7 100644
--- a/ishtar_common/templates/blocks/bs_field_snippet.html
+++ b/ishtar_common/templates/blocks/bs_field_snippet.html
@@ -1,5 +1,5 @@
{% load i18n %}
- <div class="form-group col-lg-6">
+ <div class="form-group col-lg-6{% if field.field.required %} required{% endif %}">
{{ field.label_tag }}
{% if field.help_text %}
<div class="input-group">