HFP-1897 Set author as default role, change placeholder text for change

pull/52/head
Oliver Tacke 2018-05-28 18:01:28 +02:00
parent 3deda27f9b
commit 00deb02aa7
1 changed files with 6 additions and 2 deletions

View File

@ -4259,8 +4259,12 @@ class H5PContentValidator {
'name' => 'authorRole', 'name' => 'authorRole',
'type' => 'select', 'type' => 'select',
'label' => $this->h5pF->t("Author's role"), 'label' => $this->h5pF->t("Author's role"),
'default' => 'Originator', 'default' => 'Author',
'options' => array( 'options' => array(
(object) array(
'value' => 'Editor',
'label' => $this->h5pF->t('Author')
),
(object) array( (object) array(
'value' => 'Editor', 'value' => 'Editor',
'label' => $this->h5pF->t('Editor') 'label' => $this->h5pF->t('Editor')
@ -4312,7 +4316,7 @@ class H5PContentValidator {
'name' => 'log', 'name' => 'log',
'type' => 'textarea', 'type' => 'textarea',
'label' => $this->h5pF->t('Description of change'), 'label' => $this->h5pF->t('Description of change'),
'placeholder' => $this->h5pF->t('Add a description of your change'), 'placeholder' => $this->h5pF->t('Photo cropped, text changed, etc.'),
'optional' => TRUE 'optional' => TRUE
) )
) )