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