forked from bofh/fetsite
Einbindung von Beispielen
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :desc %>
|
||||
<%= f.input :file , :as=>:file %>
|
||||
<%= f.file_field :beispieldatei %>
|
||||
<%= f.hidden_field :beispieldatei_cache %>
|
||||
<%= f.input :lva, :as=>:radio, :collection => Lva.all%>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<p>
|
||||
<b>Desc:</b>
|
||||
<%= @beispiel.desc %>
|
||||
<%= @beispiel.file.url %>
|
||||
<%= @beispiel.beispieldatei.url %>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
@@ -18,5 +18,11 @@
|
||||
<p>
|
||||
<%= @lva.desc %>
|
||||
</p>
|
||||
<ul>
|
||||
<% @lva.beispiele.each do |b|%>
|
||||
|
||||
<li><%= render b%></li>
|
||||
|
||||
<% end %>
|
||||
</ul>
|
||||
<%= toolbar_html(@toolbar_elements) %>
|
||||
|
||||
Reference in New Issue
Block a user