[open-ils-commits] r8335 -
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/admin
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jan 6 16:12:43 EST 2008
Author: erickson
Date: 2008-01-06 15:48:28 -0500 (Sun, 06 Jan 2008)
New Revision: 8335
Added:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/admin/index.html
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/admin/widgets.html
Log:
adding initial admin widgets and placeholder index file
Added: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/admin/index.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/admin/index.html (rev 0)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/admin/index.html 2008-01-06 20:48:28 UTC (rev 8335)
@@ -0,0 +1,7 @@
+<%inherit file='base.html'/>
+
+<%def name="page_title()">${_('Evergreen Admin')}</%def>
+<%def name="block_content()">
+ INDEX
+</%def>
+
Added: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/admin/widgets.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/admin/widgets.html (rev 0)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/admin/widgets.html 2008-01-06 20:48:28 UTC (rev 8335)
@@ -0,0 +1,118 @@
+<!-- vim:set filetype=mako: -->
+
+<!--
+ This file contains all of the automatically generated widgets
+-->
+
+
+<%def name='load(type, field, value=None)'>
+ % if type == 'text' or type is None:
+ <%call expr='widget_text(field, value)'/>
+ % endif
+ % if type == 'bool':
+ <%call expr='widget_bool(field, value)'/>
+ % endif
+ % if type == 'float':
+ <%call expr='widget_float(field, value)'/>
+ % endif
+ % if type == 'id':
+ <%call expr='widget_id(field, value)'/>
+ % endif
+ % if type == 'int':
+ <%call expr='widget_int(field, value)'/>
+ % endif
+ % if type == 'interval':
+ <%call expr='widget_intterval(field, value)'/>
+ % endif
+ % if type == 'link':
+ <%call expr='widget_link(field, value)'/>
+ % endif
+ % if type == 'money':
+ <%call expr='widget_money(field, value)'/>
+ % endif
+ % if type == 'org_unit':
+ <%call expr='widget_org_unit(field, value)'/>
+ % endif
+ % if type == 'timestamp':
+ <%call expr='widget_timestamp(field, value)'/>
+ % endif
+</%def>
+
+<!-- BOOL -->
+<%def name='widget_bool(field, value=None)'>
+ <select name='${field}'>
+ <option value='t'
+ % if value == 't':
+ selected='selected'
+ % endif
+ >${_('True')}</option>
+ <option value='f'
+ % if value != 't':
+ selected='selected'
+ % endif
+ >${_('False')}</option>
+ </select>
+</%def>
+
+<!-- TEXT -->
+<%def name='widget_text(field, value=None)'>
+ <input type='text' size='48'
+ %if value is None:
+ value=''/>
+ %else:
+ value='${unicode(value)}'/>
+ %endif
+</%def>
+
+<!-- FLOAT -->
+<%def name='widget_float(field, value=None)'>
+ <input type='text' size='18'
+ %if value is None:
+ value=''/>
+ %else:
+ value='${unicode(value)}'/>
+ %endif
+</%def>
+
+<!-- ID -->
+<%def name='widget_id(field, value=None)'>
+ <input type='text' size='18'
+ %if value is None:
+ value=''/>
+ %else:
+ value='${unicode(value)}'/>
+ %endif
+</%def>
+
+<!-- INT -->
+<%def name='widget_int(field, value=None)'>
+ <input type='text' size='18'
+ %if value is None:
+ value=''/>
+ %else:
+ value='${unicode(value)}'/>
+ %endif
+</%def>
+
+<!-- INTERVAL -->
+<%def name='widget_interval(field, value=None)'>
+ <%call expr='widget_text(field, value)'/>
+</%def>
+
+<!-- LINK -->
+<%def name='widget_link(field, value=None)'>
+</%def>
+
+<!-- MONEY -->
+<%def name='widget_money(field, value=None)'>
+</%def>
+
+<!-- ORG_UNIT -->
+<%def name='widget_org_unit(field, value=None)'>
+</%def>
+
+<!-- TIMESTAMP -->
+<%def name='widget_timestamp(field, value=None)'>
+</%def>
+
+
More information about the open-ils-commits
mailing list