-
Notifications
You must be signed in to change notification settings - Fork 0
Create input form #26
Changes from all commits
9ac2894
8f6cb62
8886f23
0eefc68
0105455
c1cd94e
59fdc0d
4f1963b
c936eee
9e15b60
4e5f0c4
378c919
b4ae448
93d857d
e457dfa
75529d3
86fc943
f6cbf85
8cbdd47
08e3a68
bc89cfd
e631e43
c027bd6
e5e5e20
bc5fffa
5f90e7c
aaf2fbd
435c6be
c0b697f
345152e
a1477ac
7a7d527
dbeb73b
4d969ff
e91b0fc
a91ad93
9dc7561
9447ba6
fc9494c
69f704f
0e19a40
575f490
648e8c2
cb83a6d
7abe861
2695e50
18e74ee
87fde39
0dcd3ee
909e0a9
a9678a1
447a083
51ec344
7990ff9
ded703b
cb5edd7
dec680d
b47d07d
7e379ca
fd33994
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{% extends "_base.html" %} | ||
{% block main %} | ||
<h1>Registration of equipment and books.</h1> | ||
<form action="/search" method="get"> | ||
<label for="query">Enter one of the following keywords: keyword, ISBN code, or ASIN code.</label> | ||
<input type="text" name="query" id="query" placeholder="サーカスTC" /> | ||
<input type="submit" value="Search" /> | ||
</form> | ||
{% endblock %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% extends "_base.html" %} | ||
{% block main %} | ||
<h1>Search Result</h1> | ||
{% if not message %} | ||
<h2>Keyword: {{ keyword }}</h2> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Flash messageを実装したらそもそもTopページにリダイレクトさせてからのメッセージ表示とかにできたらと思っているのだけど、 現時点では、messageが表示される = Keyword がない というない状況で、 {% if not message %}
<h2>Keyword: {{ keyword }}</h2>
{% endif %} の場合分けをするのはどうでしょうか? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. そうですね。その方が良いですね。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. いや、むしろ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. なるほどですね。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. こちらもそうですね。 |
||
{% endif %} | ||
{% endblock %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これでは
index.html
のtitle
がSearch Result for
になります。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
そうですね。
context_dict
のsubtitle
を変更するコードを追記します。