Description
On the src/main/webapp/WEB-INF/views/series/info.html
page we should add another form to add catalog numbers. It should have inputs for numbers (just a text input) and a catalog name. Also there should be a submit button. Here are examples that can be helpful:
-
List of catalogs:
mystamps/src/main/webapp/WEB-INF/views/site/index.html
Lines 174 to 184 in 366f099
-
Catalog numbers:
mystamps/src/main/webapp/WEB-INF/views/series/add.html
Lines 378 to 399 in 366f099
When we submit a form, it should send a PATCH request to API /series/{id}
with
[
{ "op": "add", "path": "/michel_numbers", "value": [ "1", "2", "3"] }
]
and reload a page on success. The value of path
depends on a value of catalog name -- for Michel catalog, we use "/michel_numbers" but for Scott it should be "/scott_numbers" and so on.
It should show an error when server returns an error. Note that there can be 2 type of errors -- general (for a whole form) and validation error (for a particular field).
Part of #1339