Commit d14f776c authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Add position button when no positions

parent c66f0682
<p class="no-positions text-center">
No public position has been recorded yet.
<a aria-controls="add-position-form" aria-expanded="false" class="btn btn-primary hidden-print" data-target="#add-position-form" data-toggle="modal">
<span class="glyphicon glyphicon-bullhorn"></span>
Add a public position
\ No newline at end of file
......@@ -17,3 +17,7 @@ class RepresentativePositionsTest(RepresentativeBaseTest):
def test_position_details(self):
def test_no_positions(self):
url = '/legislature/representative/francois-asensi-1945-06-01/%s/'
self.selector_test('.no-positions', url %
{% extends 'representatives/representative_detail.html' %}
{% load i18n %}
{% load bootstrap3 %}
{% load humanize %}
{% load representatives_positions_tags %}
......@@ -8,7 +9,14 @@
{% if not positions %}
{# TODO: link #}
<p>No public position has been recorded. You can always <a>add a public position</a>.</p>
<p class="no-positions text-center">
{% trans "No public position has been recorded yet." %}
<a class="btn btn-primary hidden-print" data-toggle="modal" data-target="#add-position-form" aria-expanded="false" aria-controls="add-position-form">
{% bootstrap_icon "bullhorn" %}
{% trans "Add a public position" %}
{% else %}
<table class="table table-responsive custom-timeline text-center">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment