forked from bofh/fetsite
upload beispiele attachments...
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<%= semantic_form_for [@thema,@attachment],:remote=>true do |f| %>
|
||||
<%= semantic_form_for [@thema,@attachment], :remote=>true do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
|
||||
<%= token_tag form_authenticity_token %>
|
||||
<%= f.input :datei, :as => :file %>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>")
|
||||
alert('create_attachment');
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>");
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>")
|
||||
alert('new.js.erb')
|
||||
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )+ @action.to_s%>");
|
||||
$('document').trigger('ready');
|
||||
alert('ready')
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
<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 -->
|
||||
<div class="row ">
|
||||
|
||||
@@ -10,7 +11,7 @@
|
||||
<i class="icon-plus icon-white"></i>
|
||||
<span>Add files...</span>
|
||||
<%= f.file_field :beispieldatei, :multiple=>true %>
|
||||
<%= f.input :lva %>
|
||||
<% f.input :lva %>
|
||||
</span>
|
||||
<button type="submit" class="btn btn-primary start">
|
||||
<i class="icon-upload icon-white"></i>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="row-fluid">
|
||||
|
||||
<div class="span8">
|
||||
<h4>Neueste Beispiele</h4>
|
||||
<h4>Neueste Beispiele in unserer Sammlung</h4>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<%= link_to I18n.t("beispiel.add"), new_beispiel_path, :class=>"btn"%>
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
<div class="content-wrap content-column">
|
||||
<h1><%= I18n.t('home.willkommen') %></h1>
|
||||
<p><%= I18n.t('home.hallobeiderfet') %></p>
|
||||
<ul class="unstyled linkbox-list" style="max-width:70em">
|
||||
<% @neuigkeiten.each do |n| %>
|
||||
<li><%= render n if can?(:show, n) %> </li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<p>
|
||||
<%= link_to "FET Login", user_omniauth_authorize_path(:ldap) %>
|
||||
</p>
|
||||
<div class="alert">
|
||||
<h2>Beta Test</h2>
|
||||
<p>Die Webseite befindet sich derzeit in einem Entsicklungsstadium,
|
||||
@@ -19,7 +28,6 @@
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<p><%= I18n.t('home.hallobeiderfet') %></p>
|
||||
<%= link_to "Entwicklungsstatus" , home_dev_path %>
|
||||
<%= render 'beispiele' %>
|
||||
|
||||
|
||||
@@ -13,16 +13,16 @@
|
||||
<%= neuigkeit.title%>
|
||||
</h1>
|
||||
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%>
|
||||
</div>
|
||||
<% if neuigkeit.has_calentries? %>
|
||||
<div class="pull-right" href="#">
|
||||
<%= image_tag("/iconnavy/time.png") %>
|
||||
<% unless neuigkeit.calentries.upcoming.empty? %>
|
||||
<%= neuigkeit.calentries.upcoming.first.text %>
|
||||
<% else unless neuigkeit.calentries.recent.empty? %>
|
||||
<%= neuigkeit.calentries.recent.first.text %>
|
||||
<% end %><% end %>
|
||||
</div>
|
||||
<% if neuigkeit.has_calentries? %>
|
||||
<div class="pull-right" href="#">
|
||||
<%= image_tag("/iconnavy/time.png") %>
|
||||
<% unless neuigkeit.calentries.upcoming.empty? %>
|
||||
<%= neuigkeit.calentries.upcoming.first.text %>
|
||||
<% else unless neuigkeit.calentries.recent.empty? %>
|
||||
<%= neuigkeit.calentries.recent.first.text %>
|
||||
<% end %><% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#themaview").html("<%= escape_javascript(raw("<h2>Bearbeiten</h2>")+render(:partial=>"themen/form") )%>");
|
||||
$("#themaview").html("<%= escape_javascript(raw("<h2>"+I18n.t('thema.edit')+"</h2>")+render(:partial=>"themen/form") )%>");
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<li id="themen_<%= thema.id %>" class="sort" ><div class="contentbox handle" ><h2><%= thema.title %></h2> </div> <%= link_to edit_thema_path(thema),:remote=>true do %> Edit <% end %> <%= link_to thema_fragen_path(thema),:remote=>true do %> Fragen <% end %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<%= link_to new_themengruppe_thema_path(@themengruppe),:remote=>true do %> New Thema <% end %>
|
||||
</div>
|
||||
<div class="span8">
|
||||
<div id="themaview"></div>
|
||||
|
||||
Reference in New Issue
Block a user