initial commit
commit
28740970b9
@ -0,0 +1,2 @@
|
||||
faculty_media_report
|
||||
prompts
|
||||
@ -0,0 +1,25 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/http/cgi"
|
||||
"os"
|
||||
|
||||
"faculty_media_report/pages"
|
||||
)
|
||||
|
||||
func handler(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
fmt.Fprint(w, pages.MainFormPage)
|
||||
}
|
||||
|
||||
func main() {
|
||||
if os.Getenv("GATEWAY_INTERFACE") != "" {
|
||||
cgi.Serve(http.HandlerFunc(handler))
|
||||
} else {
|
||||
http.HandleFunc("/", handler)
|
||||
fmt.Fprintln(os.Stderr, "Running in standalone mode on :8080")
|
||||
http.ListenAndServe(":8080", nil)
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,83 @@
|
||||
package pages
|
||||
|
||||
const MainFormPage = `<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Faculty Media Report</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/rivet-core@2/css/rivet.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<main class="rvt-container-xl rvt-p-top-xxl rvt-p-bottom-xxl">
|
||||
<h1 class="rvt-ts-xxl rvt-m-bottom-xxl">Faculty Media Report</h1>
|
||||
|
||||
<form method="post">
|
||||
|
||||
<!-- Scholarship -->
|
||||
<fieldset class="rvt-fieldset rvt-m-bottom-xxl">
|
||||
<legend class="rvt-ts-xl rvt-m-bottom-sm">Scholarship</legend>
|
||||
<p class="rvt-m-bottom-lg">Please enter citations for recent publications here:</p>
|
||||
|
||||
<div class="rvt-m-bottom-lg">
|
||||
<label class="rvt-label" for="scholarship-citation">Citation:</label>
|
||||
<textarea class="rvt-input" id="scholarship-citation" name="scholarship_citation" rows="5"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="rvt-m-bottom-lg">
|
||||
<label class="rvt-label" for="scholarship-hyperlink">Hyperlink (if available):</label>
|
||||
<input class="rvt-input" type="url" id="scholarship-hyperlink" name="scholarship_hyperlink">
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<!-- Talks and Activities -->
|
||||
<fieldset class="rvt-fieldset rvt-m-bottom-xxl">
|
||||
<legend class="rvt-ts-xl rvt-m-bottom-sm">Talks and Activities</legend>
|
||||
<p class="rvt-m-bottom-lg">Please tell us about any recent talks and activities here:</p>
|
||||
|
||||
<div class="rvt-m-bottom-lg">
|
||||
<label class="rvt-label" for="talks-title">Title:</label>
|
||||
<input class="rvt-input" type="text" id="talks-title" name="talks_title">
|
||||
</div>
|
||||
|
||||
<div class="rvt-m-bottom-lg">
|
||||
<label class="rvt-label" for="talks-description">Description:</label>
|
||||
<textarea class="rvt-input" id="talks-description" name="talks_description" rows="5"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="rvt-m-bottom-lg">
|
||||
<label class="rvt-label" for="talks-hyperlink">Hyperlink (if available):</label>
|
||||
<input class="rvt-input" type="url" id="talks-hyperlink" name="talks_hyperlink">
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<!-- Media Appearances -->
|
||||
<fieldset class="rvt-fieldset rvt-m-bottom-xxl">
|
||||
<legend class="rvt-ts-xl rvt-m-bottom-sm">Media Appearances</legend>
|
||||
<p class="rvt-m-bottom-lg">Please tell us about any recent media appearances you have made:</p>
|
||||
|
||||
<div class="rvt-m-bottom-lg">
|
||||
<label class="rvt-label" for="media-title">Title:</label>
|
||||
<input class="rvt-input" type="text" id="media-title" name="media_title">
|
||||
</div>
|
||||
|
||||
<div class="rvt-m-bottom-lg">
|
||||
<label class="rvt-label" for="media-description">Description:</label>
|
||||
<textarea class="rvt-input" id="media-description" name="media_description" rows="5"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="rvt-m-bottom-lg">
|
||||
<label class="rvt-label" for="media-hyperlink">Hyperlink (if available):</label>
|
||||
<input class="rvt-input" type="url" id="media-hyperlink" name="media_hyperlink">
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<button class="rvt-button" type="submit">Review and Submit</button>
|
||||
|
||||
</form>
|
||||
</main>
|
||||
|
||||
<script src="https://unpkg.com/rivet-core@2/js/rivet.min.js"></script>
|
||||
</body>
|
||||
</html>`
|
||||
|
||||
Loading…
Reference in New Issue