Skip to content

Commit 362f450

Browse files
committed
remember selected system
1 parent a478a03 commit 362f450

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/api/view/index.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<?php
2+
use SyntaxTreeApi\Model\ParseSyntaxCommandFactory;
3+
?>
14
<!DOCTYPE html>
25
<html lang="en">
36

@@ -55,8 +58,8 @@
5558
<div class="col-md-2">
5659
<div class="form-group">
5760
<select class="form-control" id="system" name="system">
58-
<option>TensorFlow</option>
59-
<option>MaltParser</option>
61+
<option <?php echo $system === ParseSyntaxCommandFactory::SYSTEM_TENSOR_FLOW ? 'selected="selected"' : ''; ?>>TensorFlow</option>
62+
<option <?php echo $system === ParseSyntaxCommandFactory::SYSTEM_MALT_PARSER ? 'selected="selected"' : ''; ?>>MaltParser</option>
6063
</select>
6164
</div>
6265
</div>

0 commit comments

Comments
 (0)