forked from bofh/fetsite
AutoCommit Mon Jun 8 17:03:02 CEST 2015
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<div class="contentbox" id="calentry_<%= calentry.id%>">
|
||||
<% image_tag("/iconnavy/time.png") %>
|
||||
<%= calentry.icon_text %>
|
||||
<% if !(defined? manage) || manage %>
|
||||
<%= link_to "edit", edit_calentry_path(calentry),:remote=>true if can? :edit, calentry %>
|
||||
|
||||
6
app/views/calentries/_calentry_list.html.erb
Normal file
6
app/views/calentries/_calentry_list.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<div id="calentries_<%= parent.class.to_s + "_" + parent.id.to_s %>">
|
||||
<% calentry_list.each do |ce|%>
|
||||
<%= render ce unless ce.nil? %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div id="calentry_new_<%= parent.class.to_s + "_" + parent.id.to_s %>" ><%= link_to "new Calentry", new_calentry_path(:object_id=>@neuigkeit.id, :object_type=>"Neuigkeit"), :remote=>true if can? :edit, @neuigkeit %></div>
|
||||
@@ -1,3 +1,3 @@
|
||||
$("#calentry_new").replaceWith("<div id=\"calentry_new\"><%=escape_javascript( render :partial=>"nested_form" ,:object=>@calentry) %></div>");
|
||||
$("#calentry_new_<%= @calentry.object.class.to_s + "_" + @calentry.object.id.to_s %>").replaceWith("<div id=\"calentry_new_<%= @calentry.object.class.to_s + "_" + @calentry.object.id.to_s %>\"><%=escape_javascript( render :partial=>"nested_form" ,:object=>@calentry) %></div>");
|
||||
$('.datetimepicker').datetimepicker({format: 'd.m.Y H:i', startDate: (!($(this).attr("value")==undefined))? $(this).attr("value"): ""})
|
||||
|
||||
Reference in New Issue
Block a user