Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
schildergenerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
schilder
schildergenerator
Commits
693a88a8
Commit
693a88a8
authored
Jul 31, 2015
by
Dave Kliczbor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed conditional markup on edit template. so much shorter now...
parent
b48f7a7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
48 deletions
+5
-48
templates/edit.html
templates/edit.html
+5
-48
No files found.
templates/edit.html
View file @
693a88a8
...
...
@@ -26,21 +26,7 @@
<label
for=
"form:template"
>
Wähle eine TeX-Vorlage:
</label>
<ul>
<li
py:for=
"textemplate in templates"
>
<py:choose>
<py:when
test=
"defined('form')"
>
<py:choose>
<py:when
test=
"textemplate == form.textemplate"
>
<input
type=
"radio"
name=
"textemplate"
id=
"tpl:${textemplate}"
value=
"${textemplate}"
checked=
"True"
/>
</py:when>
<py:otherwise>
<input
type=
"radio"
name=
"textemplate"
id=
"tpl:${textemplate}"
value=
"${textemplate}"
/>
</py:otherwise>
</py:choose>
</py:when>
<py:otherwise>
<input
type=
"radio"
name=
"textemplate"
id=
"tpl:${textemplate}"
value=
"${textemplate}"
/>
</py:otherwise>
</py:choose>
<input
type=
"radio"
name=
"textemplate"
id=
"tpl:${textemplate}"
value=
"${textemplate}"
py:attrs=
"{'checked':'checked'} if defined('form') and textemplate == form.textemplate else {}"
/>
<label
for=
"tpl:${textemplate}"
><img
src=
"${ url_for('tplthumbnail', tplname=textemplate, maxgeometry=72) }"
alt=
"${textemplate}"
title=
"${textemplate}"
/></label>
</li>
</ul>
...
...
@@ -52,16 +38,8 @@
<div
class=
"box"
>
<label
for=
"form:text"
>
Text
</label>
<select
name=
"markup"
>
<py:choose>
<py:when
test=
"not defined('form') or form.markup == 'rst' or form.markup == ''"
>
<option
value=
"latex"
>
LaTeX
</option>
<option
value=
"rst"
selected=
"True"
>
Wiki (reStructuredText)
</option>
</py:when>
<py:when
test=
"defined('form') and form.markup == 'latex'"
>
<option
value=
"latex"
selected=
"True"
>
LaTeX
</option>
<option
value=
"rst"
>
Wiki (reStructuredText)
</option>
</py:when>
</py:choose>
<option
value=
"latex"
py:attrs=
"{'selected':'True'} if not defined('form') or form.markup == 'rst' or form.markup == '' else {}"
>
LaTeX
</option>
<option
value=
"rst"
py:attrs=
"{'selected':'True'} if defined('form') and form.markup == 'latex' else {}"
>
Wiki (reStructuredText)
</option>
</select>
<textarea
name=
"text"
id=
"form:text"
cols=
"35"
rows=
"5"
><py:if
test=
"defined('form')"
>
${form.text}
</py:if></textarea>
</div><br/>
...
...
@@ -72,14 +50,7 @@
<label
for=
"form:img"
>
Wähle ein Bild (falls auf Vorlage anwendbar):
</label>
<ul>
<li>
<py:choose>
<py:when
test=
"defined('form')"
>
<input
type=
"radio"
name=
"img"
id=
"img--none"
value=
"__none"
checked=
"${form.img == '__none'}"
/>
</py:when>
<py:otherwise>
<input
type=
"radio"
name=
"img"
id=
"img--none"
value=
"__none"
checked=
"checked"
/>
</py:otherwise>
</py:choose>
<input
type=
"radio"
name=
"img"
id=
"img--none"
value=
"__none"
py:attrs=
"{'checked':'checked'} if defined('form') and form.img == '__none' else {}"
/>
<label
for=
"img--none"
>
Kein Bild
</label>
</li>
<li>
...
...
@@ -90,21 +61,7 @@
</ul>
<ul>
<li
py:for=
"img in images"
>
<py:choose>
<py:when
test=
"defined('form')"
>
<py:choose>
<py:when
test=
"img == form.img"
>
<input
type=
"radio"
name=
"img"
id=
"img:${img}"
value=
"${img}"
checked=
"True"
/>
</py:when>
<py:otherwise>
<input
type=
"radio"
name=
"img"
id=
"img:${img}"
value=
"${img}"
/>
</py:otherwise>
</py:choose>
</py:when>
<py:otherwise>
<input
type=
"radio"
name=
"img"
id=
"img:${img}"
value=
"${img}"
/>
</py:otherwise>
</py:choose>
<input
type=
"radio"
name=
"img"
id=
"img:${img}"
value=
"${img}"
py:attrs=
"{'checked':'checked'} if defined('form') and form.img == img else {}"
/>
<label
for=
"img:${img}"
><img
src=
"${ url_for('thumbnail', imgname=img, maxgeometry=100) }"
alt=
"${img}"
title=
"${img}"
/></label>
</li>
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment