Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デフォルトの変形フォームを使用する場合。それは私が必要とするものではありません。
それをカスタマイズする方法?
たとえば、これが必要です:
firstname:[_______] lastname:[_______] *username: [____________________] alink
[ _ _] は通常の html 入力を表します。
テンプレートを書き直す必要がありますか?
これは CSS の問題です。カスタム CSS クラスを変形入力に提供するには、以下を使用する必要があります。
text_input = deform.widget.TextInputWidget( css_class='yourdivnamehere')
次に、変形内で次のことができます。
first_name = colander.SchemaNode(colander.String(), widget = text_input)
を使用してrspec2インストールしspork、コマンドguardを実行すると、次のguardエラーが発生します。
rspec2
spork
guard
undefined method `generators' for #<RSpec::Core::Conf