Differential D9884 Diff 23734 src/applications/maniphest/controller/ManiphestBatchEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestBatchEditController.php
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | public function processRequest() { | ||||
$list = new ManiphestTaskListView(); | $list = new ManiphestTaskListView(); | ||||
$list->setTasks($tasks); | $list->setTasks($tasks); | ||||
$list->setUser($user); | $list->setUser($user); | ||||
$list->setHandles($handles); | $list->setHandles($handles); | ||||
$template = new AphrontTokenizerTemplateView(); | $template = new AphrontTokenizerTemplateView(); | ||||
$template = $template->render(); | $template = $template->render(); | ||||
$projects_source = new PhabricatorProjectDatasource(); | |||||
require_celerity_resource('maniphest-batch-editor'); | require_celerity_resource('maniphest-batch-editor'); | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'maniphest-batch-editor', | 'maniphest-batch-editor', | ||||
array( | array( | ||||
'root' => 'maniphest-batch-edit-form', | 'root' => 'maniphest-batch-edit-form', | ||||
'tokenizerTemplate' => $template, | 'tokenizerTemplate' => $template, | ||||
'sources' => array( | 'sources' => array( | ||||
'project' => array( | 'project' => array( | ||||
'src' => '/typeahead/common/projects/', | 'src' => $projects_source->getDatasourceURI(), | ||||
'placeholder' => pht('Type a project name...'), | 'placeholder' => $projects_source->getPlaceholderText(), | ||||
), | ), | ||||
'owner' => array( | 'owner' => array( | ||||
'src' => '/typeahead/common/searchowner/', | 'src' => '/typeahead/common/searchowner/', | ||||
'placeholder' => pht( | 'placeholder' => pht( | ||||
'Type a user name or "upforgrabs" to unassign...'), | 'Type a user name or "upforgrabs" to unassign...'), | ||||
'limit' => 1, | 'limit' => 1, | ||||
), | ), | ||||
'cc' => array( | 'cc' => array( | ||||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |