From 66a14b73fe3347a7b6b3e6d8f5eda9965022c9e6 Mon Sep 17 00:00:00 2001 From: Kim Nguyen Date: Thu, 19 Apr 2018 11:01:19 -0400 Subject: [PATCH] Add ids for accessible labels. --- src/Form/ImportForm.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Form/ImportForm.php b/src/Form/ImportForm.php index ce5975f..2f10f9f 100644 --- a/src/Form/ImportForm.php +++ b/src/Form/ImportForm.php @@ -22,6 +22,7 @@ public function init() 'attributes' => [ 'required' => true, 'class' => 'chosen-select', + 'id' => 'library-item-set', ], ]); @@ -50,6 +51,7 @@ public function init() ], 'attributes' => [ 'required' => true, + 'id' => 'library-id', ], ]); @@ -60,6 +62,9 @@ public function init() 'label' => 'Collection Key', // @translate 'info' => 'Not required. The collection key can be found on the Zotero library page by looking at the URL when looking at the collection.', // @translate ], + 'attributes' => [ + 'id' => 'collection-key', + ], ]); $this->add([ @@ -69,6 +74,9 @@ public function init() 'label' => 'API Key', // @translate 'info' => 'Required for non-public libraries and file import.', // @translate ], + 'attributes' => [ + 'id' => 'api-key', + ], ]); $this->add([ @@ -78,6 +86,9 @@ public function init() 'label' => 'Import Files', // @translate 'info' => 'The API key is required to import files.', // @translate ], + 'attributes' => [ + 'id' => 'import-files', + ], ]); $this->add([ @@ -88,6 +99,9 @@ public function init() 'label' => 'Added after', // @translate 'info' => 'Only import items that have been added to Zotero after this datetime.', // @translate ], + 'attributes' => [ + 'id' => 'added-after', + ], ]); $inputFilter = $this->getInputFilter();