OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/export_card_configurations/index.html.erb

87 lines
3.0 KiB

<%#-- copyright
OpenProject PDF Export Plugin
Copyright (C)2014 the OpenProject Foundation (OPF)
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License version 3.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.md for more details.
++#%>
<div class="contextual">
<%= link_to l(:label_export_card_configuration_new), {:action => 'new'}, :class => 'icon icon-add' %>
</div>
<% html_title l(:label_administration), l(:label_export_card_configuration_plural) %>
<h2><%=l(:label_export_card_configuration_plural)%></h2>
<table class="list">
<thead>
<tr>
<th>
<%= Type.human_attribute_name(:name) %>
</th>
<th>
<%= l(:export_config_page_size) %>
</th>
<th>
<%= l(:export_config_per_page) %>
</th>
<th>
<%= l(:export_config_orientation) %>
</th>
<th>
<%= Type.human_attribute_name(:active) %>
</th>
<th></th>
</tr>
</thead>
<tbody>
<% for config in @configs %>
<tr class="<%= cycle("odd", "even") %>">
<td ><%= link_to config.name, edit_pdf_export_export_card_configuration_path(config) %></td>
<td><%= config.page_size %></td>
<td><%= config.per_page %></td>
<td><%= config.orientation %></td>
<td><%= config.active %></td>
<td class="buttons">
<% if config.can_delete? %>
<%= link_to pdf_export_export_card_configuration_path(config), :method => :delete, :confirm => t(:text_are_you_sure), :class => 'icon-context icon-delete' do %>
<%= t(:button_delete) %>
<span class="hidden-for-sighted"><%=h config.name %></span>
<% end %>
<% end %>
<% if config.can_activate? %>
<%= link_to activate_pdf_export_export_card_configuration_path(config), :method => :post, :class => 'icon-context icon-delete' do %>
<%= t(:label_export_card_activate) %>
<span class="hidden-for-sighted"><%=h config.name %></span>
<% end %>
<% end %>
<% if config.can_deactivate? %>
<%= link_to deactivate_pdf_export_export_card_configuration_path(config), :method => :post, :class => 'icon-context icon-delete' do %>
<%= t(:label_export_card_deactivate) %>
<span class="hidden-for-sighted"><%=h config.name %></span>
<% end %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>