Skip to content

Commit

Permalink
Adding organization to the questionary
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Álvarez committed Apr 13, 2016
1 parent 3c4ec4e commit b77e12c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions popular_proposal/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class ProposalFormBase(forms.Form):
ciudadana. Ej: 50% más de ciclovías para la comuna"))
clasification = forms.ChoiceField(choices=TOPIC_CHOICES, label=_(u'¿Cómo clasificarías tu propuesta?'))
allies = forms.CharField(label=_(u'¿Quiénes son tus posibles aliados?'))
organization = forms.CharField(label=_(u'¿Estás haciendo esta propuesta a nombre de una organización? Escribe su nombre acá:'))


class ProposalForm(ProposalFormBase):
Expand Down
4 changes: 4 additions & 0 deletions votai_general_theme/templates/backend_citizen/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ <h1>{% blocktrans %}¡Bienvenid@ {{user}}!{% endblocktrans %}</h1>
<td>Solución</td>
<td>Cuándo?</td>
<td>Aliados</td>
<td>Organización</td>
<td>Estado</td>
</tr>
{% for proposal in temporary_proposals %}
Expand All @@ -41,6 +42,9 @@ <h1>{% blocktrans %}¡Bienvenid@ {{user}}!{% endblocktrans %}</h1>
<td>{{proposal.data.allies}}
{% include 'popular_proposal/_show_proposal_comments_to_user.html' with comments=proposal.comments.allies %}
</td>
<td>{{proposal.data.organization}}
{% include 'popular_proposal/_show_proposal_comments_to_user.html' with comments=proposal.comments.organization %}
</td>
<td>
{% if proposal.status == 'in_our_side' %}
{% blocktrans %}<span class="label label-default"><i class="fa fa-clock-o"></i> Esperando moderación</span>{% endblocktrans %}
Expand Down
4 changes: 4 additions & 0 deletions votai_general_theme/templates/backend_staff/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ <h2>{% blocktrans %}¡Eres parte de nuestro equipo!{% endblocktrans %}</h2>
<td>Solución</td>
<td>Cuándo?</td>
<td>Aliados</td>
<td>Organización</td>
<td>Acciones</td>
</tr>
{% for proposal in proposals.all %}
Expand All @@ -37,6 +38,9 @@ <h2>{% blocktrans %}¡Eres parte de nuestro equipo!{% endblocktrans %}</h2>
</td>
<td>{{proposal.data.when|popular_proposal_when}}{% include 'popular_proposal/_show_proposal_comments.html' with comments=proposal.comments.when %}
</td>
<td>
{{proposal.data.organization}}{% include 'popular_proposal/_show_proposal_comments.html' with comments=proposal.comments.organization %}
</td>
<td>{{proposal.data.allies}}{% include 'popular_proposal/_show_proposal_comments.html' with comments=proposal.comments.allies %}
</td>
<td>
Expand Down

0 comments on commit b77e12c

Please sign in to comment.