forked from bofh/fetsite
AutoCommit Mit Aug 19 23:03:02 CEST 2015
This commit is contained in:
@@ -3,4 +3,7 @@ module CalentriesHelper
|
|||||||
calentry_list=p.calentries
|
calentry_list=p.calentries
|
||||||
render(partial: "calentries/calentry_list", object: calentry_list, locals:{parent: p})
|
render(partial: "calentries/calentry_list", object: calentry_list, locals:{parent: p})
|
||||||
end
|
end
|
||||||
|
def new_calentry_div(p)
|
||||||
|
content_tag("div", "", id: divid_for(p, "new_calentry"))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<% if editor %>
|
<% if editor %>
|
||||||
<td>
|
<td>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><%= fa_icon("chevron-down") %> Actions</a>
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> <%= fa_icon("chevron-down") %> </a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li>
|
<li>
|
||||||
<%= link_to fa_icon("tag")+" Titlepic", set_titlepic_attachment_path(a,:params=>{:titlepic=>true}), remote: true %>
|
<%= link_to fa_icon("tag")+" Titlepic", set_titlepic_attachment_path(a,:params=>{:titlepic=>true}), remote: true %>
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
<%= render ce unless ce.nil? %>
|
<%= render ce unless ce.nil? %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div id="<%= divid_for(parent,"new_calentry") %>" >
|
|
||||||
<%= link_to "new Calentry", new_calentry_path(:object_id=>@neuigkeit.id, :object_type=>"Neuigkeit"), :remote=>true if can? :edit, @neuigkeit %>
|
<%#= link_to "new Calentry", new_calentry_path(:object_id=>@neuigkeit.id, :object_type=>"Neuigkeit"), :remote=>true if can? :edit, @neuigkeit %>
|
||||||
</div>
|
|
||||||
|
|||||||
@@ -1,16 +1,19 @@
|
|||||||
<span class="btn-group">
|
<span class="btn-group">
|
||||||
<%= link_to fa_icon("edit"), "#", class: "btn" %>
|
<%= link_to(fa_icon("edit"), edit_rubrik_neuigkeit_path( @neuigkeit.rubrik, @neuigkeit), remote: true , class: "btn") if can? :edit, @neuigkeit %>
|
||||||
<%= link_to fa_icon("paperclip"), "#", class: "btn" %>
|
<%= link_to fa_icon("paperclip"), "#", class: "btn", id: "attachments-form-open"%>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="dropdown" style="display:inline">
|
<% if can?(:edit, @neuigkeit) %>
|
||||||
|
<div class="dropdown" style="display:inline">
|
||||||
<%= link_to fa_icon("plus"), "#", class: "btn dropdown-toggle", data: {toggle: "dropdown"}, title: "plus" %>
|
<%= link_to fa_icon("plus"), "#", class: "btn dropdown-toggle", data: {toggle: "dropdown"}, title: "plus" %>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li>
|
<li>
|
||||||
|
<%= link_to fa_icon("calendar-o")+" Neuer Kalendareintrag", new_calentry_path(:object_id=>@neuigkeit.id, :object_type=>"Neuigkeit"), :remote=>true if can? :edit, @neuigkeit %>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
<div class="dropdown pull-right">
|
<div class="dropdown pull-right">
|
||||||
<a class="dropdown-toggle btn" data-toggle="dropdown" title="publish" href="#"><%= fa_icon("mail-forward")%></a>
|
<a class="dropdown-toggle btn" data-toggle="dropdown" title="publish" href="#"><%= fa_icon("mail-forward")%></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
@@ -18,3 +21,26 @@
|
|||||||
<%= li_tag(link_to(ff_icon("icon-plus")+ I18n.t('neuigkeit.publish'), publish_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit)) )%>
|
<%= li_tag(link_to(ff_icon("icon-plus")+ I18n.t('neuigkeit.publish'), publish_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit)) )%>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="ui-dialog" id="attachments-form">
|
||||||
|
<%= render_new_attachments_for(@neuigkeit, fa_icon("plus"), {class: "btn"}) %>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function(){
|
||||||
|
dialogatt = $( "#attachments-form" ).dialog({
|
||||||
|
autoOpen: false,
|
||||||
|
width: "90%",
|
||||||
|
modal: true,
|
||||||
|
title: "Neue Attachments",
|
||||||
|
buttons: {
|
||||||
|
"Fertig": function() {
|
||||||
|
dialogatt.dialog( "close" );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$("#attachments-form-open").on("click",function(){dialogatt.dialog("open")})
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,8 @@
|
|||||||
<%= meta_itemprop("sameAs", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
<%= meta_itemprop("sameAs", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
||||||
<%= meta_itemprop("url", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
<%= meta_itemprop("url", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
||||||
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= render partial: "menu" %>
|
<%= render partial: "menu" %>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
@@ -52,7 +48,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= render_calentries_for(neuigkeit_view)%>
|
<%= render_calentries_for(neuigkeit_view)%>
|
||||||
|
<%= new_calentry_div(neuigkeit_view) %>
|
||||||
<% unless neuigkeit_view.meeting.nil? %>
|
<% unless neuigkeit_view.meeting.nil? %>
|
||||||
<%= render neuigkeit_view.meeting %>
|
<%= render neuigkeit_view.meeting %>
|
||||||
<% end%>
|
<% end%>
|
||||||
@@ -63,7 +59,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= render_new_attachments_for(neuigkeit_view, fa_icon("plus"), {class: "btn"}) %>
|
|
||||||
|
|
||||||
|
|
||||||
<%= new_question_for(neuigkeit_view) if can? :new, Survey::Question %>
|
<%= new_question_for(neuigkeit_view) if can? :new, Survey::Question %>
|
||||||
|
|||||||
Reference in New Issue
Block a user