An actual minimum viable product, maybe? #11
|
@ -31,7 +31,7 @@
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand">RateMyCourse</a>
|
<a href="./landing.html" class="navbar-brand">RateMyCourse</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -144,8 +144,8 @@
|
||||||
<p class="text-right date"></p>
|
<p class="text-right date"></p>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="name_input">Name:</label>
|
<label for="name_input">Name*:</label>
|
||||||
<input type="text" class="form-control" placeholder="Name..." id="name_input">
|
<input type="text" class="form-control" placeholder="(optional)Name..." id="name_input">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -154,7 +154,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="content_input">Review:</label>
|
<label for="content_input">Review:</label>
|
||||||
<input class="form-control animated" id="content_input" name="content" placeholder="Enter your review here...">
|
<textarea class="form-control animated" rows="3" id="content_input" name="content" placeholder="Enter your review here..."></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand">RateMyCourse</a>
|
<a href="/" class="navbar-brand">RateMyCourse</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand">RateMyCourse</a>
|
<a href="./landing.html" class="navbar-brand">RateMyCourse</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<img src="http://dummyimage.com/60x60/666/ffffff&text=No+Image" class="img-rounded">
|
<span class="big-font glyphicon glyphicon-user img-rounded"></span>
|
||||||
<div class="review-block-name"><a href="#">Student</a></div>
|
<div class="review-block-name"><a href="#">Student</a></div>
|
||||||
<div class="review-block-date">{{ review.created_date|date:"j M, Y" }}<br/></div>
|
<div class="review-block-date">{{ review.created_date|date:"j M, Y" }}<br/></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -20,6 +20,9 @@
|
||||||
.fullcontainer h3 {
|
.fullcontainer h3 {
|
||||||
margin-bottom: 30px; }
|
margin-bottom: 30px; }
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
cursor: pointer; }
|
||||||
|
|
||||||
.box2 {
|
.box2 {
|
||||||
background: #EAEBEC;
|
background: #EAEBEC;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -100,4 +103,7 @@ h2 {
|
||||||
.search-form {
|
.search-form {
|
||||||
min-width: 60vw; }
|
min-width: 60vw; }
|
||||||
|
|
||||||
|
.big-font {
|
||||||
|
font-size: 25px; }
|
||||||
|
|
||||||
/*# sourceMappingURL=style.css.map */
|
/*# sourceMappingURL=style.css.map */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"mappings": "AACA,IAAI;EACF,QAAQ,EAAE,QAAQ;EAClB,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,0FAA0F;EACtG,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,MAAM;EAClB,aAAa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AAO;EACxB,MAAM,EAAC,iBAAiB;EACxB,OAAO,EAAC,IAAI;EACZ,aAAa,EAAC,GAAG;EACjB,aAAa,EAAC,IAAI;;AAEpB,kBAAkB;EAChB,SAAS,EAAC,IAAI;EACd,MAAM,EAAC,MAAM;;AAEf,kBAAkB;EAChB,SAAS,EAAC,IAAI;;AAEhB,kBAAkB;EAChB,SAAS,EAAC,IAAI;EACd,aAAa,EAAC,IAAI;;AAEpB,mBAAmB;EACjB,SAAS,EAAC,IAAI;EACd,WAAW,EAAC,GAAG;EACf,aAAa,EAAC,IAAI;;AAEpB,yBAAyB;EACvB,SAAS,EAAC,IAAI;;AAGhB,SAAU;EACR,kBAAkB,EAAE,WAAW;EAC/B,eAAe,EAAE,WAAW;EAC5B,UAAU,EAAE,WAAW;;AAGzB,MACA;EACE,MAAM,EAAE,MAAM;EACd,SAAS,EAAE,IAAI;EACf,KAAK,EAAE,OAAO;;AAOhB,eAAgB;EACd,UAAU,EAAE,kBAAkB;EAC9B,KAAK,EAAE,OAAO;EACd,gBAAgB,EAAE,OAAO;EACzB,MAAM,EAAE,GAAG;EACX,MAAM,EAAE,MAAM;;AAGhB,EAAG;EACD,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,GAAG;;AAElB,OAAQ;EACN,UAAU,EAAE,KAAK;;AAGnB,YAAY;EACV,SAAS,EAAC,IAAI;;AAGhB,SAAS;EACP,SAAS,EAAC,IAAI",
|
||||||
"sources": ["style.scss"],
|
"sources": ["style.scss"],
|
||||||
"names": [],
|
"names": [],
|
||||||
"file": "style.css"
|
"file": "style.css"
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.navbar-brand{
|
||||||
|
cursor:pointer
|
||||||
|
}
|
||||||
|
|
||||||
//Course page
|
//Course page
|
||||||
.box2 {
|
.box2 {
|
||||||
|
@ -120,3 +122,6 @@ h2 {
|
||||||
min-width:60vw;
|
min-width:60vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.big-font{
|
||||||
|
font-size:25px;
|
||||||
|
}
|
|
@ -42,6 +42,8 @@ $(function(){
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
let avg = parseFloat($(".rating-block").attr("data-rating")).toPrecision(1);
|
||||||
for(let i = 1; i<6; i++) {
|
for(let i = 1; i<6; i++) {
|
||||||
// Set 5 empty stars for review which you want to write
|
// Set 5 empty stars for review which you want to write
|
||||||
$(".stars").append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">\n" +
|
$(".stars").append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">\n" +
|
||||||
|
@ -51,7 +53,6 @@ $(function(){
|
||||||
|
|
||||||
// Set appropriate stars for each review
|
// Set appropriate stars for each review
|
||||||
$(".review-block-rate").each(function(){
|
$(".review-block-rate").each(function(){
|
||||||
alert($(this).attr("data-rating"));
|
|
||||||
if(i>$(this).attr("data-rating")){
|
if(i>$(this).attr("data-rating")){
|
||||||
$(this).append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">\n" +
|
$(this).append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">\n" +
|
||||||
" <span class=\"glyphicon glyphicon-star\" aria-hidden=\"true\"></span>\n" +
|
" <span class=\"glyphicon glyphicon-star\" aria-hidden=\"true\"></span>\n" +
|
||||||
|
@ -64,7 +65,6 @@ $(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
///Set the stars for the average
|
///Set the stars for the average
|
||||||
let avg = parseInt($(".rating-block").attr("data-rating")).toPrecision(1);
|
|
||||||
if(i>avg){
|
if(i>avg){
|
||||||
$(".rating-block").append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\">\n" +
|
$(".rating-block").append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\">\n" +
|
||||||
" <span class=\"glyphicon glyphicon-star\" aria-hidden=\"true\"></span>\n" +
|
" <span class=\"glyphicon glyphicon-star\" aria-hidden=\"true\"></span>\n" +
|
||||||
|
|
|
@ -20,6 +20,9 @@
|
||||||
.fullcontainer h3 {
|
.fullcontainer h3 {
|
||||||
margin-bottom: 30px; }
|
margin-bottom: 30px; }
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
cursor: pointer; }
|
||||||
|
|
||||||
.box2 {
|
.box2 {
|
||||||
background: #EAEBEC;
|
background: #EAEBEC;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -100,4 +103,7 @@ h2 {
|
||||||
.search-form {
|
.search-form {
|
||||||
min-width: 60vw; }
|
min-width: 60vw; }
|
||||||
|
|
||||||
|
.big-font {
|
||||||
|
font-size: 25px; }
|
||||||
|
|
||||||
/*# sourceMappingURL=style.css.map */
|
/*# sourceMappingURL=style.css.map */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"mappings": "AACA,IAAI;EACF,QAAQ,EAAE,QAAQ;EAClB,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,0FAA0F;EACtG,KAAK,EAAE,IAAI;EACX,UAAU,EAAE,MAAM;EAClB,aAAa,EAAE,CAAC;EAChB,UAAU,EAAC,MAAM;;AAEnB,cAAe;EACb,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,MAAM,EAAE,0BAA0B;EAClC,MAAM,EAAE,uBAAuB;EAC/B,MAAM,EAAE,kBAAkB;;AAE5B,iBAAiB;EACf,SAAS,EAAE,IAAI;;AAEjB,iBAAiB;EACf,aAAa,EAAE,IAAI;;AAOrB,KAAM;EACJ,UAAU,EAAE,OAAO;EACnB,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AC,IAAI;EACd,WAAW,EAAC,GAAG;EACf,aAAa,EAAC,IAAI;;AAEpB,yBAAyB;EACvB,SAAS,EAAC,IAAI;;AAGhB,SAAU;EACR,kBAAkB,EAAE,WAAW;EAC/B,eAAe,EAAE,WAAW;EAC5B,UAAU,EAAE,WAAW;;AAGzB,MACA;EACE,MAAM,EAAE,MAAM;EACd,SAAS,EAAE,IAAI;EACf,KAAK,EAAE,OAAO;;AAOhB,eAAgB;EACd,UAAU,EAAE,kBAAkB;EAC9B,KAAK,EAAE,OAAO;EACd,gBAAgB,EAAE,OAAO;EACzB,MAAM,EAAE,GAAG;EACX,MAAM,EAAE,MAAM;;AAGhB,EAAG;EACD,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,GAAG;;AAElB,OAAQ;EACN,UAAU,EAAE,KAAK;;AAGnB,YAAY;EACV,SAAS,EAAC,IAAI;;AAGhB,SAAS;EACP,SAAS,EAAC,IAAI",
|
||||||
"sources": ["style.scss"],
|
"sources": ["style.scss"],
|
||||||
"names": [],
|
"names": [],
|
||||||
"file": "style.css"
|
"file": "style.css"
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.navbar-brand{
|
||||||
|
cursor:pointer
|
||||||
|
}
|
||||||
|
|
||||||
//Course page
|
//Course page
|
||||||
.box2 {
|
.box2 {
|
||||||
|
@ -120,3 +122,6 @@ h2 {
|
||||||
min-width:60vw;
|
min-width:60vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.big-font{
|
||||||
|
font-size:25px;
|
||||||
|
}
|
|
@ -42,6 +42,8 @@ $(function(){
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
let avg = parseFloat($(".rating-block").attr("data-rating")).toPrecision(1);
|
||||||
for(let i = 1; i<6; i++) {
|
for(let i = 1; i<6; i++) {
|
||||||
// Set 5 empty stars for review which you want to write
|
// Set 5 empty stars for review which you want to write
|
||||||
$(".stars").append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">\n" +
|
$(".stars").append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">\n" +
|
||||||
|
@ -51,7 +53,6 @@ $(function(){
|
||||||
|
|
||||||
// Set appropriate stars for each review
|
// Set appropriate stars for each review
|
||||||
$(".review-block-rate").each(function(){
|
$(".review-block-rate").each(function(){
|
||||||
alert($(this).attr("data-rating"));
|
|
||||||
if(i>$(this).attr("data-rating")){
|
if(i>$(this).attr("data-rating")){
|
||||||
$(this).append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">\n" +
|
$(this).append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-xs\" aria-label=\"Left Align\">\n" +
|
||||||
" <span class=\"glyphicon glyphicon-star\" aria-hidden=\"true\"></span>\n" +
|
" <span class=\"glyphicon glyphicon-star\" aria-hidden=\"true\"></span>\n" +
|
||||||
|
@ -64,7 +65,6 @@ $(function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
///Set the stars for the average
|
///Set the stars for the average
|
||||||
let avg = parseInt($(".rating-block").attr("data-rating")).toPrecision(1);
|
|
||||||
if(i>avg){
|
if(i>avg){
|
||||||
$(".rating-block").append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\">\n" +
|
$(".rating-block").append("<button value=" + i + " id = \"star" + i +"\" type=\"button\" class=\"btn btn-default btn-grey btn-sm\" aria-label=\"Left Align\">\n" +
|
||||||
" <span class=\"glyphicon glyphicon-star\" aria-hidden=\"true\"></span>\n" +
|
" <span class=\"glyphicon glyphicon-star\" aria-hidden=\"true\"></span>\n" +
|
||||||
|
|
Loading…
Reference in New Issue