From dce01ac19a0298388089ce4297a44ef2aa2c4c46 Mon Sep 17 00:00:00 2001 From: Naeem Model Date: Thu, 9 May 2024 20:22:45 +0000 Subject: Revamp Shiny app --- inst/app/templates/content/data/enter-data.html | 13 ++++++++ .../content/data/enter-data/bulk-entry.html | 37 ++++++++++++++++++++ .../content/data/enter-data/single-entry.html | 39 ++++++++++++++++++++++ inst/app/templates/content/data/view-data.html | 19 +++++++++++ 4 files changed, 108 insertions(+) create mode 100644 inst/app/templates/content/data/enter-data.html create mode 100644 inst/app/templates/content/data/enter-data/bulk-entry.html create mode 100644 inst/app/templates/content/data/enter-data/single-entry.html create mode 100644 inst/app/templates/content/data/view-data.html (limited to 'inst/app/templates/content/data') diff --git a/inst/app/templates/content/data/enter-data.html b/inst/app/templates/content/data/enter-data.html new file mode 100644 index 0000000..621c785 --- /dev/null +++ b/inst/app/templates/content/data/enter-data.html @@ -0,0 +1,13 @@ +
+
+ {{ htmlTemplate("templates/content/data/enter-data/single-entry.html") }} +
+
+
Data plot
+ {{ plotOutput(outputId = "data_plot") }} +
+
+
+
+ {{ htmlTemplate("templates/content/data/enter-data/bulk-entry.html") }} +
diff --git a/inst/app/templates/content/data/enter-data/bulk-entry.html b/inst/app/templates/content/data/enter-data/bulk-entry.html new file mode 100644 index 0000000..82a3ccf --- /dev/null +++ b/inst/app/templates/content/data/enter-data/bulk-entry.html @@ -0,0 +1,37 @@ +

Bulk entry

+ + + +
+
+

Enter one or more rows in the following format:

+

+ Dataset name,Time units,Case counts +

+

+ Time units must be one of + Days or + Weeks, and + Case counts + must be a comma-separated list of one or more non-negative integers. +

+

Example:

+

+ Montreal,Days,1,2,3,4,5,6,7,8,9,19
+ Ottawa,Weeks,1,2,3,4,5,6,7,8,9,19
+ Toronto,Days,1,2,3,4,5,6,7,8,9,19 +

+
+
+ +
+ + +
+ + diff --git a/inst/app/templates/content/data/enter-data/single-entry.html b/inst/app/templates/content/data/enter-data/single-entry.html new file mode 100644 index 0000000..9f249d9 --- /dev/null +++ b/inst/app/templates/content/data/enter-data/single-entry.html @@ -0,0 +1,39 @@ +

Single entry

+ +
+ + + +
+ +
+ + + +
+ +
+ +
+
+ +
+
+ +
+
+
+ + diff --git a/inst/app/templates/content/data/view-data.html b/inst/app/templates/content/data/view-data.html new file mode 100644 index 0000000..52f1e85 --- /dev/null +++ b/inst/app/templates/content/data/view-data.html @@ -0,0 +1,19 @@ +

Data table

+ +
+ {{ DT::dataTableOutput(outputId = "data_table") }} +
+ + + + + + + Export table + -- cgit v1.2.3