Skip to content

Instantly share code, notes, and snippets.

@linxlad
Last active April 15, 2016 13:01
Show Gist options
  • Save linxlad/9c96055902b6c0f8ad0f7e39a0f88c25 to your computer and use it in GitHub Desktop.
Save linxlad/9c96055902b6c0f8ad0f7e39a0f88c25 to your computer and use it in GitHub Desktop.
Form part of the JSON API tester.
<html>
<head>
<title>{{ .Title }}</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<style>
.alert.alert-danger {
text-align: center;
}
</style>
</head>
<body>
{{ .Error }}
<div class="container">
<form action="/processor" method="post">
<div class="form-group">
<label for="url">Url</label>
<input type="text" class="form-control" id="url" name="url" placeholder="Example: http://dev-pdf-generation">
</div>
<div class="form-group">
<label for="json">JSON</label>
<textarea class="form-control" id="json" name="json" rows="8"></textarea>
</div>
<div class="checkbox">
<label>
<input name="download" is="download" type="checkbox"> Download file
</label>
</div>
<button type="submit" class="btn btn-default">Process</button>
</form>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment