diff options
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/edit-file.htm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/data/templates/edit-file.htm b/data/templates/edit-file.htm index a1993c5..aca61f9 100644 --- a/data/templates/edit-file.htm +++ b/data/templates/edit-file.htm @@ -1,4 +1,11 @@ <div class="well filegroup" id="filegroup{{fileid}}"> + {% if not file or file.isText %} + <textarea name="files[{{fileid}}][content]" id="content_{{fileid}}" cols="80" rows="15" class="content">{{file.getContent}}</textarea> + {% else %} + <p style="text-align: center"> + Binary files cannot be edited. + </p> + {% endif %} <div class="row-fluid"> <div class="span6"> <input type="hidden" name="files[{{fileid}}][original_name]" value="{{file.getFilename}}"/> @@ -14,13 +21,6 @@ <p class="muted">Type determined from filename</p> </div> </div> - {% if not file or file.isText %} - <textarea name="files[{{fileid}}][content]" id="content_{{fileid}}" cols="80" rows="15" class="content">{{file.getContent}}</textarea> - {% else %} - <p style="text-align: center"> - Binary files cannot be edited. - </p> - {% endif %} <div class="row-fluid"> <div class="span9"> <label for="upload_{{fileid}}" class="inline">Replace with upload:</label> |
