This commit is contained in:
Felix Schulze 2019-09-23 23:07:07 +02:00
parent 7ca0784789
commit 96276f9f37

View File

@ -5,22 +5,23 @@ function createCourse($dname, $nameId, $points, $disabled) {
$disClass = ""; $disClass = "";
} }
echo " echo "
<div style='display:flex;'> <div style='display:flex;'>
<li class='mdl-list__item mdl-list__item--two-line' style='overflow:visible;padding: 16px 24px 16px 16px;width:175px'> <li class='mdl-list__item mdl-list__item--two-line' style='overflow:visible;padding: 16px 24px 16px 16px;width:175px'>
<span class='mdl-list__item-primary-content'> <span class='mdl-list__item-primary-content'>
<span id='$nameId'>$dname</span> <span id='$nameId'>$dname</span>
<span class='points mdl-list__item-sub-title' value=''+points+''>$points Poäng</span> <span class='points mdl-list__item-sub-title' value=''+points+''>$points Poäng</span>
</span></li> </span>
<input class='points' style='display:none;' type='text' value='$points'> </li>
<input class='subjectName' style='display:none;' type='text' value='$nameId'> <input class='points' style='display:none;' type='text' value='$points'>
<select class='grade'> <input class='subjectName' style='display:none;' type='text' value='$nameId'>
<option value='0'>F</option> <select class='grade'>
<option selected value='10'>E</option> <option value='0'>F</option>
<option value='12.5'>D</option> <option selected value='10'>E</option>
<option value='15'>C</option> <option value='12.5'>D</option>
<option value='17.5'>B</option> <option value='15'>C</option>
<option value='20'>A</option> <option value='17.5'>B</option>
</select> <option value='20'>A</option>
<a $disabled class='$disClass mdl-button mdl-js-button mdl-button--accent mdl-js-ripple-effect' style='margin:16px 5px'>Ta Bort</a> </select>
</div>"; <a $disabled class='$disClass mdl-button mdl-js-button mdl-button--accent mdl-js-ripple-effect' style='margin:16px 5px'>Ta Bort</a>
</div>";
} }