Refactor admin labels to use shared HAML partial
What does this MR do and why?
In preparation for Add a delete button to the edit label pages (#345195 - closed) this MR refactors the admin label edit/create views to use a shared HAML partial that already existed. It then removes the old unused partial and fixes a few strings that were not translatable.
Screenshots or screen recordings
Create label
Before | After |
---|---|
Edit label
Before | After |
---|---|
How to set up and validate locally
- Sign in as an admin (
root
on GDK) - Navigate to
/admin/labels
- Click
New label
- Fill in the form and click
Create label
- Click the pencil button next to the newly created label
- Edit the fields and click
Save changes
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #345195 (closed)
Edited by Peter Hegman