Holger Frey
7 years ago
9 changed files with 351 additions and 46 deletions
@ -0,0 +1,71 @@
@@ -0,0 +1,71 @@
|
||||
<tal:def tal:define="title title|field.title; |
||||
description description|field.description; |
||||
errormsg errormsg|field.errormsg; |
||||
item_template item_template|field.widget.item_template; |
||||
request field.schema.bindings['request']" |
||||
i18n:domain="deform"> |
||||
|
||||
<div class="panel panel-default" title="${description}"> |
||||
<div class="panel-heading">${title}</div> |
||||
<div class="panel-body"> |
||||
|
||||
<div tal:condition="errormsg" |
||||
class="clearfix alert alert-danger"> |
||||
<p i18n:translate=""> |
||||
There was a problem with this section |
||||
</p> |
||||
<p>${errormsg}</p> |
||||
</div> |
||||
|
||||
<div tal:condition="description"> |
||||
${description} |
||||
</div> |
||||
|
||||
${field.start_mapping()} |
||||
|
||||
<div tal:repeat="child field.children" |
||||
tal:replace="structure child.render_template(item_template)" > |
||||
</div> |
||||
|
||||
<div class="control-group"> |
||||
<label class="control-label"> Placed </label> |
||||
<div class="controls"> |
||||
<p class="form-control-static"> |
||||
${request.context.model.placed} |
||||
</p> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="control-group"> |
||||
<label class="control-label"> Approved </label> |
||||
<div class="controls"> |
||||
<p class="form-control-static"> |
||||
${request.context.model.approved} |
||||
</p> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="control-group"> |
||||
<label class="control-label"> Ordered </label> |
||||
<div class="controls"> |
||||
<p class="form-control-static"> |
||||
${request.context.model.ordered} |
||||
</p> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="control-group"> |
||||
<label class="control-label"> Completed </label> |
||||
<div class="controls"> |
||||
<p class="form-control-static"> |
||||
${request.context.model.completed} |
||||
</p> |
||||
</div> |
||||
</div> |
||||
|
||||
${field.end_mapping()} |
||||
|
||||
</div> |
||||
</div> |
||||
|
||||
</tal:def> |
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
{% extends "ordr2:templates/layout.jinja2" %} |
||||
{% import 'ordr2:templates/macros.jinja2' as macros with context %} |
||||
|
||||
{% block subtitle %} Order | {{ context.model.cas_description }} {% endblock subtitle %} |
||||
|
||||
{% block content %} |
||||
<div class="content controls"> |
||||
|
||||
<div class="container-fluid"> |
||||
<div class="row-fluid"> |
||||
<div class="page-controls"> |
||||
<h1>Edit Order: {{ context.model.cas_description }}</h1> |
||||
</div> |
||||
</div> |
||||
<div class="row edit-order"> |
||||
<div class="span8"> |
||||
{{ macros.flash_messages() }} |
||||
{{form.render()|safe}} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
{% endblock content %} |
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
{% extends "ordr2:templates/layout.jinja2" %} |
||||
{% import 'ordr2:templates/macros.jinja2' as macros with context %} |
||||
|
||||
{% block subtitle %} Order | Create New Order {% endblock subtitle %} |
||||
|
||||
{% block content %} |
||||
<div class="content controls"> |
||||
|
||||
<div class="container-fluid"> |
||||
<div class="row-fluid"> |
||||
<div class="page-controls"> |
||||
<h1>Create New Order</h1> |
||||
</div> |
||||
</div> |
||||
<div class="row edit-order"> |
||||
<div class="span8"> |
||||
{{ macros.flash_messages() }} |
||||
{{form.render()|safe}} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
{% endblock content %} |
Reference in new issue