Ver código fonte

add back radio

Tuan Nguyen 1 ano atrás
pai
commit
a655732522
1 arquivos alterados com 13 adições e 4 exclusões
  1. 13 4
      templates/index.html

+ 13 - 4
templates/index.html

@@ -24,9 +24,19 @@
                     <button onclick="disconnectSerial()">Disconnect</button>
                     <button onclick="restartSerial()">Restart</button>
                 </div>
-                <p id="serial_status" class="status">Status: Not connected</p>
             </div>
-
+            <div class="section"> 
+                <h2>Mode</h2>
+                <label>
+                <input type="radio" name="mode" class="modeSelector" value="single_run" checked> Single Run
+                </label>
+                <label>
+                <input type="radio" name="mode" class="modeSelector" value="create_playlist"> Create Playlist
+                </label>
+                <label>
+                <input type="radio" name="mode" class="modeSelector" value="run_playlist"> Run Playlist
+                </label>
+            </div>
             <div class="section">
                 <h2>Quick Actions</h2>
                 <div class="button-group">
@@ -60,7 +70,7 @@
                 <h2>Pattern Files</h2>
                 <input type="text" id="search_pattern" placeholder="Search files..." oninput="searchPatternFiles()">
                 <ul id="theta_rho_files"></ul>
-                <div class="pre-execution-toggles">
+                <div class="pre-execution-toggles modeSection single_run">
                     <h3>Pre-Execution Action</h3>
                     <label>
                         <input type="radio" name="pre_execution" value="clear_in" id="clear_in"> Clear from In
@@ -77,7 +87,6 @@
                 </div>
                 <div class="button-group">
                     <button id="run_button" disabled>Run Selected File</button>
-                    <button onclick="stopExecution()" class="delete-button">Stop</button>
                 </div>
                 <div class="section modeSection single_run">
                     <h2>Upload new files</h2>