Page MenuHomePhabricator

prefsectiontip for extra fields in user create
Closed, ResolvedPublic

Description

Author: pengi

Description:
Patch for /trunk repos, should work some other versions too.

Extensions can add extra fields for user creation through $template->addInputField.

An optional field for that function to be able add a help text, like email-help would be helpful.


Version: unspecified
Severity: enhancement

attachment usercreate.patch ignored as obsolete

Details

Reference
bz20404

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:47 PM
bzimport set Reference to bz20404.
bzimport added a subscriber: Unknown Object (MLST).

+function addInputItem( $name, $value, $type, $msg, $helptext=false ) {

Spaces around =

-$this->msgWiki( $inputItem['msg'] ) ?></label><?php
+$this->msg( $inputItem['msg'] ) ?></label><?php

Unrelated change?

pengi wrote:

Unrelated. Seems like a fix for another problem I failed to remove from the patch.

The msgWiki/msg-problem is that msgWiki adds <p> around the label, witch adds padding above the label.

pengi wrote:

Adds help text for extra fields in user create form.

This patch should be correct then.

Attached: