Skip to content

Commit 1d6e68e

Browse files
committed
add delete view.
1 parent 9de458a commit 1d6e68e

33 files changed

+1045
-44
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{{#extend 'styles'}}
2+
<style>
3+
.example-modal .modal {
4+
position: relative;
5+
top: auto;
6+
bottom: auto;
7+
right: auto;
8+
left: auto;
9+
display: block;
10+
z-index: 1;
11+
}
12+
13+
.example-modal .modal {
14+
background: transparent !important;
15+
}
16+
</style>
17+
{{/extend}}
18+
<!-- Content Header (Page header) -->
19+
<section class="content-header">
20+
<h1>
21+
Delete AdminMember
22+
</h1>
23+
<ol class="breadcrumb">
24+
<li><a href="{{{url 'home'}}}"><i class="fa fa-dashboard"></i> Home</a></li>
25+
<li><a href="{{{url 'adminMember'}}}">List</a></li>
26+
<li class="active">Delete AdminMember</li>
27+
</ol>
28+
</section>
29+
30+
<!-- Main content -->
31+
<form action="{{{url 'adminMember.destroy'}}}" method="post">
32+
<input type="hidden" class="form-control" name="id" value="{{obj.AdminMemberID}}"/>
33+
<section class="content">
34+
<div class="example-modal">
35+
<div class="modal modal-danger">
36+
<div class="modal-dialog">
37+
<div class="modal-content">
38+
<div class="modal-header">
39+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
40+
<span aria-hidden="true">&times;</span></button>
41+
<h4 class="modal-title">Model Delete</h4>
42+
</div>
43+
<div class="modal-body">
44+
<p>{{obj.AdminMemberID}} will delete.</p>
45+
</div>
46+
<div class="modal-footer">
47+
<button type="button" class="btn btn-outline pull-left" data-dismiss="modal" onclick="location.href = '{{{url "adminMember"}}}'">Close</button>
48+
<button type="submit" class="btn btn-outline">Delete</button>
49+
</div>
50+
</div>
51+
<!-- /.modal-content -->
52+
</div>
53+
<!-- /.modal-dialog -->
54+
</div>
55+
<!-- /.modal -->
56+
</div>
57+
<!-- /.example-modal -->
58+
</section>
59+
<!-- /.content -->
60+
</form>

server/views/adminMember/edit.handlebars

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!-- Content Header (Page header) -->
22
<section class="content-header">
33
<h1>
4-
New AdminMember
5-
<small>Create a new AdminMember</small>
4+
Edit AdminMember
5+
<small>Edit AdminMember</small>
66
</h1>
77
<ol class="breadcrumb">
88
<li><a href="{{{url 'home'}}}"><i class="fa fa-dashboard"></i> Home</a></li>
99
<li><a href="{{{url 'adminMember'}}}">List</a></li>
10-
<li class="active">New AdminMember</li>
10+
<li class="active">Edit AdminMember</li>
1111
</ol>
1212
</section>
1313
<!-- Main content -->
@@ -168,6 +168,9 @@
168168
<button type="button" class="btn btn-default" onclick="location.href = '{{{url "adminMember"}}}'">
169169
Cancel
170170
</button>
171+
<button type="button" class="btn pull-right btn-warning" onclick="location.href = '{{url "adminMember" }}/delete/{{obj.AdminMemberID}}'">
172+
Delete
173+
</button>
171174
</div>
172175
<!-- /.box-footer -->
173176
</form>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{{#extend 'styles'}}
2+
<style>
3+
.example-modal .modal {
4+
position: relative;
5+
top: auto;
6+
bottom: auto;
7+
right: auto;
8+
left: auto;
9+
display: block;
10+
z-index: 1;
11+
}
12+
13+
.example-modal .modal {
14+
background: transparent !important;
15+
}
16+
</style>
17+
{{/extend}}
18+
<!-- Content Header (Page header) -->
19+
<section class="content-header">
20+
<h1>
21+
Delete Coupon
22+
</h1>
23+
<ol class="breadcrumb">
24+
<li><a href="{{{url 'home'}}}"><i class="fa fa-dashboard"></i> Home</a></li>
25+
<li><a href="{{{url 'coupon'}}}">List</a></li>
26+
<li class="active">Delete Coupon</li>
27+
</ol>
28+
</section>
29+
30+
<!-- Main content -->
31+
<form action="{{{url 'coupon.destroy'}}}" method="post">
32+
<input type="hidden" class="form-control" name="id" value="{{obj.CouponID}}"/>
33+
<section class="content">
34+
<div class="example-modal">
35+
<div class="modal modal-danger">
36+
<div class="modal-dialog">
37+
<div class="modal-content">
38+
<div class="modal-header">
39+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
40+
<span aria-hidden="true">&times;</span></button>
41+
<h4 class="modal-title">Model Delete</h4>
42+
</div>
43+
<div class="modal-body">
44+
<p>{{obj.CouponID}} will delete.</p>
45+
</div>
46+
<div class="modal-footer">
47+
<button type="button" class="btn btn-outline pull-left" data-dismiss="modal" onclick="location.href = '{{{url "coupon"}}}'">Close</button>
48+
<button type="submit" class="btn btn-outline">Delete</button>
49+
</div>
50+
</div>
51+
<!-- /.modal-content -->
52+
</div>
53+
<!-- /.modal-dialog -->
54+
</div>
55+
<!-- /.modal -->
56+
</div>
57+
<!-- /.example-modal -->
58+
</section>
59+
<!-- /.content -->
60+
</form>

server/views/coupon/edit.handlebars

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!-- Content Header (Page header) -->
22
<section class="content-header">
33
<h1>
4-
New Coupon
5-
<small>Create a new Coupon</small>
4+
Edit Coupon
5+
<small>Edit Coupon</small>
66
</h1>
77
<ol class="breadcrumb">
88
<li><a href="{{{url 'home'}}}"><i class="fa fa-dashboard"></i> Home</a></li>
99
<li><a href="{{{url 'coupon'}}}">List</a></li>
10-
<li class="active">New Coupon</li>
10+
<li class="active">Edit Coupon</li>
1111
</ol>
1212
</section>
1313
<!-- Main content -->
@@ -154,6 +154,9 @@
154154
<button type="button" class="btn btn-default" onclick="location.href = '{{{url "coupon"}}}'">
155155
Cancel
156156
</button>
157+
<button type="button" class="btn pull-right btn-warning" onclick="location.href = '{{url "coupon" }}/delete/{{obj.CouponID}}'">
158+
Delete
159+
</button>
157160
</div>
158161
<!-- /.box-footer -->
159162
</form>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{{#extend 'styles'}}
2+
<style>
3+
.example-modal .modal {
4+
position: relative;
5+
top: auto;
6+
bottom: auto;
7+
right: auto;
8+
left: auto;
9+
display: block;
10+
z-index: 1;
11+
}
12+
13+
.example-modal .modal {
14+
background: transparent !important;
15+
}
16+
</style>
17+
{{/extend}}
18+
<!-- Content Header (Page header) -->
19+
<section class="content-header">
20+
<h1>
21+
Delete Coupon Member
22+
</h1>
23+
<ol class="breadcrumb">
24+
<li><a href="{{{url 'home'}}}"><i class="fa fa-dashboard"></i> Home</a></li>
25+
<li><a href="{{{url 'couponMember'}}}">List</a></li>
26+
<li class="active">Delete Coupon Member</li>
27+
</ol>
28+
</section>
29+
30+
<!-- Main content -->
31+
<form action="{{{url 'couponMember.destroy'}}}" method="post">
32+
<input type="hidden" class="form-control" name="id" value="{{obj.CouponMemberID}}"/>
33+
<section class="content">
34+
<div class="example-modal">
35+
<div class="modal modal-danger">
36+
<div class="modal-dialog">
37+
<div class="modal-content">
38+
<div class="modal-header">
39+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
40+
<span aria-hidden="true">&times;</span></button>
41+
<h4 class="modal-title">Model Delete</h4>
42+
</div>
43+
<div class="modal-body">
44+
<p>{{obj.CouponMemberID}} will delete.</p>
45+
</div>
46+
<div class="modal-footer">
47+
<button type="button" class="btn btn-outline pull-left" data-dismiss="modal" onclick="location.href = '{{{url "couponMember"}}}'">Close</button>
48+
<button type="submit" class="btn btn-outline">Delete</button>
49+
</div>
50+
</div>
51+
<!-- /.modal-content -->
52+
</div>
53+
<!-- /.modal-dialog -->
54+
</div>
55+
<!-- /.modal -->
56+
</div>
57+
<!-- /.example-modal -->
58+
</section>
59+
<!-- /.content -->
60+
</form>

server/views/couponMember/edit.handlebars

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!-- Content Header (Page header) -->
22
<section class="content-header">
33
<h1>
4-
New CouponMember
5-
<small>Create a new CouponMember</small>
4+
Edit CouponMember
5+
<small>Edit CouponMember</small>
66
</h1>
77
<ol class="breadcrumb">
88
<li><a href="{{{url 'home'}}}"><i class="fa fa-dashboard"></i> Home</a></li>
99
<li><a href="{{{url 'couponMember'}}}">List</a></li>
10-
<li class="active">New Coupon Member</li>
10+
<li class="active">Edit Coupon Member</li>
1111
</ol>
1212
</section>
1313
<!-- Main content -->
@@ -110,6 +110,9 @@
110110
<button type="button" class="btn btn-default" onclick="location.href = '{{{url "couponMember"}}}'">
111111
Cancel
112112
</button>
113+
<button type="button" class="btn pull-right btn-warning" onclick="location.href = '{{url "coupon" }}/delete/{{obj.CouponMemberID}}'">
114+
Delete
115+
</button>
113116
</div>
114117
<!-- /.box-footer -->
115118
</form>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{{#extend 'styles'}}
2+
<style>
3+
.example-modal .modal {
4+
position: relative;
5+
top: auto;
6+
bottom: auto;
7+
right: auto;
8+
left: auto;
9+
display: block;
10+
z-index: 1;
11+
}
12+
13+
.example-modal .modal {
14+
background: transparent !important;
15+
}
16+
</style>
17+
{{/extend}}
18+
<!-- Content Header (Page header) -->
19+
<section class="content-header">
20+
<h1>
21+
Delete Game Event
22+
</h1>
23+
<ol class="breadcrumb">
24+
<li><a href="{{{url 'home'}}}"><i class="fa fa-dashboard"></i> Home</a></li>
25+
<li><a href="{{{url 'gameEvent'}}}">List</a></li>
26+
<li class="active">Edit Game Event </li>
27+
</ol>
28+
</section>
29+
30+
<!-- Main content -->
31+
<form action="{{{url 'gameEvent.destroy'}}}" method="post">
32+
<input type="hidden" class="form-control" name="id" value="{{obj.GameEventID}}"/>
33+
<section class="content">
34+
<div class="example-modal">
35+
<div class="modal modal-danger">
36+
<div class="modal-dialog">
37+
<div class="modal-content">
38+
<div class="modal-header">
39+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
40+
<span aria-hidden="true">&times;</span></button>
41+
<h4 class="modal-title">Model Delete</h4>
42+
</div>
43+
<div class="modal-body">
44+
<p>{{obj.GameEventID}} will delete.</p>
45+
</div>
46+
<div class="modal-footer">
47+
<button type="button" class="btn btn-outline pull-left" data-dismiss="modal" onclick="location.href = '{{{url "gameEvent"}}}'">Close</button>
48+
<button type="submit" class="btn btn-outline">Delete</button>
49+
</div>
50+
</div>
51+
<!-- /.modal-content -->
52+
</div>
53+
<!-- /.modal-dialog -->
54+
</div>
55+
<!-- /.modal -->
56+
</div>
57+
<!-- /.example-modal -->
58+
</section>
59+
<!-- /.content -->
60+
</form>

server/views/gameEvent/edit.handlebars

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!-- Content Header (Page header) -->
22
<section class="content-header">
33
<h1>
4-
New Game Event
5-
<small>Create a new game event </small>
4+
Edit Game Event
5+
<small>Edit game event </small>
66
</h1>
77
<ol class="breadcrumb">
88
<li><a href="{{{url 'home'}}}"><i class="fa fa-dashboard"></i> Home</a></li>
99
<li><a href="{{{url 'gameEvent'}}}">List</a></li>
10-
<li class="active">New Game Event </li>
10+
<li class="active">Edit Game Event </li>
1111
</ol>
1212
</section>
1313
<!-- Main content -->
@@ -156,6 +156,9 @@
156156
<button type="button" class="btn btn-default" onclick="location.href = '{{{url "gameEvent"}}}'">
157157
Cancel
158158
</button>
159+
<button type="button" class="btn pull-right btn-warning" onclick="location.href = '{{url "gameEvent" }}/delete/{{obj.GameEventID}}'">
160+
Delete
161+
</button>
159162
</div>
160163
<!-- /.box-footer -->
161164
</form>

0 commit comments

Comments
 (0)