-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
51 lines (39 loc) · 1.19 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(dplyr)
library(quadrangle)
library(magick)
# Define UI for input fielads and image
shinyUI(fluidPage(
# Application title
titlePanel("Fuel PASS ID Creator"),
# sidebar for inputs
sidebarLayout(
sidebarPanel(
fileInput(inputId = "qr", label = "Insert your QR code"),
textInput(inputId = "name", label = "Insert your name"),
textInput(inputId = "telephone", label = "Insert your contact number"),
radioButtons(inputId = "rb", "Fuel Type",
choiceNames = list(
"Petrol", "Diesel"
),
choiceValues = list(
"Petrol", "Diesel"
)),
actionButton(inputId = "createimage", label = "Create your ID"),
br(), br(),
downloadButton('downloadImage', 'Download your ID card')
),
# Show the image
mainPanel(
imageOutput("image2")
)
)
))