-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNew Text Document.txt
More file actions
142 lines (131 loc) · 8.39 KB
/
New Text Document.txt
File metadata and controls
142 lines (131 loc) · 8.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
@model DocumentData
<div class="container">
<h2>Form สำหรับ @Model.Title</h2>
<form method="post" asp-action="SubmitForm">
<input type="hidden" name="documentId" value="@Model.Id" />
<!-- สร้างแท็บ -->
<ul class="nav nav-tabs" id="documentTabs">
@foreach (var category in Model.Categories.Select((value, index) => new { value, index }))
{
<li class="nav-item">
<a class="nav-link @(category.index == 0 ? "active" : "")" data-bs-toggle="tab" href="#tab-@category.index">
@category.value.Category
</a>
</li>
}
</ul>
<!-- เนื้อหาแท็บ -->
<div class="tab-content mt-3">
@foreach (var category in Model.Categories.Select((value, index) => new { value, index }))
{
<div class="tab-pane fade @(category.index == 0 ? "show active" : "")" id="tab-@category.index">
@if (category.value.Category == "Software Requirement")
{
@* <label>Software Requirement</label>
<input type="text" name="fieldNames" value="Software Version" hidden />
<input type="text" name="fieldValues" /> *@
<div class="container">
<h1 class="title">Software Requirement Specification</h1>
<div class="content-container">
<p class="subtitle">Please fill out the necessary information below:</p>
<!-- Table for requirements -->
<div class="table-container">
<table>
<thead>
<tr>
<th>Item</th>
<th>Description</th>
<th>Material No. / Serial No.</th>
</tr>
</thead>
<tbody>
<tr>
<td>Test System</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td><input type="text" class="form-control" placeholder=""></td>
</tr>
<tr>
<td>Adapter / Fixture</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td><input type="text" class="form-control" placeholder=""></td>
</tr>
<tr>
<td>Test Software</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td><input type="text" class="form-control" placeholder=""></td>
</tr>
<tr>
<td>Test System / Fixture Calibration</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td></td> <!-- No Material No./Serial No. column here -->
</tr>
<tr>
<td>Test Profile</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td></td> <!-- No Material No./Serial No. column here -->
</tr>
<tr>
<td>Work Location</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td></td> <!-- No Material No./Serial No. column here -->
</tr>
<tr>
<td>Test Developer/Engineer</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td></td> <!-- No Material No./Serial No. column here -->
</tr>
<tr>
<td>Test Specification</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td><input type="text" class="form-control" placeholder=""></td>
</tr>
<tr>
<td>Serial no. of DUT used</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td><input type="text" class="form-control" placeholder=""></td>
</tr>
<tr>
<td>Firmware</td>
<td><input type="text" class="form-control" placeholder=""></td>
<td><input type="text" class="form-control" placeholder=""></td>
</tr>
<tr>
<td>Date</td>
<td><input type="date" class="form-control"></td>
<td></td> <!-- No Material No./Serial No. column here -->
</tr>
<tr>
<td>Remark</td>
<td><textarea class="form-control" rows="3" placeholder=""></textarea></td>
<td></td> <!-- No Material No./Serial No. column here -->
</tr>
<tr>
<td>Files</td>
<td><input type="file" class="form-control"></td>
<td></td> <!-- No Material No./Serial No. column here -->
</tr>
</tbody>
</table>
</div>
</div>
</div>
}
else if (category.value.Category == "Hardware Requirement")
{
<label>Hardware Requirement</label>
<input type="text" name="fieldNames" value="Hardware Spec" hidden />
<input type="text" name="fieldValues" />
}
else if (category.value.Category == "Test equipment Requirement")
{
<label>Test equipment Requirement</label>
<input type="text" name="fieldNames" value="Test equipment Requirement" hidden />
<input type="text" name="fieldValues" />
}
</div>
}
</div>
<!-- ปุ่ม Submit นอก Tab -->
<button type="submit" class="btn btn-primary mt-3">Submit</button>
</form>
</div>