main
Last change
on this file was 705d6f5, checked in by ardit <ardit@…>, 2 days ago |
Commiting all files of project - 20250224
|
-
Property mode
set to
100644
|
File size:
1.9 KB
|
Line | |
---|
1 | @model List<db_tsh.Models.Package>
|
---|
2 |
|
---|
3 | <h2>Packages</h2>
|
---|
4 |
|
---|
5 | <table class="table">
|
---|
6 | <thead>
|
---|
7 | <tr>
|
---|
8 | <th>Title</th>
|
---|
9 | <th>Total</th>
|
---|
10 | <th>Valuet</th>
|
---|
11 | <th>Actions</th>
|
---|
12 | </tr>
|
---|
13 | </thead>
|
---|
14 | <tbody>
|
---|
15 | @foreach (var package in Model)
|
---|
16 | {
|
---|
17 | <tr>
|
---|
18 | <form asp-action="Package" method="post">
|
---|
19 | <td><input type="text" name="Title" value="@package.Title" class="form-control" required /></td>
|
---|
20 | <td><input type="number" step="any" name="Total" value="@package.Total" class="form-control" required /></td>
|
---|
21 | <td><input type="text" name="Valuet" value="@package.Valuet" class="form-control" required /></td>
|
---|
22 | <td>
|
---|
23 | <input type="hidden" name="Code" value="@package.Code" />
|
---|
24 | <button type="submit" class="btn btn-success">Edit</button>
|
---|
25 | </td>
|
---|
26 | </form>
|
---|
27 | </tr>
|
---|
28 | }
|
---|
29 | </tbody>
|
---|
30 | </table>
|
---|
31 |
|
---|
32 | <!-- Form for adding a new package -->
|
---|
33 | <form asp-action="Package" method="post">
|
---|
34 | <h3>Add New Package</h3>
|
---|
35 | <table class="table">
|
---|
36 | <tr>
|
---|
37 | <td><input type="text" name="Title" placeholder="Title" class="form-control" required /></td>
|
---|
38 | <td><input type="number" step="any" name="Total" placeholder="Total" class="form-control" required /></td>
|
---|
39 | <td><input type="text" name="Valuet" placeholder="Valuet" class="form-control" required /></td>
|
---|
40 | <td>
|
---|
41 | <select name="TypePol" class="form-control" required>
|
---|
42 | <option value="1">Travel Health</option>
|
---|
43 | <option value="2">Property</option>
|
---|
44 | <option value="3">Auto Pol</option>
|
---|
45 | </select>
|
---|
46 | </td>
|
---|
47 | <td>
|
---|
48 | <button type="submit" class="btn btn-primary">Add Package</button>
|
---|
49 | </td>
|
---|
50 | </tr>
|
---|
51 | </table>
|
---|
52 | </form>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.