1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = "Hard Due Dates" %]
3 <script type="text/javascript">
4 dojo.require("openils.CGI");
5 dojo.require("openils.Util");
6 dojo.require("openils.widget.AutoGrid");
8 function get_chdd_name(rowIndex, item) {
9 if (!item) return null;
11 "id": this.grid.store.getValue(item, "id"),
12 "name": this.grid.store.getValue(item, "name")
16 function format_chdd_name(blob) {
18 return "<a href='" + oilsBasePath +
19 "/conify/global/config/hard_due_date_values?chdd=" +
20 blob.id + "'>" + blob.name + "</a>";
26 openils.Util.addOnLoad(
28 var cgi = new openils.CGI();
30 var id = cgi.param("id");
31 var name = cgi.param("name");
34 openils.Util.show("one_only");
36 filter = {"name": name};
37 openils.Util.show("one_only");
39 chddGrid.loadAll({"order_by": {"chdd": "name"}}, filter);
43 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
44 <div dojoType="dijit.layout.ContentPane"
45 layoutAlign="top" class="oils-header-panel">
46 <div>Hard Due Dates</div>
49 dojoType="dijit.form.Button"
50 onClick="chddGrid.showCreateDialog();">New Hard Due Date</button>
52 dojoType="dijit.form.Button"
53 onClick="chddGrid.deleteSelected();">Deleted Selected</button>
56 <div id="one_only" class="hidden">
57 <em>Showing only one hard due date.</em> [
58 <a href="./hard_due_date">Show them all</a>
62 <table jsId="chddGrid"
63 dojoType="openils.widget.AutoGrid"
66 defaultCellWidth="'auto'"
67 fieldOrder="['name', 'owner', 'ceiling_date', 'forceto']"
73 <th field="name" get="get_chdd_name"
74 formatter="format_chdd_name"></th>