Add Template
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- frontend, full-stack
调研方向
从 Template-uri 标签页开始,查看 Add Template 和 Add Terms Modal 的 Figma 参考,然后跟踪 create-template 流程,依次经过 Header、Body、Footer、preview、rich-text modal 和 save redirect。完成的标准是用户可以创建和编辑 template,在禁用字段中看到组织数据,成功保存,并访问指定的链接。
由索引模型根据 Issue 内容生成。
描述
- #380
User Story
As a user, I want to create contract templates, so that I can efficiently and easily generate volunteer contracts.
Description
This feature enables users to create contract templates for volunteers. The page is divided into three sections: Header, Body, and Footer.
The Header section includes a text containing key details about NGO such as the official name, address, CUI, the name of the legal representative, and their role within the organization.
The Body section contains the contract terms, featuring a text field, an "Add Text" button, and a hyperlink.
The Footer section includes the NGO's name, the legal representative's name, and empty fields for the volunteer's information and, if applicable, the legal representative for volunteers under 16.
All three sections collectively form the contract, which is displayed as a unified preview.
Actors
- Web Users
Preconditions
- User must be logged in and have navigated to the 'Template-uri' tab
Main Flow (create template)
- User clicks the "Creeaza template" button to start creating a new template.
- The system displays the 'Creeaza Template' page, divided into Header, Body, and Footer sections.
- The system auto-fills the Header and Footer sections with the organization's data.
- In the Preview Panel, the user can hover over highlighted text to view a tooltip.
- User clicks the 'Adauga text' button from the Body section.
- The system opens a modal with a rich text editor.
- User enters the contract terms and clicks 'Salveaza modificarile' button.
- The system updates the Body section with the entered text.
- User clicks the 'Salveaza' button.
- The system saves the template and redirects the user to the 'Template-uri' page.
Business Rules
- The contract template must maintain a structure with a Header, Body, and Footer.
- The Header and Footer sections inputs should be prefilled with the NGO data present in the NGO Hub application.
- The Header and Footer sections inputs must be disabled.
- The Body section must display an "Editeaza text" button when content has been added.
Acceptance Criteria
- The rich text editor should provides a full range of formatting options (bold, italic, underline, alignment, lists, etc.).
- Clicking the "Editeaza text" button in Body section should open the content in a modal for modifications.
- The contract template can be successfully created and saved after completing all steps.
- The 'Vezi profilul organizatiei' hyperlink must redirect user to the NGO Profile in NGO Hub application.
- The 'Afla Mai Multe', 'Trimite feedback-ul tau,' and 'contract de voluntariat' hyperlinks must direct users to the correct URLs, which will be provided at a later time.
Additional Information
- 主要语言
- TypeScript
- 星标
- 3
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
code4romania/vic 的其他 Issue
-
bug :bug:
难度 3/5 1-2 天 新手友好度 35/100
code4romania/vic#463 ·
-
难度 1/5 1 小时以内 新手友好度 20/100
code4romania/vic#461 ·
-
bug :bug: web-app
难度 3/5 1-2 天 新手友好度 35/100
code4romania/vic#458 ·
-
bug :bug: mobile-app
难度 3/5 1-2 天 新手友好度 45/100
code4romania/vic#457 ·
-
bug :bug: web-app
难度 2/5 1-3 小时 新手友好度 45/100
code4romania/vic#456 ·
相似的 Issue
-
check:passed streams:add
难度 1/5 1 小时以内 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
GiganticMinecraft/seichi-playguide#183 ·
维护者通常 1 天内回复
-
area: core complexity: easy impact: medium
难度 2/5 1-3 小时 新手友好度 86/100
ueberdosis/tiptap#8668 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
longbridge/nsh#804 ·
维护者通常 1 天内回复