8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +00:00

Use button instead of badge

This commit is contained in:
Maël Kervella 2018-06-27 21:17:29 +00:00
parent e5f9b634a0
commit 4eeb8802f6

View file

@ -28,8 +28,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading clearfix" data-toggle="collapse" data-target="#collapse_superuser"> <div class="panel-heading clearfix" data-toggle="collapse" data-target="#collapse_superuser">
<div class="pull-right"> <div class="pull-right">
<a data-toggle="modal" data-target="#modal_superuser"> <a type="button" class="btn btn-sm btn-default" data-toggle="modal" data-target="#modal_superuser">
<span class="badge">{{superusers.count}} <i class="fa fa-user"></i></span> {{superusers.count}} <i class="fa fa-user"></i>
</a> </a>
</div> </div>
<h4 class="text-danger"> <h4 class="text-danger">
@ -106,12 +106,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="panel-heading clearfix" data-toggle="collapse" data-target="#collapse_{{right.id}}"> <div class="panel-heading clearfix" data-toggle="collapse" data-target="#collapse_{{right.id}}">
<div class="pull-right"> <div class="pull-right">
{% if users %} {% if users %}
<a data-toggle="modal" data-target="#modal_{{right.id}}"> <a type="button" class="btn btn-sm btn-default" data-toggle="modal" data-target="#modal_{{right.id}}">
<span class="badge">{{users.count}} <i class="fa fa-user"></i></span>
</a>
{% else %} {% else %}
<span class="badge">{{users.count}} <i class="fa fa-user"></i></span> <a type="button" class="btn btn-sm btn-default" disabled="disabled">
{% endif %} {% endif %}
{{users.count}} <i class="fa fa-user"></i>
</a>
{% include 'buttons/edit.html' with href='users:edit-listright' id=right.id %} {% include 'buttons/edit.html' with href='users:edit-listright' id=right.id %}
{% include 'buttons/history.html' with href='users:history' name='listright' id=right.id %} {% include 'buttons/history.html' with href='users:history' name='listright' id=right.id %}
</div> </div>