##// END OF EJS Templates
Patch 9725 Email templates of chinese simplified (Andy Wu)...
Patch 9725 Email templates of chinese simplified (Andy Wu) git-svn-id: http://redmine.rubyforge.org/svn/trunk@413 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r330:027bf93849e8
r410:a9a082f05cc3
Show More
settings.rhtml
114 lines | 5.1 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Localization plugin removed (replaced with GLoc)...
r12 <h2><%=l(:label_settings)%></h2>
Jean-Philippe Lang
0.3 unstable...
r10
Jean-Philippe Lang
* project settings split in 4 tabs...
r178 <div class="tabs">
<ul>
<li><%= link_to l(:label_information_plural), {}, :id=> "tab-info", :onclick => "showTab('info'); this.blur(); return false;" %></li>
<li><%= link_to l(:label_member_plural), {}, :id=> "tab-members", :onclick => "showTab('members'); this.blur(); return false;" %></li>
<li><%= link_to l(:label_version_plural), {}, :id=> "tab-versions", :onclick => "showTab('versions'); this.blur(); return false;" %></li>
<li><%= link_to l(:label_issue_category_plural), {}, :id=> "tab-categories", :onclick => "showTab('categories'); this.blur(); return false;" %></li>
</ul>
</div>
<div id="tab-content-info" class="tab-content">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% if authorize_for('projects', 'edit') %>
Jean-Philippe Lang
* new report: project activity...
r42 <% labelled_tabular_form_for :project, @project, :url => { :action => "edit", :id => @project } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
<% end %>
<% end %>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178 </div>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <div id="tab-content-members" class="tab-content" style="display:none;">
<%= error_messages_for 'member' %>
<table class="list">
Jean-Philippe Lang
project settings tabs redesign...
r179 <thead><th><%= l(:label_user) %></th><th><%= l(:label_role) %></th><th></th></thead>
<tbody>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% @project.members.find(:all, :include => [:role, :user]).sort{|x,y| x.role.position <=> y.role.position}.each do |member| %>
<% unless member.new_record? %>
<tr class="<%= cycle 'odd', 'even' %>">
<td><%= member.user.display_name %></td>
<td align="center">
Jean-Philippe Lang
* new report: project activity...
r42 <% if authorize_for('members', 'edit') %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% form_tag({:controller => 'members', :action => 'edit', :id => member}) do %>
<select name="member[role_id]">
Jean-Philippe Lang
Initial commit...
r2 <%= options_from_collection_for_select @roles, "id", "name", member.role_id %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </select>
Jean-Philippe Lang
* new report: project activity...
r42 <%= submit_tag l(:button_change), :class => "button-small" %>
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% end %>
Jean-Philippe Lang
* new report: project activity...
r42 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </td>
Jean-Philippe Lang
project settings tabs redesign...
r179 <td align="center">
Jean-Philippe Lang
deprecated ":post => true" replaced...
r188 <%= link_to_if_authorized l(:button_delete), {:controller => 'members', :action => 'destroy', :id => member}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </td>
</tr>
Jean-Philippe Lang
project settings tabs redesign...
r179 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tbody>
<% end; reset_cycle %>
Jean-Philippe Lang
* new report: project activity...
r42 </table>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% if authorize_for('projects', 'add_member') %>
<label><%=l(:label_member_new)%></label><br/>
<% form_tag({:controller => 'projects', :action => 'add_member', :tab => 'members', :id => @project}) do %>
<select name="member[user_id]">
Jean-Philippe Lang
* new report: project activity...
r42 <%= options_from_collection_for_select @users, "id", "display_name", @member.user_id %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </select>
<select name="member[role_id]">
Jean-Philippe Lang
* new report: project activity...
r42 <%= options_from_collection_for_select @roles, "id", "name", @member.role_id %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </select>
<%= submit_tag l(:button_add) %>
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178 </div>
<div id="tab-content-versions" class="tab-content" style="display:none;">
Jean-Philippe Lang
project settings tabs redesign...
r179 <table class="list">
<thead><th><%= l(:label_version) %></th><th><%= l(:field_effective_date) %></th><th><%= l(:field_description) %></th><th></th><th></th></thead>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tbody>
<% for version in @project.versions %>
<tr class="<%= cycle 'odd', 'even' %>">
<td><%=h version.name %></td>
<td align="center"><%= format_date(version.effective_date) %></td>
Jean-Philippe Lang
project settings tabs redesign...
r179 <td><%=h version.description %></td>
<td align="center"><%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %></td>
Jean-Philippe Lang
deprecated ":post => true" replaced...
r188 <td align="center"><%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %></td>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </td>
</tr>
Jean-Philippe Lang
project settings tabs redesign...
r179 <% end; reset_cycle %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tbody>
</table>
<%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %>
</div>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178
<div id="tab-content-categories" class="tab-content" style="display:none;">
Jean-Philippe Lang
project settings tabs redesign...
r179 <table class="list">
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <thead><th><%= l(:label_issue_category) %></th><th></th></thead>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tbody>
<% for @category in @project.issue_categories %>
<% unless @category.new_record? %>
<tr class="<%= cycle 'odd', 'even' %>">
<td>
<% form_tag({:controller => 'issue_categories', :action => 'edit', :id => @category}) do %>
<%= text_field 'category', 'name', :size => 25 %>
<% if authorize_for('issue_categories', 'edit') %>
<%= submit_tag l(:button_save), :class => "button-small" %>
<% end %>
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </td>
Jean-Philippe Lang
project settings tabs redesign...
r179 <td align="center">
Jean-Philippe Lang
deprecated ":post => true" replaced...
r188 <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => @category}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </td>
</tr>
<% end %>
<% end %>
Jean-Philippe Lang
project settings tabs redesign...
r179 </tbody>
Jean-Philippe Lang
* new report: project activity...
r42 </table>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% if authorize_for('projects', 'add_issue_category') %>
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% form_tag({:action => 'add_issue_category', :tab => 'categories', :id => @project}) do %>
Jean-Philippe Lang
* new report: project activity...
r42 <label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br/>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= error_messages_for 'issue_category' %>
Jean-Philippe Lang
* new report: project activity...
r42 <%= text_field 'issue_category', 'name', :size => 25 %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= submit_tag l(:button_create) %>
<% end %>
<% end %>
</div>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178
<%= tab = params[:tab] ? h(params[:tab]) : 'info'
javascript_tag "showTab('#{tab}');" %>