質問編集履歴
1
html file was added
test
CHANGED
File without changes
|
test
CHANGED
@@ -107,3 +107,47 @@
|
|
107
107
|
requestpricelog = models.TextField(default='')
|
108
108
|
|
109
109
|
```
|
110
|
+
|
111
|
+
openpricerequesttoowner.html
|
112
|
+
```pytho
|
113
|
+
{% extends "registration/base.html" %}
|
114
|
+
{% block content %}
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<!------------------post placed------------->
|
119
|
+
<div class="post block">
|
120
|
+
<br>
|
121
|
+
<br>
|
122
|
+
<h2 class="Send price request to owner" >{{post.title}}</h2>
|
123
|
+
<br>
|
124
|
+
<br>
|
125
|
+
<h3>Current Price: {{post.price}} $.</h3>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<br>
|
129
|
+
<br>
|
130
|
+
<p>Price request history</p>
|
131
|
+
<br>
|
132
|
+
<br>
|
133
|
+
{{post.requestpricelog}}
|
134
|
+
<br>
|
135
|
+
|
136
|
+
<h3 class="subtitle">Price Change Request</h3>
|
137
|
+
<br>
|
138
|
+
<form action="." method="post" enctype="multipart/form-data"><!-- これは画像投稿よう-->
|
139
|
+
<!-- add photo function here later -->
|
140
|
+
{% csrf_token%}
|
141
|
+
{{form.as_p}}
|
142
|
+
<div class="field">
|
143
|
+
<div class="control">
|
144
|
+
<button class="button is-danger">Submit</button>
|
145
|
+
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
</form>
|
149
|
+
|
150
|
+
|
151
|
+
{% endblock %}
|
152
|
+
|
153
|
+
```
|