parent
c0df55c079
commit
c9d12cf8ac
|
@ -10,9 +10,9 @@ $requirements = $form->getRequirements();
|
|||
<tbody>
|
||||
<?php foreach ($requirements as $requirement): ?>
|
||||
<tr>
|
||||
<td><?= $requirement->title; ?></td>
|
||||
<td><?= $requirement->description; ?></td>
|
||||
<td class="<?= $requirement->state === Requirements::STATE_OK ? 'fulfilled' : (
|
||||
<td><h2><?= $requirement->title; ?></h2></td>
|
||||
<td style="width: 50%"><?= $requirement->description; ?></td>
|
||||
<td class="state <?= $requirement->state === Requirements::STATE_OK ? 'fulfilled' : (
|
||||
$requirement->state === Requirements::STATE_OPTIONAL ? 'not-available' : 'missing'
|
||||
); ?>"><?= $requirement->message; ?></td>
|
||||
</tr>
|
||||
|
|
|
@ -103,17 +103,33 @@
|
|||
}
|
||||
|
||||
#setup table.requirements {
|
||||
margin-top: -1em;
|
||||
margin-left: -1em;
|
||||
border-spacing: 1em;
|
||||
border-collapse: separate;
|
||||
|
||||
td {
|
||||
&.fulfilled {
|
||||
background-color: green;
|
||||
h2 {
|
||||
margin: 0 1em 0 0;
|
||||
}
|
||||
|
||||
&.not-available {
|
||||
background-color: yellow;
|
||||
}
|
||||
&.state {
|
||||
color: white;
|
||||
padding: 0.4em;
|
||||
border-radius: 0.2em;
|
||||
|
||||
&.missing {
|
||||
background-color: red;
|
||||
&.fulfilled {
|
||||
background-color: #4fad4b;
|
||||
}
|
||||
|
||||
&.not-available {
|
||||
color: black;
|
||||
background-color: #e8ec70;
|
||||
}
|
||||
|
||||
&.missing {
|
||||
background-color: #fd7770;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue