started working on beispiel
This commit is contained in:
@@ -4,8 +4,15 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span8">
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<% unless @beispiel.beispieldatei.url.nil? %>
|
||||
Derzeitige Datei: <br>
|
||||
<b><%= @beispiel.beispieldatei.url.split("/").last %></b>
|
||||
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<%= f.file_field :beispieldatei, :label=>"Beispiel"%>
|
||||
<%= f.input :beispieldatei, :as=>:file, :label => "Neue Datei hochladen:", :value=>@beispiel.beispieldatei.url%>
|
||||
</div>
|
||||
<%=f.input :datum , :as => :datetimepicker %>
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<div class="container">
|
||||
<%= semantic_form_for [@lva,@beispiel], :remote=>true, :html => { :multipart => true, :id => "fileupload" } do |f| %>
|
||||
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
|
||||
|
||||
<div class="row ">
|
||||
|
||||
<div class="span7">
|
||||
@@ -129,7 +130,7 @@
|
||||
console.log(files);
|
||||
// no Download on Upload form
|
||||
//template = fu._renderDownload(files)
|
||||
//.appendTo($('#fileupload .files'));
|
||||
//.appendTo($('#fileupload .files'));
|
||||
// Force reflow:
|
||||
fu._reflow = fu._transition && template.length &&
|
||||
template[0].offsetWidth;
|
||||
|
||||
Reference in New Issue
Block a user