notepage.vm
Home
/
azkaban-web-server /
src /
main /
resources /
azkaban /
webapp /
servlet /
velocity /
notepage.vm
#*
* Copyright 2017 LinkedIn, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*#
<!DOCTYPE html>
<html lang="en">
<head>
#parse("azkaban/webapp/servlet/velocity/style.vm")
#parse("azkaban/webapp/servlet/velocity/javascript.vm")
<link rel="stylesheet" type="text/css" href="${context}/css/jquery-ui-1.10.1.custom.css"/>
<link rel="stylesheet" type="text/css" href="${context}/css/jquery-ui.css"/>
<script type="text/javascript" src="${context}/js/jqueryui/jquery-ui-1.10.1.custom.js"></script>
<script type="text/javascript" src="${context}/js/azkaban/view/note.js"></script>
<script type="text/javascript">
var contextURL = "${context}";
var currentTime = ${currentTime};
var timezone = "${timezone}";
var errorMessage = null;
var successMessage = null;
</script>
</head>
<body>
<script type="text/javascript">
function enableBanner() {
localStorage.removeItem("dismissBanner");
}
</script>
<style type="text/css">
.show-and-hide-true {
display: none;
}
</style>
#set ($current_page="notes")
#parse ("azkaban/webapp/servlet/velocity/nav.vm")
#if ($errorMsg)
#parse ("azkaban/webapp/servlet/velocity/errormsg.vm")
#else
<div class="az-page-header">
<div class="container-full">
<h1>Notification System</h1>
</div>
</div>
<div class="container">
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="control-label col-sm-3">Type: </label>
<div class="col-sm-6">
<div class="row show-and-hide-content">
<div class="col-sm-4">
<label class="radio-inline">
<input type="radio" name='note-type' value="Warning">Warning
</label>
</div>
<div class="col-sm-4">
<label class="radio-inline">
<input type="radio" name='note-type' value="Action Required">Action Required
</label>
</div>
</div>
</div>
</div> <!-- /.form-group -->
<div class="form-group">
<label for="firstName" class="col-sm-3 control-label">Message: </label>
<div class="col-sm-6">
<input type="text" id="message" placeholder="Message" class="form-control" autofocus>
</div>
</div>
<div class="form-group">
<label for="email" class="col-sm-3 control-label">Redirect: </label>
<div class="col-sm-9">
<input type="text" id="url" placeholder="URL" class="form-control">
</div>
</div>
<div class="form-group">
<div class="col-sm-3 col-sm-offset-3">
<button type="submit" id="submit-button" class="btn btn-primary btn-block"
onclick="enableBanner()">Submit Note
</button>
</div>
<div class="col-sm-2 col-sm-offset-4">
<button type="submit" id="clear-button" class="btn btn-warning btn-block"
onclick="enableBanner()">Clear Note
</button>
</div>
</div>
</form> <!-- /form -->
</div> <!-- ./container -->
#end
</body>
</html>