Commit d10f5a5e authored by Leigh B Stoller's avatar Leigh B Stoller

Add using column to show if the reservation is actually being used.

parent 270cadf0
......@@ -62,6 +62,7 @@ $(function ()
"showidx" : true,
"showproject" : true,
"showuser" : true,
"showusing" : true,
"name" : name,
"isadmin" : window.ISADMIN,
});
......
......@@ -261,6 +261,7 @@ $(function ()
"showidx" : false,
"showproject" : false,
"showuser" : false,
"showusing" : false,
"name" : details.name,
});
html =
......
......@@ -441,6 +441,9 @@ function Do_ListReservations()
$blob["pid_idx"] = $details['pid_idx'];
$blob["creator_uid"] = $details['uid'];
$blob["creator_idx"] = $details['uid_idx'];
if (isset($details["using"])) {
$blob["using"] = $details['using'];
}
}
if (isset($details['approved']) && $details['approved'] != "") {
$blob["approved"] = $details["approved"];
......
......@@ -36,6 +36,9 @@
<% if (showproject) { %><th>Project</th><% } %>
<th>Type</th>
<th>Count</th>
<% if (showusing) { %>
<th class="sorter-false">Using</td>
<% } %>
<th>Created</th>
<th>Starts</th>
<th>Ends</th>
......@@ -102,6 +105,9 @@
<% } %>
<td><%- value.type %></td>
<td><%- value.count %></td>
<% if (showusing) { %>
<td><%- value.using %></td>
<% } %>
<td class="format-date"><%- value.created %></td>
<td class="format-date"><%- value.start %></td>
<td class="format-date"><%- value.end %></td>
......
Markdown is supported
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