proper type dropdown for files now
[phorkie.git] / data / templates / edit-file.htm
index b22314d1540efc25aea3d9f18dc4e5d7bad82e16..37f92538486aa853925965460573a7ef86cd40c6 100644 (file)
@@ -1,4 +1,4 @@
- <div class="well">
+ <div class="well filegroup" id="filegroup{{fileid}}">
   <div class="row-fluid">
    <div class="span6">
     <label for="filename_1">Filename</label>
@@ -9,12 +9,10 @@
     <label for="type_{{fileid}}">Type</label>
     <!-- fixme: preselect -->
     <select name="files[{{fileid}}][type]" id="type_{{fileid}}">
-     <option value="css">CSS</option>
-     <option value="php">PHP</option>
-     <option value="xml">XML</option>
+     {{htmlhelper.getLanguageOptions(file)|raw}}
     </select>
    </div>
   </div>
-  <textarea name="files[{{fileid}}][content]" id="content_{{fileid}}" cols="80" rows="10" class="content">{{file.getContent}}</textarea>
+  <textarea name="files[{{fileid}}][content]" id="content_{{fileid}}" cols="80" rows="15" class="content">{{file.getContent}}</textarea>
  </div>