From: Mischa POSLAWSKY Date: Sun, 8 Jul 2018 15:26:46 +0000 (+0200) Subject: login/edit: text input width to fit longer names X-Git-Tag: v3.5~16 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/d7ed602000b56b2473af8a925b15bd0bab67bf45 login/edit: text input width to fit longer names --- diff --git a/login/edit.php b/login/edit.php index 6f3eff2..46e2447 100644 --- a/login/edit.php +++ b/login/edit.php @@ -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";