admin: Refactor exercice page to include regexp validator

This commit is contained in:
nemunaire 2018-11-18 18:48:23 +01:00 committed by Pierre-Olivier Mercier
commit 06dcd0c2b7
3 changed files with 87 additions and 70 deletions

View file

@ -8,12 +8,14 @@ const indextpl = `<!DOCTYPE html>
<link href="/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<link href="/css/glyphicon.css" type="text/css" rel="stylesheet" media="screen">
<style>
samp.cksum {
.cksum {
overflow-x: hidden;
text-overflow: ellipsis;
max-width: 20vw;
max-width: 100%;
display: inline-block;
vertical-align: middle;
word-wrap: normal;
white-space: nowrap;
}
</style>
<base href="{{.urlbase}}">