[open-ils-commits] r12599 - in trunk/Open-ILS/web: js/ui/default/acq/common templates/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 19 00:03:29 EDT 2009
Author: erickson
Date: 2009-03-19 00:03:27 -0400 (Thu, 19 Mar 2009)
New Revision: 12599
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
Log:
initial actions dropdown. some style tweaks
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-03-19 04:02:56 UTC (rev 12598)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-03-19 04:03:27 UTC (rev 12599)
@@ -1,5 +1,6 @@
dojo.require('dijit.form.Button');
dojo.require('dijit.form.TextBox');
+dojo.require('dijit.form.FilteringSelect');
dojo.require('dijit.ProgressBar');
dojo.require('openils.User');
dojo.require('openils.Util');
@@ -109,6 +110,7 @@
}
dojo.query('[name=infolink]', row)[0].onclick = function() {self.drawInfo(li.id())};
dojo.query('[name=copieslink]', row)[0].onclick = function() {self.drawCopies(li.id())};
+ dojo.query('[name=count]', row)[0].appendChild(document.createTextNode(li.item_count()));
self.tbody.appendChild(row);
self.selectors.push(dojo.query('[name=selectbox]', row)[0]);
};
Modified: trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2009-03-19 04:02:56 UTC (rev 12598)
+++ trunk/Open-ILS/web/templates/default/acq/common/li_table.tt2 2009-03-19 04:03:27 UTC (rev 12599)
@@ -6,13 +6,23 @@
<table id='acq-lit-table'>
<thead>
<tr>
- <th colspan='0'>
+ <th colspan='0' style='border:1px solid #aaa;'>
<table style='width:100%;'><tr>
<td><a id='acq-lit-select-toggle' href='javascript:void(0);'>Select</a></td>
<td>
<div style='width:100%;text-align:right;'>
- <a href='javascript:void(0);' id='acq-lit-prev' style='visibility:hidden'>« Previous</a>
- <a href='javascript:void(0);' id='acq-lit-next' style='visibility:hidden'>Next »</a>
+ <span>
+ <select dojoType='dijit.form.FilteringSelect' value='_'>
+ <option value='_'>--Actions--</option>
+ <option value='selector_ready'>Mark Ready for Selector</option>
+ <option value='order_ready'>Mark Ready for Order</option>
+ <option value='create_order'>Create Purchase Order</option>
+ </select>
+ </span>
+ <span style='padding-right:15px;'>
+ <a href='javascript:void(0);' id='acq-lit-prev' style='visibility:hidden'>« Previous</a>
+ <a href='javascript:void(0);' id='acq-lit-next' style='visibility:hidden'>Next »</a>
+ </span>
</div>
</td>
</tr></table>
@@ -28,9 +38,10 @@
<tr>
<td rowspan='2'><img style='width:40px;height:65px;' name='jacket'/></td>
<td attr='title' style='width:70%;font-weight:bold;'/>
- <td style='text-align:right'>
+ <td rowspan='2' style='text-align:right'>
<a name='infolink' href='javascript:void(0);' style='margin-right:10px;'>Details</a>
- <a name='copieslink' href='javascript:void(0);' style='margin-right:10px;'>Copies</a>
+ <a name='copieslink' href='javascript:void(0);'
+ style='margin-right:20px;'>Copies(<span name='count'></span>)</a>
</td>
</tr>
<tr class='acq-lit-alt-row'>
More information about the open-ils-commits
mailing list