Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

form methods defined

  • Loading branch information...
commit fabebaf0414b55126847253915d4116bce8cf4d0 1 parent 31da355
@cadu-leite cadu-leite authored
View
16 python_people/people/templates/people/pythongroup_list.html
@@ -2,15 +2,15 @@
{% load bootstrap_tags %}
{% block css %}
{% endblock %}
-{% block js %}
+{% block js %}
{% endblock %}
-{% block menu %}
+{% block menu %}
{% endblock %}
{% block pagetitle %} Python User Groups{% endblock %}{% block pagesubtitle %}&nbsp;&nbsp;<a class=" btn info " href="{% url python-group-crud %}">Add a new Python User Group </a> {% endblock %}
{% block content %}
-<form class="well form-search">
+<form class="well form-search" method="GET">
{% bootstrap_form frm_srch "inline" %}
<input type="submit" class="btn" value="Go">
</form>
@@ -19,7 +19,7 @@
{% for obj in object_list %}
<div class="user-item">
<div class="user-name">
- <a href="{% url python-group-detail obj.id %}"> {{ obj.name|default_if_none:"- -" }} </a>
+ <a href="{% url python-group-detail obj.id %}"> {{ obj.name|default_if_none:"- -" }} </a>
<span class="discreet">Location: <b>{{ obj.administrative_area_level_1|default_if_none:" - -" }} / {{ obj.country|default_if_none:" - -" }}</b>
{% if user == obj.user %} <a href="{% url python-group-crud obj.id %}" class=" btn "> edit group profile </a> {% endif %}
</span>
@@ -27,11 +27,11 @@
</div>
- </div>
+ </div>
{% endfor %}
-
+
</section>
-
-{% endblock %}
+
+{% endblock %}
View
4 python_people/people/templates/people/survey_form.html
@@ -1,9 +1,9 @@
{% extends "base.html" %}
{% load bootstrap_toolkit %}
{% block content %}
-<form class="vertical">
+<form class="vertical" method="post">
{% csrf_token %}
{{ form|as_bootstrap:"vertical" }}
<button type="submit" class="btn btn-primary">Submit</button>
</form>
-{% endblock %}
+{% endblock %}

0 comments on commit fabebaf

Please sign in to comment.
Something went wrong with that request. Please try again.