update grid, crud views per edbob changes
This commit is contained in:
parent
59c8da5690
commit
dcbcf81c40
24 changed files with 110 additions and 186 deletions
|
@ -1,4 +1,4 @@
|
|||
<%inherit file="/index.mako" />
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Customer Groups</%def>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<%inherit file="/index.mako" />
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Customers</%def>
|
||||
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
${parent.body()}
|
||||
|
||||
<% customer = form.fieldset.model %>
|
||||
|
||||
<h2>People</h2>
|
||||
% if fieldset.model.people:
|
||||
% if customer.people:
|
||||
<p>Customer account is associated with the following people:</p>
|
||||
<div class="grid hoverable">
|
||||
<table>
|
||||
|
@ -12,7 +14,7 @@ ${parent.body()}
|
|||
<th>Last Name</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
% for i, person in enumerate(fieldset.model.people, 1):
|
||||
% for i, person in enumerate(customer.people, 1):
|
||||
<tr class="${'odd' if i % 2 else 'even'}">
|
||||
<td>${person.first_name or ''}</td>
|
||||
<td>${person.last_name or ''}</td>
|
||||
|
@ -26,7 +28,7 @@ ${parent.body()}
|
|||
% endif
|
||||
|
||||
<h2>Groups</h2>
|
||||
% if fieldset.model.groups:
|
||||
% if customer.groups:
|
||||
<p>Customer account belongs to the following groups:</p>
|
||||
<div class="grid hoverable">
|
||||
<table>
|
||||
|
@ -35,7 +37,7 @@ ${parent.body()}
|
|||
<th>Name</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
% for i, group in enumerate(fieldset.model.groups, 1):
|
||||
% for i, group in enumerate(customer.groups, 1):
|
||||
<tr class="${'odd' if i % 2 else 'even'}">
|
||||
<td>${group.id}</td>
|
||||
<td>${group.name or ''}</td>
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
<%inherit file="/base.mako" />
|
||||
${parent.body()}
|
|
@ -1,5 +1,4 @@
|
|||
<%inherit file="/departments/base.mako" />
|
||||
<%inherit file="/index.mako" />
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Departments</%def>
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
<%inherit file="/base.mako" />
|
||||
${parent.body()}
|
|
@ -1,8 +0,0 @@
|
|||
<%inherit file="/employees/base.mako" />
|
||||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="menu()">
|
||||
<p>${h.link_to("Back to Employees", url('employees.list'))}</p>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
|
@ -1,2 +0,0 @@
|
|||
<%inherit file="/employees/crud.mako" />
|
||||
${parent.body()}
|
|
@ -1,12 +1,5 @@
|
|||
<%inherit file="/employees/base.mako" />
|
||||
<%inherit file="/index.mako" />
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Employees</%def>
|
||||
|
||||
<%def name="menu()">
|
||||
% if request.has_perm('employees.create'):
|
||||
<p>${h.link_to("Create a new Employee", url('employees.new'))}</p>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
<%inherit file="/employees/crud.mako" />
|
||||
${parent.body()}
|
|
@ -1,2 +0,0 @@
|
|||
<%inherit file="/base.mako" />
|
||||
${parent.body()}
|
|
@ -1,7 +1,7 @@
|
|||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
<p>${h.link_to("Back to Products", url('products'))}</p>
|
||||
<li>${h.link_to("Back to Products", url('products'))}</li>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<%inherit file="/products/base.mako" />
|
||||
<%inherit file="/index.mako" />
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Products</%def>
|
||||
|
||||
|
@ -7,17 +6,17 @@
|
|||
${parent.head_tags()}
|
||||
<style type="text/css">
|
||||
|
||||
table.header td.tools table {
|
||||
table.grid-header td.tools table {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
table.header td.tools table th,
|
||||
table.header td.tools table td {
|
||||
table.grid-header td.tools table th,
|
||||
table.grid-header td.tools table td {
|
||||
padding: 0px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table.header td.tools table #label-quantity {
|
||||
table.grid-header td.tools table #label-quantity {
|
||||
text-align: right;
|
||||
width: 30px;
|
||||
}
|
||||
|
|
|
@ -1,21 +1,12 @@
|
|||
<%inherit file="/products/crud.mako" />
|
||||
|
||||
<%def name="head_tags()">
|
||||
${parent.head_tags()}
|
||||
<style type="text/css">
|
||||
|
||||
#product-costs td.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
</style>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
||||
|
||||
<% product = form.fieldset.model %>
|
||||
|
||||
<div id="product-costs">
|
||||
<h2>Product Costs:</h2>
|
||||
% if fieldset.model.costs:
|
||||
% if product.costs:
|
||||
<div class="grid hoverable">
|
||||
<table>
|
||||
<thead>
|
||||
|
@ -27,7 +18,7 @@ ${parent.body()}
|
|||
<th>Unit Cost</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
% for i, cost in enumerate(fieldset.model.costs, 1):
|
||||
% for i, cost in enumerate(product.costs, 1):
|
||||
<tr class="${'odd' if i % 2 else 'even'}">
|
||||
<td class="center">${'X' if cost.preference == 1 else ''}</td>
|
||||
<td>${cost.vendor}</td>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<%inherit file="/index.mako" />
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Subdepartments</%def>
|
||||
|
||||
|
|
2
rattail/pyramid/templates/vendors/base.mako
vendored
2
rattail/pyramid/templates/vendors/base.mako
vendored
|
@ -1,2 +0,0 @@
|
|||
<%inherit file="/base.mako" />
|
||||
${parent.body()}
|
3
rattail/pyramid/templates/vendors/index.mako
vendored
3
rattail/pyramid/templates/vendors/index.mako
vendored
|
@ -1,5 +1,4 @@
|
|||
<%inherit file="/vendors/base.mako" />
|
||||
<%inherit file="/index.mako" />
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Vendors</%def>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue