Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
フォームの入力内容の確認画面実装について
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sumiya Sakoda  
View profile   Translate to Translated (View Original)
 More options Jun 17, 5:24 am
From: Sumiya Sakoda <higeb...@gmail.com>
Date: Wed, 17 Jun 2009 02:24:52 -0700 (PDT)
Local: Wed, Jun 17 2009 5:24 am
Subject: フォームの入力内容の確認画面実装について
佐古田です。
表題の通りですがある催しに対して受付を行うフォームを作りたいと思っています。
Djangoを利用したフォームの利用はこれまでにも経験がありますが、今回はフォームの入力内容を確認してもらって最終的に送信するようにワンステッ
プかませたいと思っています。

そういった場合に以下のようなことが思い浮かびますが、もし他にいいアイデアあれば教えてください。

【その1】送信ボタンのonclickイベントに確認ダイアログを出させるようにjavascriptだけで制御する。
一番簡単にできますが、送信確認した後に入力内容の検証が行われるので不親切。

【その2】「その1」に対して入力内容の検証もすべてjavascriptにてまとめて行う。
ユーザーフレンドリーは多少改善されますが、Djangoの強力なvalidationの魅力が活かせない。

【その3】モデル側にdraftフラグを設けておき最初の入力後の送信で一度DBに書き込み、確認後の送信でdraftフラグをFalseにする。
一番現実的なところかなと思っております。しかしviewの実装がくどくなりそうな気がしております。
まだ試してみてないのであれですけどsave(commit=False)の結果を渡してやれば少なくともDBへの書き込みはなくdraftフラグも要
らないのかなという気もしてきました。

いずれにせよ「ユーザの入力」「入力内容の確認」「データの送信」というった流れはよくありますので何か定型的なパターンがあるのかなと思って質問させ
ていただいた次第です。
Djangoのバージョンは1.0です。

以上、よろしくお願いします。


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tsuyuki makoto  
View profile   Translate to Translated (View Original)
 More options Jun 17, 11:18 am
From: tsuyuki makoto <mtsuy...@gmail.com>
Date: Thu, 18 Jun 2009 00:18:36 +0900
Local: Wed, Jun 17 2009 11:18 am
Subject: Re: [django-ja:871] フォームの入力内容の確認画面実装について
露木です。

あまり出来が良くないという噂を聞きますが、一応form previewという
仕組みが標準(contrib)でついていますので、検討されてみてはいかがで
しょうか。

http://djangoproject.jp/doc/ja/1.0/ref/contrib/formtools/form-preview...

2009/06/17 18:24 に Sumiya Sakoda<higeb...@gmail.com> さんは書きました:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
higebobo  
View profile   Translate to Translated (View Original)
 More options Jun 17, 5:47 pm
From: higebobo <higeb...@gmail.com>
Date: Wed, 17 Jun 2009 14:47:38 -0700 (PDT)
Local: Wed, Jun 17 2009 5:47 pm
Subject: Re: フォームの入力内容の確認画面実装について
佐古田です。

こんな機能があったのですね。
ドキュメントも読んでいるつもりがまだ知らないことが多かったようです。

早速試してみます。ありがとうございました。

On 6月18日, 午前12:18, tsuyuki makoto <mtsuy...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google