def helper(self):
helper = FormHelper()
helper.form_id = 'id-searchForm'
helper.form_method = 'get'
helper.form_action = ''
helper.layout = Layout(
Fieldset(
'',
'well',
'addr',
'legal',
'owner',
# start_lat_long and end_lat_long are programatically generated
# based on an identifyWells operation on the client.
Hidden('start_lat_long', ''),
Hidden('end_lat_long', ''),
),
FormActions(
Submit('s', 'Search', css_class='formButtons'),
HTML('<a class="btn btn-default" id="reset-id-s" href="{% url \'search\' %}">Reset</a>'),
)
)
return helper
评论列表
文章目录