gdritter repos frony-ritter-designs / 8c17190
Add template files Getty Ritter 4 years ago
22 changed file(s) with 379 addition(s) and 0 deletion(s). Collapse all Expand all
1 $def with (text)
2 <div id="photo">
3 <img src="/static/frony.png" />
4 </div>
5 <div id="about-block">
6 $:markdown(text)
7 </div>
1 $def with(category, seq, page, show_left, show_right)
2 <div class="all-designs">
3 $for design in seq:
4 $:design
5 </div>
6 <div class="lrnav">
7 $if show_left:
8 <a href="/category/$category/?page=$(page - 1)">&lt;&lt;</a>
9 $if show_right:
10 <a href="/category/$category/?page=$(page + 1)">&gt;&gt;</a>
11 </div>
1 $def with(tag, seq, page, show_left, show_right)
2 <div class="all-designs">
3 $for design in seq:
4 $:design
5 </div>
6 <div class="lrnav">
7 $if show_left:
8 <a href="/tag/$tag/?page=$(page - 1)">&lt;&lt;</a>
9 $if show_right:
10 <a href="/tag/$tag/?page=$(page + 1)">&gt;&gt;</a>
11 </div>
1 $def with (title, images, description, category, id)
2 <div class="textbox">
3 Do you <strong>really</strong> want to delete this design? Remember:
4 if you delete this design, <strong>you will not be able to retrieve
5 the text saved here</strong> unless your son was nice enough to
6 make a backup recently!
7 <a href="/edit/design/$five(id)/">No</a>
8 <form name="delete" action="/edit/delete/$five(id)/" method="post">
9 <input type="submit" value="Yes" />
10 </form>
11 </div>
1 $def with(seq, page=None, last_page=None, show_left=False, show_right=False)
2 <ul class="all-designs">
3 $for design in seq:
4 $:design
5 <li class="break"></li>
6 </ul>
7 $if page is not None:
8 <div class="lrnav"><ul>
9 <a href="/design/?page=0"><li class="navitem">Newest</li></a>
10 $if show_left:
11 <a href="/design/?page=$(page - 1)"><li class="navitem">Newer</li></a>
12 $else:
13 <li class="navitem greyed">Newer</li>
14 $if show_right:
15 <a href="/design/?page=$(page + 1)"><li class="navitem">Older</li></a>
16 $else:
17 <li class="navitem greyed">Older</li>
18 <a href="/design/?page=$last_page"><li class="navitem">Oldest</li></a>
19 <li class="break"></li>
20 </ul></div>
1 $def with(title, images, description, category, id)
2 <div class="design">
3 <div class="title">$title</div>
4 <div class="images">
5 $for i in images:
6 <img src="/static/photos/$i" />
7 </div>
8 <div class="description">$:markdown(description)</div>
9 <div class="related">
10 <a href="/category/$category/">$(category.capitalize())</a>
11 </div>
12 </div>
1 $def with(title, picture, description, id)
2 <a href="/design/$five(id)/$slugify(title)/">
3 <li class="design-tile">
4 $if picture:
5 <div id="img">
6 <img src="/static/photos/$thumb(picture)" alt="$title photo" />
7 </div>
8 <span class="title">$title</span>
9 </li>
10 </a>
1 $def with(text)
2 <form name="about-form" method="post" action="/edit/about/">
3 <textarea name="text" rows="25" cols="65">$text</textarea>
4 <input type="submit" value="Change About Text" />
5 </form>
1 $def with(title, images, description, category, id, tags='')
2 $code
3 def selected(cat):
4 if cat == category:
5 return "selected=\"selected\""
6 else:
7 return ""
8 <div id="design">
9 <p>
10 <a href="/edit/design/">Return to Editing List</a>
11 </p>
12 <h1>See This Design</h1>
13 <a href="/design/$five(id)/">Click Here</a>
14 <h1>Design Data</h1>
15 <form name="design-data" method="post" action="/design/$five(id)/">
16 <p>
17 design id: $id
18 </p>
19 <p><input type="text" name="title" value="$title" size="80"/></p>
20 <p>
21 <select name="category">
22 $for (nm, cid, nnm) in all_categories():
23 <option value="$cid" $:selected(nm)>$nnm</option>
24 </select>
25 </p>
26 <p>
27 <textarea rows="8" cols="90" name="description">$description</textarea>
28 </p>
29 <p>
30 <input type="text" name="tags" value="$tags" size="80"/>
31 </p>
32 <p>
33 <input type="submit" value="Submit Design Data"/>
34 </p>
35 </form>
36 <h1>Photos</h1>
37 $for image in images:
38 <form name="img_$loop.index" method="get" action="/edit/photo/$image/">
39 <img src="/static/photos/$image" />
40 <input type="hidden" name="design_id" value="$id" />
41 <input type="submit" value="Delete This Photo" />
42 </form>
43 <p>
44 <form name="img_upload" method="get" action="/edit/photo/">
45 <input type="hidden" name="id" value="$five(id)" />
46 <input type="submit" value="Upload New Photo" />
47 </form>
48 </p>
49 <h1>Delete</h1>
50 <p>
51 <a href="/edit/delete/$five(id)/">Delete This Design</a>
52 </p>
53 </div>
1 $def with (design_list, page, show_left, show_right)
2 <p><a href="/edit/about/">Edit About Text</a></p>
3 <form name="add-new" action="/edit/design/" method="post">
4 <input type="submit" value="Add New Design" />
5 </form>
6 $for name, photo, id in design_list:
7 <div class="design-edit-tile">
8 <img src="/static/photos/$thumb(photo)" />
9 <a href="/edit/design/$five(id)/">
10 <span class="title">$name</span>
11 </a> &mdash;
12 <a href="/edit/delete/$five(id)/">
13 Delete this design
14 </a>
15 </div>
16 <div class="lrnav">
17 $if show_left:
18 <a href="/edit/design/?page=$(page - 1)">&lt;&lt;</a>
19 $if show_right:
20 <a href="/edit/design/?page=$(page + 1)">&gt;&gt;</a>
21 </div>
1 $def with(name, page)
2 <form name="edit-form" method="post" action="/edit/pages/$name/">
3 Title: <input name="title" type="text" value="$page.title"/><br/>
4 <textarea name="text" rows="25" cols="65">$page.text</textarea><br/>
5 <input type="submit" value="Change $(page.title) Text" />
6 </form>
1 $def with(pages)
2 The following pages currently exist:
3 <ul>
4 $for pg in pages:
5 <li><a href="/edit/pages/$pg.name/">$pg.title</a></li>
6 </ul>
1 $def with ()
2 <form name="file-form" enctype="multipart/form-data" method="post" action="/edit/file/">
3 <input type="file" name="file" />
4 <input type="submit" value="Upload Photo" />
5 </form>
1 $def with (title, contents)
2 <?xml version="1.0" encoding="utf-8"?>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head>
7 <script>
8 /* Google Analytics malarkey */
9 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
10 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
11 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
12 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
13
14 ga('create', 'UA-43663896-1', 'fronyritterdesigns.com');
15 ga('send', 'pageview');
16 </script>
17 <meta http-equiv="Content-Type" contents="application/xhtml+xml; charset=utf-8;" />
18 <meta name="description" content="Cross-Stitch Patterns and Other Crafts from Frony Ritter Designs" />
19 <link rel="stylesheet" type="text/css" href="/static/standard.css" />
20 <title>Frony Ritter Designs &ndash; $title</title>
21 </head>
22 <body>
23 <div id="page">
24 <div id="header">
25 <p>
26 <a href="/"><img src="/static/frd_logo.png"/></a>
27 </p>
28 <p>$title</p>
29 </div>
30 <div id="sidebyside">
31 <div class="topnav">
32 <ul>
33 <a href="/"><li class="topitem">Home</li></a>
34 <a href="http://blog.fronyritterdesigns.com/"><li class="topitem">Blog</li></a>
35
36 <a href="/category/charts"><li class="topitem">Cross-Stitch Charts</li></a>
37
38 <ul>
39 <a href="/category/charts/tag/celtic"><li class="topitem">Celtic Series</li></a>
40 <a href="/category/charts/tag/spring"><li class="topitem">Spring Series</li></a>
41 <a href="/category/charts/tag/summer"><li class="topitem">Summer Series</li></a>
42 <a href="/category/charts/tag/fall"><li class="topitem">Fall Series</li></a>
43 <a href="/category/charts/tag/winter"><li class="topitem">Winter Series</li></a>
44 <a href="/category/charts/tag/flags"><li class="topitem">Flags</li></a>
45 <a href="/category/charts/tag/booklets"><li class="topitem">Booklets</li></a>
46 <a href="/category/charts/tag/kits"><li class="topitem">Kits</li></a>
47 <a href="/category/charts/tag/minis"><li class="topitem">Minis</li></a>
48 <a href="/category/charts/tag/large"><li class="topitem">Large Charts</li></a>
49 <a href="/category/charts/tag/recipe"><li class="topitem">Small-Batch Recipe</li></a>
50 </ul>
51
52 <a href="/category/papercrafting" ><li class="topitem" >Papercraft Ideas</li></a>
53 <ul>
54 <a href="/tag/cards"><li class="topitem">Cards</li></a>
55 <a href="/tag/tags"><li class="topitem">Tags</li></a>
56 <a href="/tag/placecards"><li class="topitem">Placecards</li></a>
57 <a href="/tag/boxes"><li class="topitem">Boxes</li></a>
58 <a href="/tag/bags"><li class="topitem">Bags</li></a>
59 </ul>
60
61 <a href="/category/beading" ><li class="topitem" >Beading</li></a>
62
63 <a href="/category/paintings"><li class="topitem">Painting</li></a>
64
65 <a href="/tag/free"><li class="topitem">Free Patterns</li></a>
66 <ul>
67 <a href="/category/charts/tag/free"><li class="topitem">Cross-Stitch</li></a>
68 <a href="/category/paintings/tag/free"><li class="topitem">Painting</li></a>
69 <a href="/category/beading/tag/free"><li class="topitem">Beading</li></a>
70 </ul>
71
72 <a href="/category/gallery"><li class="topitem">Stitchers' Gallery</li></a>
73
74 <a href="/wheretobuy"><li class="topitem">Where To Buy</li></a>
75 <a href="/retailinfo"><li class="topitem">Info For Retailers</li></a>
76 <a href="/corrections/"><li class="topitem">Corrections</li></a>
77 <a href="/about/"><li class="topitem">About</li></a>
78
79 </ul>
80 </div>
81 <div id="contents">
82 $:contents
83 </div>
84 <div style="clear: both;"></div>
85 </div>
86 <div id="footer">
87 &copy;2017 | <a href="/about/">About</a> | <a href="/contact/">Contact</a>
88 </div>
89 </div>
90 </body>
91 </html>
1 $def with (title, contents)
2 <?xml version="1.0" encoding="utf-8"?>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head>
7 <script>
8 /* Google Analytics malarkey */
9 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
10 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
11 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
12 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
13
14 ga('create', 'UA-43663896-1', 'fronyritterdesigns.com');
15 ga('send', 'pageview');
16 </script>
17 <meta http-equiv="Content-Type" contents="application/xhtml+xml; charset=utf-8;" />
18 <meta name="description" content="Cross-Stitch Patterns and Other Crafts from Frony Ritter Designs" />
19 <link rel="stylesheet" type="text/css" href="/static/standard.css" />
20 <title>Frony Ritter Designs &ndash; $title</title>
21 </head>
22 <body>
23 <div id="page">
24 <div id="header">
25 <p>
26 <a href="/"><img src="/static/frd_logo.png"/></a>
27 </p>
28 <p>$title</p>
29 </div>
30 <div id="sidebyside">
31 <div class="topnav">
32 <ul>
33 <a href="/"><li class="topitem">Home</li></a>
34 <a href="/design/"><li class="topitem">All Designs</li></a>
35 <a href="/category/"><li class="topitem">By Category</li></a>
36 <a href="/tag/"><li class="topitem">By Tag</li></a>
37 <a href="http://blog.fronyritterdesigns.com"><li class="topitem">Blog</li></a>
38 <a href="/corrections/"><li class="topitem">Corrections</li></a>
39 <a href="/wheretobuy/"><li class="topitem">Where To Buy</li></a>
40 <a href="/retailinfo/"><li class="topitem">Info for Retailers</li></a>
41 <a href="/about/"><li class="topitem">About</li></a>
42 </ul>
43 </div>
44 <div id="contents">
45 $:contents
46 </div>
47 <div style="clear: both;"></div>
48 </div>
49 <div id="footer">
50 &copy;2013 | <a href="/about/">About</a> | <a href="/contact/">Contact</a>
51 </div>
52 </div>
53 </body>
54 </html>
1 $def with(id, design_id)
2 <img src="" />
3 Do you really want to delete this image?
4 <form name="img-delete" method="post" action="/edit/photo/$id/">
5 <input type="hidden" name="design_id" value="$design_id" />
6 <input type="submit" value="Yes"/>
7 </form>
8 <a href="/edit/design/$five(int(design_id))/">No</a>
1 $def with(seq, page=None, last_page=None, show_left=False, show_right=False)
2 <ul class="all-designs">
3 $for design in seq:
4 $:design
5 <li class="break"></li>
6 </ul>
7 $if page is not None:
8 <div class="lrnav"><ul>
9 <a href="/edit/view-photo/?page=0"><li class="navitem">Newest</li></a>
10 $if show_left:
11 <a href="/edit/view-photo/?page=$(page - 1)"><li class="navitem">Newer</li></a>
12 $else:
13 <li class="navitem greyed">Newer</li>
14 $if show_right:
15 <a href="/edit/view-photo/?page=$(page + 1)"><li class="navitem">Older</li></a>
16 $else:
17 <li class="navitem greyed">Older</li>
18 <a href="/edit/view-photo/?page=$last_page"><li class="navitem">Oldest</li></a>
19 <li class="break"></li>
20 </ul></div>
1 $def with(p)
2 <a href="/edit/view-photo/$five(p.id)/">
3 <li class="design-tile">
4 <img src="/static/photos/$thumb(p.filename)" alt="$five(p.id) photo" /><br/>
5 Photo $five(p.id)
6 </li>
7 </a>
1 $def with (n)
2 <form name="photo-form" enctype="multipart/form-data" method="post" action="/edit/photo/">
3 <input type="hidden" name="id" value="$n" />
4 <input type="file" name="file" />
5 <input type="submit" value="Upload Photo" />
6 </form>
1 $def with (catlist)
2 <div class="catlist">
3 $for name, _, nicename in catlist:
4 <a href="/category/$name/">$nicename</a>
5 </div>
1 $def with (taglist)
2 <div class="taglist" align="left">
3 $for name, pretty_name, num in taglist:
4 <a href="/tag/$name/">$pretty_name ($num)</a><br/>
5 </div>
1 $def with(id, filename)
2 <p>
3 <img src="/static/photos/$filename"/>
4 <input readonly="true" value="/static/photos/$filename" />
5 </p>