1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-26 04:24:07 +00:00

Add info card with instructions for how to get the PRD number.

This commit is contained in:
Markus Birth 2018-07-20 02:15:52 +02:00
parent 335e665c66
commit dbef575009
2 changed files with 30 additions and 0 deletions

View File

@ -86,6 +86,28 @@ td.fullonly {
color: #88f; color: #88f;
} }
.info-card {
background-color: #ffe;
border-radius: 4px 4px;
width: 80%;
margin: 20px auto;
padding: 12px;
}
.info-card div {
font-size: 1.1em;
}
.info-card .title {
font-weight: bold;
font-size: 1.3em;
padding-bottom: 0.5em;
}
.info-card .material-icons {
vertical-align: top;
}
.release-card { .release-card {
background-color: white; background-color: white;
border-radius: 12px 4px; border-radius: 12px 4px;

View File

@ -68,6 +68,14 @@ foreach ($families as $i => $family) {
foreach ($allVars as $family => $models) { foreach ($allVars as $family => $models) {
echo '<div id="family-' . strtolower($family) . '" class="panel" role="tabpanel">'; echo '<div id="family-' . strtolower($family) . '" class="panel" role="tabpanel">';
echo ' <div class="mdc-card info-card">';
echo ' <div class="mdc-typography--body1">';
echo ' <div class="title"><span class="material-icons">info</span> How to find your CU Reference (PRD) number</div>';
echo ' <div>Open your phone dialer and enter this code: <tt>*#837837#</tt> (<tt>*#TESTER#</tt>).</div>';
echo ' </div>';
echo ' </div>';
foreach ($models as $model => $variants) { foreach ($models as $model => $variants) {
echo '<h2>' . $family . ' ' . $model . '</h2>' . PHP_EOL; echo '<h2>' . $family . ' ' . $model . '</h2>' . PHP_EOL;
$allVersions = $db->getAllVersionsForModel($model); $allVersions = $db->getAllVersionsForModel($model);