diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php
index d526a0ee3..0f8fab42e 100644
--- a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php
+++ b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php
@@ -69,8 +69,8 @@ $this->load->view(
-
-
+
+
@@ -100,6 +100,15 @@ $this->load->view(
// Store boolean has_inkludierteLehre. If true, used to hide column Betrag.
var has_inkludierteLehre = new Boolean().valueOf();
+ /**
+ * PNG icons used in status- and filter buttons
+ * Setting png icons is a workaround to use font-awsome 5.9.0 icons until system can be updated to newer font awsome version.
+ * */
+ const ICON_LEHRAUFTRAG_ORDERED = '

';
+ const ICON_LEHRAUFTRAG_APPROVED = '

';
+ const ICON_LEHRAUFTRAG_CHANGED = '

';
+
+
// -----------------------------------------------------------------------------------------------------------------
// Mutators - setter methods to manipulate table data when entering the tabulator
// -----------------------------------------------------------------------------------------------------------------
@@ -271,31 +280,31 @@ $this->load->view(
// commented icons would be so nice to have with fontawsome 5.11...
if (bestellt != null && isNaN(vertrag_betrag))
{
- return "
"; // kein Vertrag
+ return "
"; // kein Vertrag
}
else if (bestellt != null && (betrag != vertrag_betrag))
{
- return "
"; // geaendert
- // return "
"; // geaendert
+ return ICON_LEHRAUFTRAG_CHANGED; // geaendert
+ // return "
";
}
else if (bestellt == null && erteilt == null && akzeptiert == null)
{
- return "
"; // neu
+ return "
"; // neu
}
else if (bestellt != null && erteilt == null && akzeptiert == null)
{
- return "
"; // bestellt
- // return "
"; // bestellt
+ return ICON_LEHRAUFTRAG_ORDERED; // bestellt
+ // return "
";
}
else if (bestellt != null && erteilt != null && akzeptiert == null)
{
- return "
"; // erteilt
- // return "
"; // erteilt
+ return ICON_LEHRAUFTRAG_APPROVED; // erteilt
+ // return "
";
}
else if (bestellt != null && erteilt != null && akzeptiert != null)
{
- return "
"; // akzeptiert
- // return "
"; // akzeptiert
+ return "
"; // akzeptiert
+ // return "
";
}
else
{
@@ -415,6 +424,19 @@ $this->load->view(
);
});
+ // Set png-icons into filter-buttons
+ $(".btn-lehrauftrag").each(function(){
+ switch(this.id) {
+ case 'show-ordered':
+ this.innerHTML = ICON_LEHRAUFTRAG_ORDERED;
+ break;
+ case 'show-approved':
+ this.innerHTML = ICON_LEHRAUFTRAG_APPROVED;
+ break;
+ }
+ });
+
+
// Approve Lehrauftraege
$("#accept-lehrauftraege").click(function(){
diff --git a/application/views/lehre/lehrauftrag/approveLehrauftrag.php b/application/views/lehre/lehrauftrag/approveLehrauftrag.php
index 3b25e8399..e7c0383b9 100644
--- a/application/views/lehre/lehrauftrag/approveLehrauftrag.php
+++ b/application/views/lehre/lehrauftrag/approveLehrauftrag.php
@@ -102,10 +102,10 @@ $this->load->view(
-
-
+
+
-
+
@@ -120,6 +120,14 @@ $this->load->view(
const COLOR_LIGHTGREY = "#f5f5f5";
+ /**
+ * PNG icons used in status- and filter buttons
+ * Setting png icons is a workaround to use font-awsome 5.9.0 icons until system can be updated to newer font awsome version.
+ * */
+ const ICON_LEHRAUFTRAG_ORDERED = '