preparation for file editing
[phorkie.git] / data / templates / edit-file.htm
1  <div class="well">
2   <div class="row-fluid">
3    <div class="span6">
4     <label for="filename_1">Filename</label>
5     <input type="text" name="files[{{fileid}}][name]" id="filename_{{fileid}}" value="{{ file.getFilename }}"/>
6    </div>
7    <div class="span6" style="text-align: right">
8     <label for="type_{{fileid}}">Type</label>
9     <!-- fixme: preselect -->
10     <select name="files[{{fileid}}][type]" id="type_{{fileid}}">
11      <option value="css">CSS</option>
12      <option value="php">PHP</option>
13      <option value="xml">XML</option>
14     </select>
15    </div>
16   </div>
17   <textarea name="files[{{fileid}}][content]" id="content_1" cols="80" rows="10" class="content">{{ file.getContent }}</textarea>
18  </div>
19