v0.6.2 - Fixed various bugs

This commit is contained in:
frederikpyt 2020-08-11 09:55:01 +02:00
parent e5cf13c4c2
commit 81af08ef24
3 changed files with 12 additions and 3 deletions

View File

@ -10,7 +10,7 @@
@csrf @csrf
<span>Ris el. Ros?</span> <span>Ris el. Ros?</span>
<select name="suggestion_form" class="mb-2" required> <select name="suggestion_form" class="mb-2" required>
<option>Ros</option> <option selected>Ros</option>
<option>Ris</option> <option>Ris</option>
</select> </select>
<textarea name="message" placeholder="Skriv Ris/Ros besked her" style="resize: vertical;" required></textarea> <textarea name="message" placeholder="Skriv Ris/Ros besked her" style="resize: vertical;" required></textarea>

View File

@ -47,7 +47,7 @@
</div> </div>
@endforeach @endforeach
@else @else
<p style="margin: 0 18px;">{{__('msg.dereringenvejledninger')}}.</p> <p style="margin: 0 18px; margin-bottom: auto; text-align: center">{{__('msg.dereringenvejledninger')}}.</p>
@endif @endif
<button onclick="window.history.back()" style="margin-top: auto;" class="btn btn-sde-blue text-white mb-1 mt-1" >{{__('msg.tilbage')}}</button> <button onclick="window.history.back()" style="margin-top: auto;" class="btn btn-sde-blue text-white mb-1 mt-1" >{{__('msg.tilbage')}}</button>
</main> </main>

View File

@ -9,7 +9,7 @@
<link type="text/css" rel="stylesheet" href="{{ mix("/css/webapp.css") }}"> <link type="text/css" rel="stylesheet" href="{{ mix("/css/webapp.css") }}">
@endif @endif
</head> </head>
<body> <body onresize="setMain()" onload="setMain()">
<header class="row align-items-center" id="header"> <header class="row align-items-center" id="header">
@if(request()->cookie("mode") == "dark") @if(request()->cookie("mode") == "dark")
<img class="w-50" id="sdeLogo" src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" onclick="location.href = '{{ route("root.index") }}';" alt="Syddansk Erhvervsskole"> <img class="w-50" id="sdeLogo" src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" onclick="location.href = '{{ route("root.index") }}';" alt="Syddansk Erhvervsskole">
@ -107,5 +107,14 @@
}; };
</script> </script>
@endif @endif
<script type="text/javascript">
function setMain() {
var main = document.getElementsByTagName("main")[0];
var header = document.getElementsByTagName("header")[0];
main.style.minHeight = 'calc(100% - ' + header.clientHeight + 'px)';
}
</script>
</body> </body>
</html> </html>