code4romania / code4romania/vic
Templates List
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
- [x] #382
- [x] #383
## User Story
As a user, I want to view a table listing all generated templates, so that I can review them as needed.
## Description
The page features a table that lists all generated templates, offering users an overview of template usage and details. The table includes columns for the template name, number of uses, last used date, creator, and addition date.
Additionally, users can download all templates at once by clicking the 'Descarcă toate' button.
## Actors
* Web Users
## Preconditions
* User must be logged in and navigates to the 'Contract' page
## Main Flow
1. User selects the 'Templates' tab.
2. The application displays a table listing all generated templates.
3. User can scroll through the table to view all available templates.
4. User is able to download all template at once
## Business Rules
1. The "Utilizari" column must reflect instances where the template was used to generate a contract with an accepted or rejected status.
2. The "Ultima utilizare" column should indicate the most recent date the template was used to generate a contract.
3. The "Creat de" column must be clickable and redirect users to the 'Arhiva actiuni' page, pre-filtered to show actions for the respective user.
## Acceptance Criteria
1. The table must accurately reflect all generated templates with up-to-date information in each column.
2. The Template-uri tab must display a table with the correct columns: Template Name, Number of Uses, Date of Last Use, Created By, and Addition Date.
3. Users should only be able to view and download templates that were created within their own organization.
4. Clicking the "Descarca toate" button should generate and download a zip file containing all existing templates.
## Additional Information
* Figma references [here](https://www.figma.com/design/fBxQarllPrE9kEt22bIBa1/VIC-(Management-de-voluntari)-%2F-ex.-TEO?node-id=11342-12426&t=vXKIFZ20AG7qBpoJ-4)
Contributor guide
Assessment
This issue has not been assessed yet.