Browse Source

fixes #3096 - criado os hyperlinks (#3097)

pull/3120/head
Ricardo Lima Canela 5 years ago
committed by GitHub
parent
commit
430192e5ad
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      sapl/static/sapl/css/ancora.css
  2. 18
      sapl/templates/parlamentares/materias.html

15
sapl/static/sapl/css/ancora.css

@ -0,0 +1,15 @@
.ancora{
padding: 10px;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
width: 180px;
height: 130px;
margin-left: 15px;
font-size: 95%;
}
.titulo-conteudo{
text-align: center;
font-weight: bold;
padding-bottom: 15px;
}

18
sapl/templates/parlamentares/materias.html

@ -1,17 +1,31 @@
{% extends "crud/detail.html" %} {% extends "crud/detail.html" %}
{% load i18n %} {% load i18n %}
{% load common_tags %} {% load common_tags %}
{% load static %}
{% block actions %}{% endblock %} {% block actions %}{% endblock %}
{% block detail_content %} {% block detail_content %}
<head>
<link rel="stylesheet" href="{% static '/sapl/css/ancora.css'%}">
</head>
<div class="clearfix"> <div class="clearfix">
<h1 class="page-header"> <h1 class="page-header">
Matérias <small>({{nome_parlamentar}})</small> Matérias <small>({{nome_parlamentar}})</small>
</h1> </h1>
</div> </div>
<h2 style="text-align: center">Primeiro Autor</h2>
<div class="ancora">
<p class="titulo-conteudo">Conteúdo</p>
<ol>
<li><a href="#primeiro-autor">Primeiro Autor</a></li>
<li><a href="#co-autor">Co-Autor</a></li>
</ol>
</div>
<h2 id="primeiro-autor" style="text-align: center">Primeiro Autor</h2>
<br/> <br/>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
{% for autoria in autoria.0 %} {% for autoria in autoria.0 %}
@ -32,7 +46,7 @@
<h2>Total: {{ autoria.1 }}</h2><br/> <h2>Total: {{ autoria.1 }}</h2><br/>
<h2 style="text-align: center">Co-Autor</h2> <h2 id="co-autor" style="text-align: center">Co-Autor</h2>
<br/> <br/>
<table class="table table-striped table-bordered"> <table class="table table-striped table-bordered">
{% for coautoria in coautoria.0 %} {% for coautoria in coautoria.0 %}

Loading…
Cancel
Save