##// END OF EJS Templates
Reverting commit r1748. Some environments are not allowing the cached file to...
Reverting commit r1748. Some environments are not allowing the cached file to write to public, causing all JavaScript to fail. Javascripts are now cached into a single file for downloads in production mode. #1186 git-svn-id: http://redmine.rubyforge.org/svn/trunk@1771 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1278:805864590a49
r1770:8f3a04ce6906
Show More
list.rhtml
58 lines | 3.0 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
0.3 unstable...
r10 <h2><%=l(:label_custom_field_plural)%></h2>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203
Jean-Philippe Lang
Do not use javascript to hide tabs content on page loading and make tabs work with javascript disabled....
r1278 <% selected_tab = params[:tab] ? params[:tab].to_s : custom_fields_tabs.first[:name] %>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 <div class="tabs">
<ul>
Jean-Philippe Lang
Do not use javascript to hide tabs content on page loading and make tabs work with javascript disabled....
r1278 <% custom_fields_tabs.each do |tab| -%>
<li><%= link_to l(tab[:label]), { :tab => tab[:name] },
:id => "tab-#{tab[:name]}",
:class => (tab[:name] != selected_tab ? nil : 'selected'),
:onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li>
<% end -%>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 </ul>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203
Jean-Philippe Lang
Do not use javascript to hide tabs content on page loading and make tabs work with javascript disabled....
r1278 <% custom_fields_tabs.each do |tab| %>
<div id="tab-content-<%= tab[:name] %>" class="tab-content" style="<%= tab[:name] != selected_tab ? 'display:none' : nil %>">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <table class="list">
Jean-Philippe Lang
css cleaning...
r105 <thead><tr>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <th width="30%"><%=l(:field_name)%></th>
<th><%=l(:field_field_format)%></th>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 <th><%=l(:field_is_required)%></th>
Jean-Philippe Lang
Do not use javascript to hide tabs content on page loading and make tabs work with javascript disabled....
r1278 <% if tab[:name] == 'IssueCustomField' %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <th><%=l(:field_is_for_all)%></th>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 <th><%=l(:label_used_by)%></th>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
Jean-Philippe Lang
Custom fields can now be reordered....
r888 <th><%=l(:button_sort)%></th>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <th width="10%"></th>
Jean-Philippe Lang
css cleaning...
r105 </tr></thead>
<tbody>
Jean-Philippe Lang
Do not use javascript to hide tabs content on page loading and make tabs work with javascript disabled....
r1278 <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tr class="<%= cycle("odd", "even") %>">
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 <td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format][:name]) %></td>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 <td align="center"><%= image_tag 'true.png' if custom_field.is_required? %></td>
Jean-Philippe Lang
Do not use javascript to hide tabs content on page loading and make tabs work with javascript disabled....
r1278 <% if tab[:name] == 'IssueCustomField' %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <td align="center"><%= image_tag 'true.png' if custom_field.is_for_all? %></td>
Jean-Philippe Lang
0.3 unstable...
r10 <td align="center"><%= custom_field.projects.count.to_s + ' ' + lwr(:label_project, custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 <% end %>
Jean-Philippe Lang
Custom fields can now be reordered....
r888 <td align="center" style="width:15%;">
<%= link_to image_tag('2uparrow.png', :alt => l(:label_sort_highest)), {:action => 'move', :id => custom_field, :position => 'highest'}, :method => :post, :title => l(:label_sort_highest) %>
<%= link_to image_tag('1uparrow.png', :alt => l(:label_sort_higher)), {:action => 'move', :id => custom_field, :position => 'higher'}, :method => :post, :title => l(:label_sort_higher) %> -
<%= link_to image_tag('1downarrow.png', :alt => l(:label_sort_lower)), {:action => 'move', :id => custom_field, :position => 'lower'}, :method => :post, :title => l(:label_sort_lower) %>
<%= link_to image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), {:action => 'move', :id => custom_field, :position => 'lowest'}, :method => :post, :title => l(:label_sort_lowest) %>
</td>
Jean-Philippe Lang
Initial commit...
r2 <td align="center">
Jean-Philippe Lang
tables and forms redesign,...
r19 <%= button_to l(:button_delete), { :action => 'destroy', :id => custom_field }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
</td>
Jean-Philippe Lang
Initial commit...
r2 </tr>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 <% end; reset_cycle %>
Jean-Philippe Lang
css cleaning...
r105 </tbody>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 </table>
Jean-Philippe Lang
Do not use javascript to hide tabs content on page loading and make tabs work with javascript disabled....
r1278
<p><%= link_to l(:label_custom_field_new), {:action => 'new', :type => tab[:name]}, :class => 'icon icon-add' %></p>
Jean-Philippe Lang
custom fields list screen split in 3 tabs (one for each kind of custom fields)...
r203 </div>
<% end %>
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title(l(:label_custom_field_plural)) -%>