CHANGE: Themengruppe verwenden pretty_toolbar
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -2,5 +2,7 @@
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<!--
|
||||
<%= link_to 'Show', @themengruppe %> |
|
||||
<%= link_to 'Back', themengruppen_path %>
|
||||
-->
|
||||
|
||||
@@ -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 %>
|
||||
-->
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
|
||||
<br/><br/>
|
||||
|
||||
|
||||
<!--
|
||||
<%= link_to 'Edit', edit_themengruppe_path(@themengruppe) %> |
|
||||
<%= link_to 'Back', themengruppen_path %>
|
||||
-->
|
||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
||||
|
||||
Reference in New Issue
Block a user