Clean up some styling in scouting app.
Correctly set columns for scores.
Switch margin to padding to not mess up bootstrap styles.
Add back button on screens that can go back.
Change-Id: I25de3c6de2d93564bfbe74cd7aa3bb1de933a4e3
Signed-off-by: Alex Perry <alex.perry96@gmail.com>
diff --git a/scouting/www/entry/entry.component.ts b/scouting/www/entry/entry.component.ts
index 21bdac4..a1cffc3 100644
--- a/scouting/www/entry/entry.component.ts
+++ b/scouting/www/entry/entry.component.ts
@@ -16,8 +16,8 @@
teleUpperShotsMade: number = 0;
teleLowerShotsMade: number = 0;
teleShotsMissed: number = 0;
- defensePlayedOnScore: number = 50;
- defensePlayedScore: number = 50;
+ defensePlayedOnScore: number = 3;
+ defensePlayedScore: number = 3;
level: Level;
proper: boolean = false;
climbed: boolean = false;
@@ -72,6 +72,18 @@
}
}
+ prevSection() {
+ if (this.section === 'TeleOp') {
+ this.section = 'Auto';
+ } else if (this.section === 'Climb') {
+ this.section = 'TeleOp';
+ } else if (this.section === 'Defense') {
+ this.section = 'Climb';
+ } else if (this.section === 'Review and Submit') {
+ this.section = 'Defense';
+ }
+ }
+
adjustAutoUpper(by: number) {
this.autoUpperShotsMade = Math.max(0, this.autoUpperShotsMade + by);
}