diff options
author | Naeem Model <me@nmode.ca> | 2024-06-09 16:01:51 +0000 |
---|---|---|
committer | Naeem Model <me@nmode.ca> | 2024-06-09 16:01:51 +0000 |
commit | 9fd931aeeba4ab7bdede1a625f64e7024c2b55aa (patch) | |
tree | b59967df497f898e9b8f7e1cd0e345ed0ff71e36 /inst/app/templates/content/estimators/add-estimators/components | |
parent | 887c57c423ca8318d482a9f85514b3d6f281a696 (diff) |
Update Shiny app
- Remove template/logic for single data entry
- Change 'Add estimators' to 'About estimators'; adding estimators and viewing estimates are now done in the same tab
- Swap rows and columns in estimates table (estimators as row names, datasets as column names)
- Add a separate column for the serial interval to the estimates table
- Add plots for daily and weekly data using the Plotly library
- Remove italics from the subscript in all occurences of 'R_0'
- Fix code/text formatting
Diffstat (limited to 'inst/app/templates/content/estimators/add-estimators/components')
-rw-r--r-- | inst/app/templates/content/estimators/add-estimators/components/mu.html | 20 | ||||
-rw-r--r-- | inst/app/templates/content/estimators/add-estimators/components/panel.html | 21 |
2 files changed, 0 insertions, 41 deletions
diff --git a/inst/app/templates/content/estimators/add-estimators/components/mu.html b/inst/app/templates/content/estimators/add-estimators/components/mu.html deleted file mode 100644 index f25a1c8..0000000 --- a/inst/app/templates/content/estimators/add-estimators/components/mu.html +++ /dev/null @@ -1,20 +0,0 @@ -<!-- Serial interval label and help tooltip. --> -<label class="form-label" for="mu_{{ id }}"> - Serial interval (μ) - <sup data-bs-toggle="tooltip" data-bs-placement="right" - data-bs-title="The serial interval is the time between when an infected individual (the infector) becomes - symptomatic, to when another individual (who is infected by the infector) becomes symptomatic."> - [?] - </sup> -</label> -<div class="input-group"> - <!-- Serial interval input field. --> - <input name="mu_{{ id }}" class="form-control" type="text"> - <!-- Days/weeks dropdown. --> - <select name="mu_{{ id }}_units" class="form-select"> - <option value="Days" selected>Days</option> - <option value="Weeks">Weeks</option> - </select> -</div> -<!-- Warning text for incorrect values. --> -<small id="mu_{{ id }}_warn" class="form-text text-primary shiny-text-output"></small> diff --git a/inst/app/templates/content/estimators/add-estimators/components/panel.html b/inst/app/templates/content/estimators/add-estimators/components/panel.html deleted file mode 100644 index b1e0378..0000000 --- a/inst/app/templates/content/estimators/add-estimators/components/panel.html +++ /dev/null @@ -1,21 +0,0 @@ -<div class="accordion-item"> - <h2 class="accordion-header"> - <button class="accordion-button collapsed" type="button" - data-bs-toggle="collapse" data-bs-target="#{{ id }}"> - <h4>{{ header }}</h4> - </button> - </h2> - <div id="{{ id }}" class="accordion-collapse collapse" data-bs-parent="#estimators-accordion"> - <div class="accordion-body"> - <p>Reference: <a href="{{ reference_url }}" target="_blank"><em>{{ reference_label }}</em></a></p> - <p>{{ htmlTemplate(paste0("templates/content/estimators/add-estimators/descriptions/", id, ".html")) }}</p> - <h5>Parameters</h5> - <form class="my-3"> - {{ htmlTemplate(paste0("templates/content/estimators/add-estimators/parameters/", id, ".html")) }} - </form> - <button id="add_{{ id }}" type="button" class="btn btn-outline-primary btn-sm action-button"> - <span class="glyphicon glyphicon-plus"></span> Add - </button> - </div> - </div> -</div> |