-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make multiple namespaces configurable and added to the form
- Loading branch information
1 parent
ba50c74
commit 27bfe34
Showing
4 changed files
with
64 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { config } from './config'; | ||
|
||
export const generateForm = () => (` | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Import Manuscript</title> | ||
</head> | ||
<body> | ||
<form action="/input" method="post"> | ||
<h2>Manuscript Data</h2> | ||
<label for="manuscript-data">Input JSON:</label> | ||
<textarea id="manuscript-data" style="width: 600px; height: 280px;" name="manuscript[data]" required> | ||
{ | ||
"id": "[ID]", | ||
"versions": [] | ||
} | ||
</textarea> | ||
<br/> | ||
<label for="temporal_namespace">Select a Namespace:</label> | ||
<select id="temporal_namespace" name="temporalNamespace" required> | ||
<option value="" disabled selected hidden>-- Please choose an option --</option> | ||
${config.temporalNamespace.split(',').map((ns) => `<option value="${ns}">${ns}</option>`).join('\n')} | ||
</select> | ||
<br><br> | ||
<button type="submit">Submit</button> | ||
</form> | ||
</body> | ||
</html> | ||
`); |
This file was deleted.
Oops, something went wrong.