Abid Ali Awan commited on
Commit
cefffc6
·
1 Parent(s): 679be47

Fix funding options form layout

Browse files
Files changed (2) hide show
  1. src/ui.py +1 -1
  2. tests/test_ui_config.py +5 -1
src/ui.py CHANGED
@@ -790,7 +790,7 @@ FRONTEND_HTML = r"""
790
  </select>
791
  </label>
792
  <label class="field full"><span>Field of study</span><input name="field_of_study" value="Computer science or data science" required></label>
793
- <fieldset class="field">
794
  <span>Funding type &mdash; pick any</span>
795
  <div class="checkgroup">
796
  <label class="check"><input type="checkbox" name="funding_type" value="Scholarship" checked><span>Scholarship</span></label>
 
790
  </select>
791
  </label>
792
  <label class="field full"><span>Field of study</span><input name="field_of_study" value="Computer science or data science" required></label>
793
+ <fieldset class="field full">
794
  <span>Funding type &mdash; pick any</span>
795
  <div class="checkgroup">
796
  <label class="check"><input type="checkbox" name="funding_type" value="Scholarship" checked><span>Scholarship</span></label>
tests/test_ui_config.py CHANGED
@@ -1,4 +1,4 @@
1
- from src.ui import config_status
2
 
3
 
4
  def test_config_status_shape() -> None:
@@ -7,3 +7,7 @@ def test_config_status_shape() -> None:
7
  assert isinstance(status["live_research_enabled"], bool)
8
  assert isinstance(status["dataset_storage_enabled"], bool)
9
  assert isinstance(status["missing"], list)
 
 
 
 
 
1
+ from src.ui import FRONTEND_HTML, config_status
2
 
3
 
4
  def test_config_status_shape() -> None:
 
7
  assert isinstance(status["live_research_enabled"], bool)
8
  assert isinstance(status["dataset_storage_enabled"], bool)
9
  assert isinstance(status["missing"], list)
10
+
11
+
12
+ def test_funding_options_span_full_form_width() -> None:
13
+ assert '<fieldset class="field full">' in FRONTEND_HTML