[open-ils-commits] r9136 - in
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils:
. default default/acq/picklist
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 25 22:37:57 EDT 2008
Author: djfiander
Date: 2008-03-25 22:02:42 -0400 (Tue, 25 Mar 2008)
New Revision: 9136
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/base.html
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view.html
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_lineitem.html
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/base.html
Log:
Initial dojo-ization. Just starting to use widgets
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/base.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/base.html 2008-03-25 04:58:16 UTC (rev 9135)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/base.html 2008-03-26 02:02:42 UTC (rev 9136)
@@ -15,6 +15,7 @@
<%def name="page_title()">${_('Evergreen Acquisitions')}</%def>
<title>${self.page_title()}</title>
${self.block_css()}
+ ${self.block_js()}
</head>
</%def>
@@ -24,7 +25,20 @@
<%def name='block_body_content()'/>
<%def name='block_css()'>
+ <link rel="stylesheet" type="text/css" href="/dojo/dijit/themes/tundra/tundra.css" />
+ <link rel="stylesheet" type="text/css" href="/dojo/dojo/resources/dojo.css" />
<link rel='stylesheet' type='text/css' href='${c.oils.core.media_prefix.value}/css/skin/${c.oils.core.skin.value}.css'/>
<link rel='stylesheet' type='text/css' href='${c.oils.core.media_prefix.value}/css/theme/${c.oils.core.theme.value}.css'/>
</%def>
+<%def name='block_js()'>
+ <script type="text/javascript" src="/dojo/dojo/dojo.js"
+ djConfig="parseOnLoad: true"></script>
+ <script type="text/javascript">
+ dojo.require("dojo.parser");
+ dojo.require("dijit.form.Form")
+ dojo.require("dijit.form.Button");
+ dojo.require("dijit.form.TextBox");
+ dojo.require("dijit.form.NumberTextBox");
+ </script>
+</%def>
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view.html 2008-03-25 04:58:16 UTC (rev 9135)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view.html 2008-03-26 02:02:42 UTC (rev 9136)
@@ -30,7 +30,7 @@
% for list in c.oils.acq.picklist_list.value:
<option value='${list.id()}'>${list.name()}</option>
% endfor
-o </select> <input type='submit' value='${_("Submit")}'/>
+ </select> <button dojoType="dijit.form.Button" type='submit' value='${_("Submit")}'>${_("Submit")}</button>
</div>
<div class='spacer'> </div>
</div>
@@ -60,15 +60,18 @@
% if lineitem.state() == 'approved':
${lineitem.item_count()} Approved
% else:
- <form method="POST"
+ <form dojoType="dijit.form.Form" method="POST"
action="${c.oils.acq.prefix.value}/picklist/update">
<input name="${c.oils.acq.picklist_source_id.cgi_name}"
type="hidden"
value="${c.oils.acq.picklist.value.id()}" />
<input name="${c.oils.acq.lineitem_item_count.cgi_name}"
type="text" size="3"
- value="${lineitem.item_count()}" />
- <button name='${c.oils.acq.lineitem_id.cgi_name}'
+ value="${lineitem.item_count()}"
+ dojoType="dijit.form.NumberTextBox"
+ constraints="{min:0,places:0}" />
+ <button dojotype='dijit.form.Button'
+ name='${c.oils.acq.lineitem_id.cgi_name}'
value='${lineitem.id()}'>${_("Update")}</button>
</form>
% endif
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_lineitem.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_lineitem.html 2008-03-25 04:58:16 UTC (rev 9135)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/view_lineitem.html 2008-03-26 02:02:42 UTC (rev 9136)
@@ -50,7 +50,7 @@
</td>
<td>${detail.owning_lib() or 'None'}</td>
<td>
- <button name='${c.oils.acq.lineitem_detail_id.cgi_name}'
+ <button dojotype='dijit.form.Button' name='${c.oils.acq.lineitem_detail_id.cgi_name}'
value='${detail.id()}'>${_("Update")}</button>
</td>
</tr>
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/base.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/base.html 2008-03-25 04:58:16 UTC (rev 9135)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/base.html 2008-03-26 02:02:42 UTC (rev 9136)
@@ -2,7 +2,7 @@
<%inherit file='../base.html'/>
<%def name='block_body_content()'>
- <div id='oils-base-body-block'>
+ <div id='oils-base-body-block' class='tundra'>
<div id='oils-base-header-block'>
${self.block_header()}
</div>
More information about the open-ils-commits
mailing list