git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix curly brace when accessing character inside string
[phorkie.git]
/
data
/
templates
/
edit.htm
diff --git
a/data/templates/edit.htm
b/data/templates/edit.htm
index db1f3f57ffc2fbb9dc7a5b2dcab0aa9d24439e21..912a073419941e7a50f6c95e5bcc0b464525a1b1 100644
(file)
--- a/
data/templates/edit.htm
+++ b/
data/templates/edit.htm
@@
-6,7
+6,8
@@
{% endblock %}
{% block content %}
{% endblock %}
{% block content %}
-<form method="post" action="{{repo.getLink('edit')}}" enctype="multipart/form-data" class="form-horizontal">
+<div class="content-padding-fix"></div>
+<form method="post" action="{{formaction}}" enctype="multipart/form-data" class="form-horizontal">
<div class="control-group">
<label class="control-label" for="description">Description</label>
<div class="controls">
<div class="control-group">
<label class="control-label" for="description">Description</label>
<div class="controls">
@@
-15,9
+16,15
@@
</div>
{% for fileid, file in repo.getFiles %}
</div>
{% for fileid, file in repo.getFiles %}
- {% include 'edit-file.htm' with {'file': file, 'fileid': fileid, 'newfile': false} %}
+ {% if not singlefile or file == singlefile %}
+ {% include 'edit-file.htm' with {'file': file, 'fileid': fileid, 'newfile': false} %}
+ {% endif %}
{% endfor %}
{% endfor %}
+ {% if singlefile == "newfile" %}
+ {% include 'edit-file.htm' with {'file': null, 'fileid': 'newfile', 'newfile': true} %}
+ {% endif %}
+
{% include 'edit-add.htm' %}
<div class="row-fluid formbuttons">
{% include 'edit-add.htm' %}
<div class="row-fluid formbuttons">