src/ngrest/plugins/Password.php
<?php
namespace luya\admin\ngrest\plugins;
use luya\admin\ngrest\base\Plugin;
/**
* Create a password input for a given field.
*
* @author Basil Suter <basil@nadar.io>
* @since 1.0.0
*/
class Password extends Plugin
{
public function renderList($id, $ngModel)
{
return $this->createListTag($ngModel);
}
public function renderCreate($id, $ngModel)
{
return $this->createFormTag('zaa-password', $id, $ngModel);
}
public function renderUpdate($id, $ngModel)
{
return $this->renderCreate($id, $ngModel);
}
}