This commit is contained in:
Stephan Richter
2020-11-12 16:52:51 +01:00
parent 917b1107d9
commit 64435ef68b
7 changed files with 10 additions and 8 deletions

View File

@@ -117,7 +117,7 @@ public class Contact extends Tile{
public Form propForm(String formId) {
Form form = super.propForm(formId);
new Tag("h4").content(t("Hardware settings")).addTo(form);
Tag label = new Input(ADDRESS, addr).addTo(new Label(t("Address:")+NBSP));
Tag label = new Input(ADDRESS, addr).numeric().addTo(new Label(t("Address:")+NBSP));
Map<String, String> props = Map.of(REALM,REALM_CONTACT,ID,id(),ACTION,ACTION_ANALYZE);
new Button(t("learn"), props).addTo(label).addTo(form);

View File

@@ -119,7 +119,7 @@ public abstract class Tile extends BaseClass{
public boolean isFreeFor(Train newTrain) {
if (disabled) return false;
if (isSet(route)) return false;
if (isSet(train) && newTrain != train) return false;
if (isSet(train) && train != newTrain) return false;
return true;
}