submission design update

This commit is contained in:
Daniel 2014-04-18 22:33:28 +02:00
commit ced8857623
2 changed files with 8 additions and 3 deletions

View file

@ -12,9 +12,9 @@
</p> </p>
<?php endif ?> <?php endif ?>
<?php if(is_null($submission)) : ?> <?php if(is_null($submission)) : ?>
<form method="post" enctype="multipart/form-data"> <form method="post" enctype="multipart/form-data" class="submit">
<input type="file" name="answers" required="required" accept="<?=implode(',', array_map(function($m) { return $m['mimetype']; }, $mimetypes))?>" /><br /> <input type="file" name="answers" required="required" accept="<?=implode(',', array_map(function($m) { return $m['mimetype']; }, $mimetypes))?>" />
<?=_('Allowed file types')?>: <p><?=_('Allowed file types')?>:</p>
<ul> <ul>
<?php foreach($mimetypes as &$mimetype) : ?> <?php foreach($mimetypes as &$mimetype) : ?>
<li><?=$mimetype['mimetype']?> (<?=_('max.')?> <?=$numberFormatter->format(round($mimetype['size']/(1024*1024),2))?>MiB)</li> <li><?=$mimetype['mimetype']?> (<?=_('max.')?> <?=$numberFormatter->format(round($mimetype['size']/(1024*1024),2))?>MiB)</li>

View file

@ -242,6 +242,11 @@ input[type="submit"][disabled]{text-shadow:1px 2px #d48c4e;background:#f9ac69;bo
.mchoice input[type=checkbox]{width:8%;float:left;margin-top:6px} .mchoice input[type=checkbox]{width:8%;float:left;margin-top:6px}
.mchoice label{width:92%;float:right} .mchoice label{width:92%;float:right}
.submit{padding:15px;background:#eae8e4;border-radius:3px;margin-bottom:15px}
.submit p{margin:15px 0 0 0;font-weight:bold}
.submit ul{list-style-type:square;margin-left:20px}
.error{padding:2px 5px;border:1px solid #850000;background:#ebd3d3;color:#850000;border-radius:3px}
.crossword table{width:100%;max-width:800px;border-spacing:2px;border-collapse:separate} .crossword table{width:100%;max-width:800px;border-spacing:2px;border-collapse:separate}
.crossword td{background:#d7d4cf;padding:1px} .crossword td{background:#d7d4cf;padding:1px}
.crossword input[type=text]{text-align:center;height:26px;width:100%;min-width:8px;max-width:40px;margin:0;padding:0;border:none;text-transform:uppercase} .crossword input[type=text]{text-align:center;height:26px;width:100%;min-width:8px;max-width:40px;margin:0;padding:0;border:none;text-transform:uppercase}