rename Phorkie to phorkie (lowercase)
[phorkie.git] / data / templates / edit.htm
index 6c1899ff9817be32c09bd2407389152301e81f5b..d60598f79741fe875cb1686ff7f2e2ca2adc4c50 100644 (file)
   {% include 'edit-file.htm' with {'file': file, 'fileid': fileid} %}
  {% endfor %}
 
-
- <div class="well" style="text-align: center; display:none" id="add-button">
-    <a class="btn" href="#">
-     <i class="icon-plus"></i>
-     Add file
-    </a>
- </div>
-
- {% include 'edit-file.htm' with {'file': '', 'fileid': 'new'} %}
-
+ {% include 'edit-add.htm' %}
 
  <div class="well">
   <div class="row-fluid">
  </div>
 
 </form>
-<script type="application/javascript">
-$(document).ready(function() {
-    $('#add-button').show();
-    $('#filegroupnew').hide();
-    $('#add-button a').bind('click', function() {
-        $('#add-button').before("{% filter escape('js') %}
-            {% include 'edit-file.htm' with {'file': '', 'fileid': '###'} %}
-            {% endfilter %}"
-            .replace(/###/g, $('.filegroup').length)
-        );
-        return false;
-    });
-});
-</script>
 {% endblock %}