diff --git a/pom.xml b/pom.xml
index ec76b3f..320ffa1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
de.srsoftware
web4rail
- 0.9.8
+ 0.9.9
Web4Rail
jar
Java Model Railway Control
diff --git a/resources/css/style.css b/resources/css/style.css
index 9faf007..ed5fba5 100644
--- a/resources/css/style.css
+++ b/resources/css/style.css
@@ -220,7 +220,7 @@ fieldset{
background: red;
}
-ul{
+h4,ul{
clear: both;
}
diff --git a/resources/translations/Application.de.translation b/resources/translations/Application.de.translation
index 350e92a..0488b8b 100644
--- a/resources/translations/Application.de.translation
+++ b/resources/translations/Application.de.translation
@@ -29,6 +29,7 @@ Properties of {} : Eigenschaften von {}
Properties of {} @ ({},{}) : Eigenschaften von {} @ ({},{})
Reduce speed to {} km/h : Geschwindigkeit auf {} km/h reduzieren
Routes using this tile\: : Fahrstraßen, die diesen Abschnitt verwenden:
+Route will only be available to trains fulfilling all conditions. : Route ist nur für Züge verfügbar, die alle Bedingungen erfüllen.
save : speichern
Save plan : Plan speichern
SetRelay : Relais schalten
diff --git a/src/main/java/de/srsoftware/web4rail/Route.java b/src/main/java/de/srsoftware/web4rail/Route.java
index 0186af9..52bc377 100644
--- a/src/main/java/de/srsoftware/web4rail/Route.java
+++ b/src/main/java/de/srsoftware/web4rail/Route.java
@@ -32,6 +32,7 @@ import de.srsoftware.web4rail.actions.SetSpeed;
import de.srsoftware.web4rail.conditions.Condition;
import de.srsoftware.web4rail.moving.Train;
import de.srsoftware.web4rail.tags.Button;
+import de.srsoftware.web4rail.tags.Fieldset;
import de.srsoftware.web4rail.tags.Form;
import de.srsoftware.web4rail.tags.Input;
import de.srsoftware.web4rail.tiles.Block;
@@ -196,13 +197,15 @@ public class Route implements Constants{
list.addTo(win);
}
+ new Tag("div").content(t("Route will only be available to trains fulfilling all conditions.")).addTo(win);
Form form = new Form("action-prop-form-"+id);
+ Fieldset fieldset = new Fieldset(t("Add condition"));
new Input(REALM,REALM_ROUTE).hideIn(form);
new Input(ID,id()).hideIn(form);
new Input(ACTION,ACTION_UPDATE).hideIn(form);
- Condition.selector().addTo(form);
- new Button(t("Add condition"),form).addTo(form).addTo(win);
+ Condition.selector().addTo(fieldset);
+ new Button(t("Add condition"),form).addTo(fieldset).addTo(form).addTo(win);
}
private void addContactsTo(Window win) {
@@ -475,8 +478,8 @@ public class Route implements Constants{
private void loadConditions(JSONArray arr) {
for (int i=0; i