CHANGE: Themengruppe verwenden pretty_toolbar

This commit is contained in:
HausdorffHimself
2013-09-01 21:07:09 +02:00
parent 489dc933a2
commit 65b287d613
4 changed files with 28 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ class ThemengruppenController < ApplicationController
# GET /themengruppen.json
def index
@themengruppen = Themengruppe.all
@toolbar_elements = [{:icon=>:plus, :hicon=>'icon-plus-sign', :text=>I18n.t('themengruppe.new'), :path=>new_themengruppe_path()}]
respond_to do |format|
format.html # index.html.erb
@@ -14,6 +15,8 @@ class ThemengruppenController < ApplicationController
# GET /themengruppen/1.json
def show
@themengruppe = Themengruppe.find(params[:id])
@toolbar_elements = [{:icon=>:pencil, :hicon=>'icon-pencil', :text=>I18n.t('themengruppe.edit'), :path=>edit_themengruppe_path(@themengruppe)}]
@toolbar_elements << {:hicon=>'icon-remove-circle',:text=>I18n.t('themengruppe.remove'), :path=>themengruppe_path(@themengruppe), :method=>:delete,:confirm=>I18n.t('themengruppe.sure')}
respond_to do |format|
format.html # show.html.erb

View File

@@ -2,5 +2,7 @@
<%= render 'form' %>
<!--
<%= link_to 'Show', @themengruppe %> |
<%= link_to 'Back', themengruppen_path %>
-->

View File

@@ -7,7 +7,9 @@
<%= render themengruppe %>
<br/>
<div class="row-fluid">
<!--
<%= link_to 'Edit', edit_themengruppe_path(themengruppe) %>
-->
</div>
</div>
<br/>
@@ -25,4 +27,7 @@
-->
</script>
<%= render :partial=>'layouts/pretty_toolbar' %>
<!--
<%= link_to 'New Themengruppe', new_themengruppe_path %>
-->

View File

@@ -25,6 +25,8 @@
<br/><br/>
<!--
<%= link_to 'Edit', edit_themengruppe_path(@themengruppe) %> |
<%= link_to 'Back', themengruppen_path %>
-->
<%= render :partial=>'layouts/pretty_toolbar' %>