[ENG-6946] Ability to approve registration requests for approval #10972
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Admin should be able to approve registration requests for approval that are within approval time limit (48h from initiation date)
Changes
Templates, views, approve_registrations script logic was split to be reused
![image](https://private-user-images.githubusercontent.com/194797550/412485845-9e5ada69-ebff-46b0-b00e-0c55cabae110.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzM2MDMsIm5iZiI6MTczOTQ3MzMwMywicGF0aCI6Ii8xOTQ3OTc1NTAvNDEyNDg1ODQ1LTllNWFkYTY5LWViZmYtNDZiMC1iMDBlLTBjNTVjYWJhZTExMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QxOTAxNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05YjRjODdkZjM1MTgyMDRiMjIxMmI2ZjRhYjViZDA4MTU3Y2E2ODk1M2RlMjkwZjgxODE4ZjVhODQxMTM4N2MxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.J7mnP55nNpJKGRwmfc-k_3KgVmZl4M1uNPB-23hPLBA)
Also added missing pagination for Registrations related tabs below
Ticket
https://openscience.atlassian.net/jira/software/c/projects/ENG/boards/145?assignee=712020%3A7c7368dc-40cb-475f-bae8-b07a8bd2dd6c&selectedIssue=ENG-6946