login/edit: generic setup of input attributes
[minimedit.git] / login / edit.php
index 2b043cc24a1f427e68e2a5504ea088023141a884..99afb13a62b745cfe08068c340815aa480cb1ff4 100644 (file)
@@ -217,12 +217,7 @@ foreach ($cols as $col => &$colconf) {
                        'value'       => htmlspecialchars(@$colconf['value']),
                        'placeholder' => "Niet ingesteld",
                        'readonly'    => empty($colconf['target']),
-                       'pattern'     => @$colconf['pattern'] ?: FALSE,
-                       'size'        => @$colconf['size'] ?: FALSE,
-               ];
-               if (@$colconf['type'] == 'file') {
-                       $attrs['accept'] = "image/jpeg";
-               }
+               ] + (@$colconf['attr'] ?: []);
 
                print '<input';
                foreach ($attrs as $attr => $attrval) {