mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
f84130f9cd
Summary: Ref T4427. - New config option for labels, enabling, etc., but no UI/niceness yet. - When enabled, add a field. - Allow nonnegative values, including fractional values. - EditEngine is nice and Conduit / actions basically just work with a tiny bit of extra support code. Test Plan: - Edited points via "Edit". - Edited points via Conduit. - Edited points via stacked actions. - Tried to set "zebra" points. - Tried to set -1 points. Reviewers: chad Reviewed By: chad Maniphest Tasks: T4427 Differential Revision: https://secure.phabricator.com/D15220
17 lines
372 B
PHP
17 lines
372 B
PHP
<?php
|
|
|
|
final class PhabricatorPointsEditField
|
|
extends PhabricatorEditField {
|
|
|
|
protected function newControl() {
|
|
return new AphrontFormTextControl();
|
|
}
|
|
|
|
protected function newConduitParameterType() {
|
|
return new ConduitPointsParameterType();
|
|
}
|
|
|
|
protected function newCommentAction() {
|
|
return id(new PhabricatorEditEnginePointsCommentAction());
|
|
}
|
|
}
|