Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/blog/PhameBlogEditController.php
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | $form = id(new AphrontFormView()) | ||||
id(new AphrontFormTextControl()) | id(new AphrontFormTextControl()) | ||||
->setLabel(pht('Name')) | ->setLabel(pht('Name')) | ||||
->setName('name') | ->setName('name') | ||||
->setValue($blog->getName()) | ->setValue($blog->getName()) | ||||
->setID('blog-name') | ->setID('blog-name') | ||||
->setError($e_name)) | ->setError($e_name)) | ||||
->appendChild( | ->appendChild( | ||||
id(new PhabricatorRemarkupControl()) | id(new PhabricatorRemarkupControl()) | ||||
->setUser($user) | |||||
->setLabel(pht('Description')) | ->setLabel(pht('Description')) | ||||
->setName('description') | ->setName('description') | ||||
->setValue($blog->getDescription()) | ->setValue($blog->getDescription()) | ||||
->setID('blog-description') | ->setID('blog-description') | ||||
->setUser($user) | ->setUser($user) | ||||
->setDisableMacros(true)) | ->setDisableMacros(true)) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormPolicyControl()) | id(new AphrontFormPolicyControl()) | ||||
->setUser($user) | ->setUser($user) | ||||
->setCapability(PhabricatorPolicyCapability::CAN_VIEW) | ->setCapability(PhabricatorPolicyCapability::CAN_VIEW) | ||||
->setPolicyObject($blog) | ->setPolicyObject($blog) | ||||
->setPolicies($policies) | ->setPolicies($policies) | ||||
->setName('can_view')) | ->setName('can_view')) | ||||
->appendChild( | ->appendChild( | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |