Browse Source

Fixes #1603

pull/1607/head
Edward Ribeiro 7 years ago
parent
commit
eadc004277
  1. 37
      sapl/templates/sessao/mesa.html

37
sapl/templates/sessao/mesa.html

@ -4,21 +4,7 @@
{% block detail_content %} {% block detail_content %}
<!-- Success and errors messages div --> <!-- Success and errors messages div -->
<div class="alert alert-danger alert-dismissible fade in" id="div-error" role="alert" style="display: none"> {% if user.is_authenticated or composicao_mesa %}
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
<b><span id="error-message"></span></b>
</div>
<div class="alert alert-success alert-dismissible fade in" id="div-success" style="display: none" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
<b><span id="success-message"></span></b>
</div>
<!-- Success and errors messages div end -->
<fieldset class="form-group"> <fieldset class="form-group">
{% if perms.sessao.add_integrantemesa %} {% if perms.sessao.add_integrantemesa %}
<legend>Escolha da Composição da Mesa Diretora da Sessão Plenária</legend> <legend>Escolha da Composição da Mesa Diretora da Sessão Plenária</legend>
@ -35,6 +21,7 @@
</select> </select>
</div> </div>
<div class="col-md-4" align="center"> <div class="col-md-4" align="center">
<br /><br /> <br /><br />
{% if perms.sessao.add_integrantemesa %} {% if perms.sessao.add_integrantemesa %}
@ -46,7 +33,7 @@
<input type="submit" style="display: none" name="Excluir" id="id_excluir" Value="Excluir" class="btn btn-danger" /> <input type="submit" style="display: none" name="Excluir" id="id_excluir" Value="Excluir" class="btn btn-danger" />
{% endif %} {% endif %}
</div> </div>
{% if user.is_authenticated and cargos_vagos %}
<div class="col-md-4"> <div class="col-md-4">
<label id='parlamentar-cargo-title' style="display: none">Parlamentar | Cargo</label> <label id='parlamentar-cargo-title' style="display: none">Parlamentar | Cargo</label>
<select class="form-control" name="parlamentar" id="id_parlamentar" style="display: none"> <select class="form-control" name="parlamentar" id="id_parlamentar" style="display: none">
@ -61,9 +48,25 @@
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
{% endif %}
</div> </div>
</fieldset> </fieldset>
{% endif %}
<div class="alert alert-danger alert-dismissible fade in" id="div-error" role="alert" style="display: none">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
<b><span id="error-message"></span></b>
</div>
<!-- Success and errors messages div end -->
<div class="alert alert-success alert-dismissible fade in" id="div-success" style="display: none" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
<b><span id="success-message"></span></b>
</div>
{% endblock detail_content %} {% endblock detail_content %}

Loading…
Cancel
Save