1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-08 21:18:00 +03:00

Almost fixed all tables on dashboard

This commit is contained in:
Adolfo Gómez García 2015-10-06 11:32:47 +02:00
parent 00e85357cf
commit 0877cc01f4
13 changed files with 44 additions and 49 deletions

View File

@ -415,10 +415,6 @@ gui.authenticators.link = (event) ->
prevTables.push logTable
false
onRefresh: ->
$("#users-placeholder").empty() # Remove detail on parent refresh
return
onNew: gui.methods.typedNew(gui.authenticators, gettext("New authenticator"), gettext("Authenticator creation error"), testButton)
onEdit: gui.methods.typedEdit(gui.authenticators, gettext("Edit authenticator"), gettext("Authenticator saving error"), testButton)
onDelete: gui.methods.del(gui.authenticators, gettext("Delete authenticator"), gettext("Authenticator deletion error"))

View File

@ -211,9 +211,11 @@
$("#" + tblParams.container).append table.text
# What execute on refresh button push
onRefresh = tblParams.onRefresh or ->
if not tblParams.onRefresh?
tblParams.onRefresh = (tbl) ->
return
self.refresh = refreshFnc = ->
self.refresh = refreshFnc = () ->
# Refreshes table content
tbl = $("#" + tableId).DataTable()
@ -227,16 +229,13 @@
tbl.rows.add(data)
tbl.columns.adjust().draw()
onRefresh self
gui.doLog "onRefresh", tblParams.onRefresh
tblParams.onRefresh self
gui.tools.unblockUI()
return
), 0
return
# End restore overview
false # This may be used on button or href, better disable execution of it
btns = []
if tblParams.buttons
# Generic click handler generator for this table

View File

@ -2,10 +2,10 @@
<div class="row">
<div class="col-xs-12">
<h1>{% trans 'Authenticators' %}</h1>
<ol class="breadcrumb">
<!--<ol class="breadcrumb">
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
<li>{% trans 'Authenticators' %}</li>
</ol>
</ol> -->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -2,10 +2,10 @@
<div class="row">
<div class="col-xs-12">
<h1>{% trans 'Calendars' %}</h1>
<ol class="breadcrumb">
<!--<ol class="breadcrumb">
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
<li>{% trans 'Calendars' %}</li>
</ol>
</ol>-->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -2,10 +2,10 @@
<div class="row">
<div class="col-xs-12">
<h1>{% trans 'UDS Configuration' %}</h1>
<ol class="breadcrumb">
<!--<ol class="breadcrumb">
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
<li>{% trans 'Configuration' %}</li>
</ol>
</ol>-->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -2,10 +2,10 @@
<div class="row">
<div class="col-xs-12">
<h1>{% trans 'Connectivity' %}</h1>
<ol class="breadcrumb">
<!-- <ol class="breadcrumb">
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
<li>{% trans 'Connectivity' %}</li>
</ol>
</ol> -->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -3,9 +3,9 @@
<div class="row">
<div class="col-xs-12">
<h1>{% trans 'Overview' %}</h1>
<ol class="breadcrumb">
<!-- <ol class="breadcrumb">
<li><a id="lnk-dashboard" href="">Dashboard</a></li>
</ol>
</ol> -->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -3,10 +3,10 @@
<div class="row">
<div class="col-xs-12">
<h1>{% trans 'UDS Image Gallery' %}</h1>
<ol class="breadcrumb">
<!-- <ol class="breadcrumb">
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
<li>{% trans 'Gallery' %}</li>
</ol>
</ol> -->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -2,10 +2,10 @@
<div class="row">
<div class="col-xs-12">
<h1>Os Managers</h1>
<ol class="breadcrumb">
<!-- <ol class="breadcrumb">
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
<li>OS Managers</li>
</ol>
</ol> -->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -2,10 +2,10 @@
<div class="row">
<div class="col-xs-12">
<h1>{% trans 'Services' %}</h1>
<ol class="breadcrumb">
<!-- <ol class="breadcrumb">
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
<li>{% trans 'Services' %}</li>
</ol>
</ol> -->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -2,10 +2,10 @@
<div class="row">
<div class="col-xs-12">
<h1>{% trans 'Reports' %}</h1>
<ol class="breadcrumb">
<!-- <ol class="breadcrumb">
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
<li>{% trans 'Reports' %}</li>
</ol>
</ol> -->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -3,9 +3,9 @@
<div class="row">
<div class="col-xs-12">
<h1>Dashboard <small>{% trans 'overview' %}</small></h1>
<ol class="breadcrumb">
<!-- <ol class="breadcrumb">
<li><a id="lnk-dashboard" href="">Dashboard</a></li>
</ol>
</ol> -->
</div>
</div><!-- /.row -->
{% if messages %}

View File

@ -2,10 +2,10 @@
<div class="row">
<div class="col-xs-12">
<h1>{% trans 'Service Pools' %}</h1>
<ol class="breadcrumb">
<!-- <ol class="breadcrumb">
<li><a class="lnk-dashboard" href="#">Dashboard</a></li>
<li>{% trans 'Service Pools' %}</li>
</ol>
</ol> -->
</div>
</div><!-- /.row -->
{% if messages %}