forked from Pylons/deformdemo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redesign form page, pretty print captured structure
- Loading branch information
1 parent
6ee2deb
commit 827c9d4
Showing
2 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
<div metal:use-macro="view.macros['master']"> | ||
<div metal:fill-slot="main"> | ||
<h1>${title}</h1> | ||
<div id="form" tal:content="structure form"/> | ||
<h1>Captured</h1> | ||
<div id="captured" tal:content="captured"/> | ||
<h1>Code <a href="/allcode?start=${start}&end=${end}#line-${start}" | ||
><small>(show in context)</small></a> | ||
</h1> | ||
<span tal:replace="structure code"/> | ||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Demo: ${title}</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<div id="form" tal:content="structure form"/> | ||
</div> | ||
</div> | ||
|
||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Captured submission</h3> | ||
</div> | ||
<div class="panel-body"> | ||
<pre style="border: none; background-color: #FFF" class="highlight" id="captured" tal:content="structure captured"/> | ||
</div> | ||
</div> | ||
|
||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">Code <a href="/allcode?start=${start}&end=${end}#line-${start}" | ||
><small>(click to show in context)</small></a> | ||
</h3> | ||
</div> | ||
<div class="panel-body highlight"> | ||
<pre style="border: none" tal:content="structure code"/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|