login/edit: text input width to fit longer names
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 8 Jul 2018 15:26:46 +0000 (17:26 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 9 Jul 2018 23:52:57 +0000 (01:52 +0200)
login/edit.php

index 6f3eff211002b818a0f3e698eacb31a3c05d4869..46e2447e34e5e5bfc63634a3e01e86130dc9b4bf 100644 (file)
@@ -18,11 +18,13 @@ $cols = [
                'label' => 'volledige naam',
                'explain' => "Alleen zichtbaar voor andere leden.",
                'filter' => ["\n", '; '],
+               'size' => 30,
        ],
        'email' => [
                'label' => 'e-mailadres',
                'type' => 'email',
                'explain' => "Voor contact van of met deze site. Wij zullen dit nooit vrij- of doorgeven.",
+               'size' => 30,
        ],
        'avatar' => [
                'label' => 'portretfoto',
@@ -52,6 +54,7 @@ $cols = [
                'value' => $user['name'],
                'target' => NULL,
                'pattern' => "[a-z0-9-]+",
+               'size' => 10,
        ],
 ] + $cols;
 
@@ -249,6 +252,7 @@ foreach ($cols as $col => &$colconf) {
                        'placeholder' => "Niet ingesteld",
                        'readonly'    => empty($colconf['target']),
                        'pattern'     => @$colconf['pattern'] ?: FALSE,
+                       'size'        => @$colconf['size'] ?: FALSE,
                ];
                if (@$colconf['type'] == 'file') {
                        $attrs['accept'] = "image/jpeg";