Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
db movie
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
During summer vacation, Gitlab will be restart frequently. Use it carefully.
Show more breadcrumbs
ryujungsik
db movie
Commits
9d9f1a56
Commit
9d9f1a56
authored
Dec 13, 2020
by
ryujungsik
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
a65a2bd1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
myrent.html
+40
-0
40 additions, 0 deletions
myrent.html
with
40 additions
and
0 deletions
myrent.html
0 → 100644
+
40
−
0
View file @
9d9f1a56
{% extends "index.html" %}
{% block content %}
<div
class=
"container"
>
<h2>
내 대여
</h2>
<table
data-toggle=
"table"
>
<thead>
<tr>
<th>
주문번호
</th>
<th>
주문자 ID
</th>
<th>
대여상태
</th>
<th>
대여일
</th>
<th>
영화 번호
</th>
</tr>
</thead>
<tbody>
{% for order in orders %}
<tr>
<td>
{{order[0]}}
</td>
<td>
{{order[1]}}
</td>
{% if order[2] == 1 %}
<td><button
onclick=
"returnMovie(this)"
>
반납하기
</button></td>
{% else %}
<td>
반납 완료
</td>
{% endif %}
<td>
{{order[3]}}
</td>
<td>
{{order[4]}}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<script>
function
returnMovie
(
e
){
console
.
log
(
e
.
parentNode
.
parentNode
.
lastChild
.
innerText
);
const
movieID
=
e
.
parentNode
.
parentNode
.
lastChild
.
innerText
;
window
.
location
.
href
=
"
/returnMovie?movieID=
"
+
movieID
;
}
</script>
{% endblock %}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment