about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--templates/create-ontology.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/create-ontology.html b/templates/create-ontology.html
index 627bc86..537c246 100644
--- a/templates/create-ontology.html
+++ b/templates/create-ontology.html
@@ -10,7 +10,7 @@
       <label for="prompt">Prompt:</label>
       <textarea class="form-control" id="prompt" name="prompt" rows="6">{{ prompt }}</textarea>
     </div>
-    <button type="submit" class="btn btn-primary">Create Ontology</button>
+    <button type="submit" class="btn btn-primary" onclick="this.style.backgroundColor='#87CEEB'; this.style.borderColor='#87CEEB';">Create Ontology</button>
   </form>
 
   {% if result %}
@@ -26,7 +26,7 @@
       <textarea class="form-control" id="query" name="query" rows="2"></textarea>
     </div>
     <div id="check_selection_onto"></div>
-    <button type="submit" class="btn btn-primary">Search</button>
+    <button type="submit" class="btn btn-primary" onclick="if(!document.getElementById('query').value.trim()){alert('Please enter at least one gene symbol');return false;}">Search</button>
   </form>
 
   <script>