Bootstrap theme and form validation on message entry.
This commit is contained in:
17
dist/www/header.tpl
vendored
17
dist/www/header.tpl
vendored
@@ -3,6 +3,23 @@
|
||||
<TITLE>Magicka BBS</TITLE>
|
||||
<link rel="stylesheet" type="text/css" href="@@WWW_URL@@static/style.css">
|
||||
<meta charset="utf-8">
|
||||
<script language='javascript'>
|
||||
function validate () {
|
||||
if(document.getElementById('recipient').value=="") {
|
||||
alert("To can not be empty.");
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById('subject').value=="") {
|
||||
alert("Subject can not be empty");
|
||||
return false;
|
||||
}
|
||||
if(document.getElementById('body').value=="") {
|
||||
alert("Can't send an empty message!");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<div class="header">
|
||||
|
Reference in New Issue
Block a user