fetprofiles
This commit is contained in:
@@ -9,6 +9,7 @@ class FetprofilesController < ApplicationController
|
|||||||
@fetprofiles = Fetprofile.order(:vorname,:nachname) if params[:filter]== "all"
|
@fetprofiles = Fetprofile.order(:vorname,:nachname) if params[:filter]== "all"
|
||||||
@fetprofiles = Fetprofile.where(:active=>false).order(:nachname,:vorname) if params[:filter]== "notactive"
|
@fetprofiles = Fetprofile.where(:active=>false).order(:nachname,:vorname) if params[:filter]== "notactive"
|
||||||
|
|
||||||
|
|
||||||
@gremientabs = Gremium.tabs
|
@gremientabs = Gremium.tabs
|
||||||
@toolbar_elements << {:hicon=>'icon-plus', :text=> I18n.t('profile.new_profile'),:path => new_fetprofile_path(@fetprofile) } if can? :new, @fetprofile
|
@toolbar_elements << {:hicon=>'icon-plus', :text=> I18n.t('profile.new_profile'),:path => new_fetprofile_path(@fetprofile) } if can? :new, @fetprofile
|
||||||
|
|
||||||
@@ -16,11 +17,11 @@ class FetprofilesController < ApplicationController
|
|||||||
format.html # index.html.erb
|
format.html # index.html.erb
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def internlist
|
def internlist
|
||||||
@fetprofiles = Fetprofile.order(:vorname,:nachname)
|
@fetprofiles = Fetprofile.order(:vorname,:nachname)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# GET /fetprofiles/1
|
# GET /fetprofiles/1
|
||||||
# GET /fetprofiles/1.json
|
# GET /fetprofiles/1.json
|
||||||
def show
|
def show
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
|
|
||||||
<span class="pull-left">
|
<span class="pull-left">
|
||||||
<%= image_tag fetprofile.picture.portrait.url %>
|
<%= image_tag fetprofile.picture.thumb.url %>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
|
|||||||
7
app/views/fetprofiles/_list_row.html.erb
Normal file
7
app/views/fetprofiles/_list_row.html.erb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<tr>
|
||||||
|
<td><%= image_tag list_row.picture.thumb.url %> </td>
|
||||||
|
<td><%= list_row.name %> </td>
|
||||||
|
<td><%= list_row.short %> </td>
|
||||||
|
<td><%= list_row.fetmail %> </td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
<div class="span12">
|
<div class="span12">
|
||||||
<%= render 'layouts/pretty_toolbar' %>
|
<%= render 'layouts/pretty_toolbar' %>
|
||||||
|
|
||||||
|
|
||||||
<% link_to I18n.t('profile.new_profile'), new_fetprofile_path %>
|
<% link_to I18n.t('profile.new_profile'), new_fetprofile_path %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -45,6 +46,13 @@
|
|||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span12">
|
||||||
|
<%= link_to I18n.t('profile.new_profile'), new_fetprofile_path %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
7
app/views/fetprofiles/intern_list.html.erb
Normal file
7
app/views/fetprofiles/intern_list.html.erb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
Liste
|
||||||
|
<table>
|
||||||
|
<tr><th></th><th>Name</th><th></th><th>E-Mail</th></tr>
|
||||||
|
<% @fetprofiles.each do |fp| %>
|
||||||
|
<%= render partial: "fetprofiles/list_row", object: fp %>
|
||||||
|
<% end %>
|
||||||
|
</table>
|
||||||
Reference in New Issue
Block a user