now remembering last clicked tabs
This commit is contained in:
@@ -171,7 +171,7 @@ public abstract class Block extends StretchableTile{
|
||||
}
|
||||
|
||||
private Fieldset contactForm() {
|
||||
Fieldset fieldset = new Fieldset(t("internal contacts"));
|
||||
Fieldset fieldset = new Fieldset(t("internal contacts")).id("props-contacts");
|
||||
this.button(t("new contact"), Map.of(ACTION,ACTION_ADD_CONTACT)).addTo(fieldset);
|
||||
if (!internalContacts.isEmpty()) {
|
||||
Tag ul = new Tag("ul");
|
||||
@@ -455,7 +455,7 @@ public abstract class Block extends StretchableTile{
|
||||
}
|
||||
|
||||
public Fieldset waitTimeForm() {
|
||||
Fieldset win = new Fieldset(t("Wait times"));
|
||||
Fieldset win = new Fieldset(t("Wait times")).id("props-times");
|
||||
Form form = new Form("train-wait-form");
|
||||
new Tag("h4").content(t("Stop settings")).addTo(win);
|
||||
new Input(REALM,REALM_PLAN).hideIn(form);
|
||||
|
||||
@@ -197,8 +197,7 @@ public class Contact extends Tile{
|
||||
button(t("learn"),Map.of(ACTION,ACTION_ANALYZE)).addTo(span);
|
||||
formInputs.add(t("Address"),span);
|
||||
|
||||
Fieldset fieldset = new Fieldset(t("Actions"));
|
||||
fieldset.id("actions");
|
||||
Fieldset fieldset = new Fieldset(t("Actions")).id("props-actions");
|
||||
actions.list().addTo(fieldset);
|
||||
postForm.add(fieldset);
|
||||
return super.properties(preForm, formInputs, postForm);
|
||||
|
||||
@@ -128,8 +128,7 @@ public abstract class Signal extends Tile {
|
||||
|
||||
@Override
|
||||
protected Window properties(List<Fieldset> preForm, FormInput formInputs, List<Fieldset> postForm) {
|
||||
Fieldset aspectEditor = new Fieldset(t("Aspects"));
|
||||
aspectEditor.attr(ID, "aspect-editor");
|
||||
Fieldset aspectEditor = new Fieldset(t("Aspects")).id("props-aspects");
|
||||
Form form = new Form("aspect-form");
|
||||
new Input(REALM,REALM_PLAN).hideIn(form);
|
||||
new Input(ACTION,ACTION_UPDATE).hideIn(form);
|
||||
|
||||
@@ -270,7 +270,7 @@ public abstract class Tile extends BaseClass implements Comparable<Tile>{
|
||||
if (isSet(train.route())) {
|
||||
train.button(t("stop"), Map.of(ACTION,ACTION_STOP)).addTo(fieldset);
|
||||
} else {
|
||||
train.button(t("start"), Map.of(ACTION,ACTION_START)).addTo(fieldset);
|
||||
train.button(t("depart"), Map.of(ACTION,ACTION_START)).addTo(fieldset);
|
||||
}
|
||||
if (train.usesAutopilot()) {
|
||||
train.button(t("quit autopilot"), Map.of(ACTION,ACTION_QUIT)).addTo(fieldset);
|
||||
@@ -300,7 +300,7 @@ public abstract class Tile extends BaseClass implements Comparable<Tile>{
|
||||
|
||||
|
||||
if (!routes.isEmpty()) {
|
||||
fieldset = new Fieldset(t("Routes"));
|
||||
fieldset = new Fieldset(t("Routes")).id("props-routes");
|
||||
Tag routeList = new Tag("ol");
|
||||
boolean empty = true;
|
||||
for (Route route : routes) {
|
||||
|
||||
Reference in New Issue
Block a user