Added date/username in the form

This commit is contained in:
ludger 2018-09-27 10:17:17 +02:00
parent acfe9bd8fd
commit 813bbaaa44
2 changed files with 21 additions and 2 deletions

View File

@ -181,8 +181,15 @@
<form accept-charset="UTF-8" action="" method="post"> <form accept-charset="UTF-8" action="" method="post">
<input id="ratings-hidden" name="rating" type="hidden"> <input id="ratings-hidden" name="rating" type="hidden">
<textarea class="form-control animated" cols="50" id="new-review" name="comment" placeholder="Enter your review here..." rows="5"></textarea> <p class="text-right date"></p>
<div class="form-group">
<label for="usr">Name:</label>
<input type="text" class="form-control" placeholder="Name..." id="usr">
</div>
<div class="form-group">
<label for="usr">Review:</label>
<input class="form-control animated" cols="50" id="new-review" name="comment" placeholder="Enter your review here..." rows="5">
</div>
<div class="text-right"> <div class="text-right">
<div class="stars starrr" data-rating="0"></div> <div class="stars starrr" data-rating="0"></div>

View File

@ -55,4 +55,16 @@ $(function(){
}); });
var d = new Date();
var month = d.getMonth()+1;
var day = d.getDate();
var output =
((''+day).length<2 ? '0' : '') + day + '/' +
((''+month).length<2 ? '0' : '') + month + '/' +
d.getFullYear();
$(".date").append(output);
}); });