text->e($user['name'] ?: $user['username']) ?> form->select( 'role-'.$user['id'], $roles, array('role-'.$user['id'] => $user['role']), array(), array('data-url="'.$this->url->href('ProjectPermission', 'changeUserRole', array('project_id' => $project['id'])).'"', 'data-id="'.$user['id'].'"'), 'project-change-role' ) ?> url->link(t('Remove'), 'ProjectPermission', 'removeUser', array('project_id' => $project['id'], 'user_id' => $user['id']), true) ?>
form->csrf() ?> form->hidden('project_id', array('project_id' => $project['id'])) ?> form->hidden('user_id', $values) ?> form->label(t('Name'), 'name') ?> form->text('name', $values, $errors, array( 'required', 'placeholder="'.t('Enter user name...').'"', 'title="'.t('Enter user name...').'"', 'data-dst-field="user_id"', 'data-search-url="'.$this->url->href('UserHelper', 'autocomplete').'"', ), 'autocomplete') ?> form->select('role', $roles, $values, $errors) ?>
text->e($group['name']) ?> form->select( 'role-'.$group['id'], $roles, array('role-'.$group['id'] => $group['role']), array(), array('data-url="'.$this->url->href('ProjectPermission', 'changeGroupRole', array('project_id' => $project['id'])).'"', 'data-id="'.$group['id'].'"'), 'project-change-role' ) ?> url->link(t('Remove'), 'ProjectPermission', 'removeGroup', array('project_id' => $project['id'], 'group_id' => $group['id']), true) ?>
form->csrf() ?> form->hidden('project_id', array('project_id' => $project['id'])) ?> form->hidden('group_id', $values) ?> form->hidden('external_id', $values) ?> form->label(t('Group Name'), 'name') ?> form->text('name', $values, $errors, array( 'required', 'placeholder="'.t('Enter group name...').'"', 'title="'.t('Enter group name...').'"', 'data-dst-field="group_id"', 'data-dst-extra-field="external_id"', 'data-search-url="'.$this->url->href('GroupHelper', 'autocomplete').'"', ), 'autocomplete') ?> form->select('role', $roles, $values, $errors) ?>

form->csrf() ?> form->hidden('id', array('id' => $project['id'])) ?> form->checkbox('is_everybody_allowed', t('Allow everybody to access to this project'), 1, $project['is_everybody_allowed']) ?>