Better formular style

This commit is contained in:
Gregory Trolliet 2020-11-16 22:13:13 +01:00
parent baa592b81f
commit 69de37562f
3 changed files with 8 additions and 7 deletions

View File

@ -65,6 +65,10 @@ a {
height: 400px;
}
.cloud_words label:after {
content: ': ';
.cloud_words_input {
margin: 1em;
}
#cloud_words_submit {
display: block;
margin-top: 1em;
}

View File

@ -23,13 +23,10 @@ if (isset($_GET['id'])) {
<?php
for ($i=0;$i<$nbWords;$i++) {
$name = 'fword' . $i;
echo '<div>';
echo sprintf('<label for="%s">Mot %d</label>', $name, $i+1);
echo sprintf('<input type="text" id="%s" name="%s">', $name, $name);
echo '</div>';
echo sprintf('<input class="cloud_words_input" type="text" id="%s" name="%s" placeholder="Mot %d">', $name, $name, $i+1);
}
?>
<input type="submit" value="Submit">
<input id="cloud_words_submit" type="submit" value="Enregistrer">
</form>
<?php
} else {

BIN
test.db

Binary file not shown.