Merged rails-3.2 branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
34e20c4373
commit
5e57a1a9d9
457 files changed
+20215
-5352
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<%= call_hook :view_account_login_top %>
|
||||
<div id="login-form">
|
||||
<% form_tag({:action=> "login"}) do %>
|
||||
<%= form_tag({:action=> "login"}) do %>
|
||||
<%= back_url_hidden_field_tag %>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<h2><%=l(:label_password_lost)%></h2>
|
||||
|
||||
<div class="box">
|
||||
<% form_tag({:action=> "lost_password"}, :class => "tabular") do %>
|
||||
<%= form_tag({:action=> "lost_password"}, :class => "tabular") do %>
|
||||
|
||||
<p><label for="mail"><%=l(:field_mail)%> <span class="required">*</span></label>
|
||||
<%= text_field_tag 'mail', nil, :size => 40 %>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<%= error_messages_for 'user' %>
|
||||
|
||||
<% form_tag({:token => @token.value}) do %>
|
||||
<%= form_tag({:token => @token.value}) do %>
|
||||
<div class="box tabular">
|
||||
<p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
|
||||
<%= password_field_tag 'new_password', nil, :size => 25 %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2>
|
||||
|
||||
<% labelled_form_for @user, :url => {:action => 'register'} do |f| %>
|
||||
<%= labelled_form_for @user, :url => {:action => 'register'} do |f| %>
|
||||
<%= error_messages_for 'user' %>
|
||||
|
||||
<div class="box tabular">
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<% end %>
|
||||
|
||||
<% content_for :sidebar do %>
|
||||
<% form_tag({}, :method => :get) do %>
|
||||
<%= form_tag({}, :method => :get) do %>
|
||||
<h3><%= l(:label_activity) %></h3>
|
||||
<p><% @activity.event_types.each do |t| %>
|
||||
<%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="nodata">
|
||||
<% form_tag({:action => 'default_configuration'}) do %>
|
||||
<%= form_tag({:action => 'default_configuration'}) do %>
|
||||
<%= simple_format(l(:text_no_configuration_data)) %>
|
||||
<p><%= l(:field_language) %>:
|
||||
<%= select_tag 'lang', options_for_select(lang_options_for_select(false), current_language.to_s) %>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<h2><%=l(:label_project_plural)%></h2>
|
||||
|
||||
<% form_tag({}, :method => :get) do %>
|
||||
<%= form_tag({}, :method => :get) do %>
|
||||
<fieldset><legend><%= l(:label_filter_plural) %></legend>
|
||||
<label for='status'><%= l(:field_status) %> :</label>
|
||||
<%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
|
||||
</div>
|
||||
<p>
|
||||
<% form_tag({}, :method => 'get') do %>
|
||||
<%= form_tag({}, :method => 'get') do %>
|
||||
<label><%= l(:label_view_diff) %></label>
|
||||
<%= select_tag 'type',
|
||||
options_for_select(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_auth_source)%> (<%= h(@auth_source.auth_method_name) %>)</h2>
|
||||
|
||||
<% form_tag({:action => 'update', :id => @auth_source}, :method => :put, :class => "tabular") do %>
|
||||
<%= form_tag({:action => 'update', :id => @auth_source}, :method => :put, :class => "tabular") do %>
|
||||
<%= render :partial => auth_source_partial_name(@auth_source) %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_auth_source_new)%> (<%= h(@auth_source.auth_method_name) %>)</h2>
|
||||
|
||||
<% form_tag({:action => 'create'}, :class => "tabular") do %>
|
||||
<%= form_tag({:action => 'create'}, :class => "tabular") do %>
|
||||
<%= hidden_field_tag 'type', @auth_source.type %>
|
||||
<%= render :partial => auth_source_partial_name(@auth_source) %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= l(:label_board) %></h2>
|
||||
|
||||
<% labelled_form_for @board, :url => project_board_path(@project, @board) do |f| %>
|
||||
<%= labelled_form_for @board, :url => project_board_path(@project, @board) do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= l(:label_board_new) %></h2>
|
||||
|
||||
<% labelled_form_for @board, :url => project_boards_path(@project) do |f| %>
|
||||
<%= labelled_form_for @board, :url => project_boards_path(@project) do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<% end %>
|
||||
@@ -11,7 +11,7 @@
|
||||
<div id="add-message" style="display:none;">
|
||||
<% if authorize_for('messages', 'new') %>
|
||||
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2>
|
||||
<% form_for :message, @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
||||
<%= form_for @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
||||
<%= render :partial => 'messages/form', :locals => {:f => f} %>
|
||||
<p><%= submit_tag l(:button_create) %>
|
||||
<%= link_to_remote l(:label_preview),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2>
|
||||
|
||||
<% form_tag({:controller => 'calendars', :action => 'show', :project_id => @project}, :method => :get, :id => 'query_form') do %>
|
||||
<%= form_tag({:controller => 'calendars', :action => 'show', :project_id => @project},
|
||||
:method => :get, :id => 'query_form') do %>
|
||||
<%= hidden_field_tag 'set_filter', '1' %>
|
||||
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
|
||||
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
xml.instruct!
|
||||
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
|
||||
xml.title truncate_single_line(@title, :length => 100)
|
||||
xml.link "rel" => "self", "href" => url_for(params.merge(:only_path => false, :escape => false))
|
||||
xml.link "rel" => "alternate", "href" => url_for(params.merge(:only_path => false, :format => nil, :key => nil, :escape => false))
|
||||
xml.link "rel" => "self", "href" => url_for(params.merge(:only_path => false))
|
||||
xml.link "rel" => "alternate", "href" => url_for(params.merge(:only_path => false, :format => nil, :key => nil))
|
||||
xml.id url_for(:controller => 'welcome', :only_path => false)
|
||||
xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema)
|
||||
xml.author { xml.name "#{Setting.app_title}" }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
» <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %>
|
||||
» <%=h @custom_field.name %></h2>
|
||||
|
||||
<% labelled_form_for :custom_field, @custom_field, :url => custom_field_path(@custom_field), :html => {:method => :put} do |f| %>
|
||||
<%= labelled_form_for :custom_field, @custom_field, :url => custom_field_path(@custom_field), :html => {:method => :put} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -2,7 +2,7 @@
|
||||
» <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %>
|
||||
» <%= l(:label_custom_field_new) %></h2>
|
||||
|
||||
<% labelled_form_for :custom_field, @custom_field, :url => custom_fields_path do |f| %>
|
||||
<%= labelled_form_for :custom_field, @custom_field, :url => custom_fields_path do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= hidden_field_tag 'type', @custom_field.type %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_document)%></h2>
|
||||
|
||||
<% labelled_form_for @document do |f| %>
|
||||
<%= labelled_form_for @document do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<p><%= submit_tag l(:button_save) %></p>
|
||||
<% end %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<div id="add-document" style="display:none;">
|
||||
<h2><%=l(:label_document_new)%></h2>
|
||||
<% labelled_form_for @document, :url => project_documents_path(@project), :html => {:multipart => true} do |f| %>
|
||||
<%= labelled_form_for @document, :url => project_documents_path(@project), :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<p>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_document_new)%></h2>
|
||||
|
||||
<% labelled_form_for @document, :url => project_documents_path(@project), :html => {:multipart => true} do |f| %>
|
||||
<%= labelled_form_for @document, :url => project_documents_path(@project), :html => {:multipart => true} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<p><%= submit_tag l(:button_create) %></p>
|
||||
<% end %>
|
||||
@@ -19,7 +19,7 @@
|
||||
<% if authorize_for('documents', 'add_attachment') %>
|
||||
<p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;",
|
||||
:id => 'attach_files_link' %></p>
|
||||
<% form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
|
||||
<%= form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
|
||||
<div class="box">
|
||||
<p><%= render :partial => 'attachments/form' %></p>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= l(@enumeration.option_name) %>: <%=h @enumeration %></h2>
|
||||
|
||||
<% form_tag({}, :method => :delete) do %>
|
||||
<%= form_tag({}, :method => :delete) do %>
|
||||
<div class="box">
|
||||
<p><strong><%= l(:text_enumeration_destroy_question, @enumeration.objects_count) %></strong></p>
|
||||
<p><label for='reassign_to_id'><%= l(:text_enumeration_category_reassign_to) %></label>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= link_to l(@enumeration.option_name), enumerations_path %> » <%=h @enumeration %></h2>
|
||||
|
||||
<% labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put} do |f| %>
|
||||
<%= labelled_form_for :enumeration, @enumeration, :url => enumeration_path(@enumeration), :html => {:method => :put} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= link_to l(@enumeration.option_name), enumerations_path %> » <%=l(:label_enumeration_new)%></h2>
|
||||
|
||||
<% labelled_form_for :enumeration, @enumeration, :url => enumerations_path do |f| %>
|
||||
<%= labelled_form_for :enumeration, @enumeration, :url => enumerations_path do |f| %>
|
||||
<%= f.hidden_field :type %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<h2><%=l(:label_attachment_new)%></h2>
|
||||
|
||||
<%= error_messages_for 'attachment' %>
|
||||
<% form_tag(project_files_path(@project), :multipart => true, :class => "tabular") do %>
|
||||
<%= form_tag(project_files_path(@project), :multipart => true, :class => "tabular") do %>
|
||||
<div class="box">
|
||||
|
||||
<% if @versions.any? %>
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
<% @gantt.view = self %>
|
||||
<h2><%= @query.new_record? ? l(:label_gantt) : h(@query.name) %></h2>
|
||||
|
||||
<% form_tag({:controller => 'gantts', :action => 'show', :project_id => @project, :month => params[:month], :year => params[:year], :months => params[:months]}, :method => :get, :id => 'query_form') do %>
|
||||
<%= form_tag({:controller => 'gantts', :action => 'show',
|
||||
:project_id => @project, :month => params[:month],
|
||||
:year => params[:year], :months => params[:months]},
|
||||
:method => :get, :id => 'query_form') do %>
|
||||
<%= hidden_field_tag 'set_filter', '1' %>
|
||||
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
|
||||
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% labelled_form_for @group do |f| %>
|
||||
<%= labelled_form_for @group do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -16,8 +16,9 @@
|
||||
<td class="project"><%=h membership.project %></td>
|
||||
<td class="roles">
|
||||
<span id="member-<%= membership.id %>-roles"><%=h membership.roles.sort.collect(&:to_s).join(', ') %></span>
|
||||
<% remote_form_for(:membership, :url => { :action => 'edit_membership', :id => @group, :membership_id => membership },
|
||||
:html => { :id => "member-#{membership.id}-roles-form", :style => 'display:none;'}) do %>
|
||||
<%= form_for(:membership, :remote => true,
|
||||
:url => { :action => 'edit_membership', :id => @group, :membership_id => membership },
|
||||
:html => { :id => "member-#{membership.id}-roles-form", :style => 'display:none;'}) do %>
|
||||
<p><% roles.each do |role| %>
|
||||
<label><%= check_box_tag 'membership[role_ids][]', role.id, membership.roles.include?(role) %> <%=h role %></label><br />
|
||||
<% end %></p>
|
||||
@@ -55,7 +56,7 @@
|
||||
<div class="splitcontentright">
|
||||
<% if projects.any? %>
|
||||
<fieldset><legend><%=l(:label_project_new)%></legend>
|
||||
<% remote_form_for(:membership, :url => { :action => 'edit_membership', :id => @group }) do %>
|
||||
<%= form_for(:membership, :remote => true, :url => { :action => 'edit_membership', :id => @group }) do %>
|
||||
<%= label_tag "membership_project_id", l(:description_choose_project), :class => "hidden-for-sighted" %>
|
||||
<%= select_tag 'membership[project_id]', options_for_membership_project_select(@group, projects) %>
|
||||
<p><%= l(:label_role_plural) %>:
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
<div class="splitcontentright">
|
||||
<% users = User.active.not_in_group(@group).all(:limit => 100) %>
|
||||
<% if users.any? %>
|
||||
<% remote_form_for(@group, :url => group_users_path(@group), :html => {:method => :post}) do |f| %>
|
||||
<%= form_for(@group, :remote => true, :url => group_users_path(@group),
|
||||
:html => {:method => :post}) do |f| %>
|
||||
<fieldset><legend><%=l(:label_user_new)%></legend>
|
||||
|
||||
<p><%= label_tag "user_search", l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= link_to l(:label_group_plural), groups_path %> » <%= l(:label_group_new) %></h2>
|
||||
|
||||
<% labelled_form_for @group do |f| %>
|
||||
<%= labelled_form_for @group do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<p>
|
||||
<%= f.submit l(:button_create) %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_issue_category)%>: <%=h @category.name %></h2>
|
||||
|
||||
<% form_tag(issue_category_path(@category), :method => :delete) do %>
|
||||
<%= form_tag(issue_category_path(@category), :method => :delete) do %>
|
||||
<div class="box">
|
||||
<p><strong><%= l(:text_issue_category_destroy_question, @issue_count) %></strong></p>
|
||||
<p><label><%= radio_button_tag 'todo', 'nullify', true %> <%= l(:text_issue_category_destroy_assignments) %></label><br />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= link_to l(:label_issue_status_plural), issue_statuses_path %> » <%=h @issue_status %></h2>
|
||||
|
||||
<% labelled_form_for @issue_status do |f| %>
|
||||
<%= labelled_form_for @issue_status do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= link_to l(:label_issue_status_plural), issue_statuses_path %> » <%=l(:label_issue_status_new)%></h2>
|
||||
|
||||
<% labelled_form_for @issue_status do |f| %>
|
||||
<%= labelled_form_for @issue_status do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="contextual">
|
||||
<%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
|
||||
<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :issue_id => @issue}, :class => 'icon icon-time-add' %>
|
||||
<%= link_to l(:button_log_time), new_issue_time_entry_path(@issue), :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project) %>
|
||||
<%= watcher_tag(@issue, User.current) %>
|
||||
<%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, :class => 'icon icon-copy' %>
|
||||
<%= link_to l(:button_delete), issue_path(@issue), :confirm => issues_destroy_confirmation_message(@issue), :method => :delete, :class => 'icon icon-del' if User.current.allowed_to?(:delete_issues, @project) %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% labelled_fields_for :issue, @issue do |f| %>
|
||||
<%= labelled_fields_for :issue, @issue do |f| %>
|
||||
|
||||
<div class="splitcontent">
|
||||
<div class="splitcontentleft">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %>
|
||||
<%= labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %>
|
||||
<%= error_messages_for 'issue', 'time_entry' %>
|
||||
<%= render :partial => 'conflict' if @conflict %>
|
||||
<div class="box">
|
||||
@@ -11,7 +11,7 @@
|
||||
<% end %>
|
||||
<% if User.current.allowed_to?(:log_time, @project) %>
|
||||
<fieldset class="tabular"><legend><%= l(:button_log_time) %></legend>
|
||||
<% labelled_fields_for :time_entry, @time_entry do |time_entry| %>
|
||||
<%= labelled_fields_for :time_entry, @time_entry do |time_entry| %>
|
||||
<div class="splitcontentleft">
|
||||
<p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% labelled_fields_for :issue, @issue do |f| %>
|
||||
<%= labelled_fields_for :issue, @issue do |f| %>
|
||||
<%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %>
|
||||
|
||||
<% if @issue.safe_attribute? 'is_private' %>
|
||||
@@ -28,7 +28,7 @@
|
||||
<label><%= l(:field_description) %></label>
|
||||
<%= link_to_function image_tag('edit.png'),
|
||||
'Element.hide(this); Effect.toggle("issue_description_and_toolbar", "appear", {duration:0.3})' unless @issue.new_record? %>
|
||||
<% content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %>
|
||||
<%= content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %>
|
||||
<%= f.text_area :description,
|
||||
:cols => 60,
|
||||
:rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag({}) do -%>
|
||||
<%= form_tag({}) do -%>
|
||||
<%= hidden_field_tag 'back_url', url_for(params), :id => nil %>
|
||||
<div class="autoscroll">
|
||||
<table class="list issues">
|
||||
@@ -27,8 +27,8 @@
|
||||
<% end %>
|
||||
<tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
|
||||
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
|
||||
<td class="id"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
|
||||
<% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.css_classes %><% end %>
|
||||
<td class="id"><%= link_to issue.id, issue_path(issue) %></td>
|
||||
<%= raw query.columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %>
|
||||
</tr>
|
||||
<% end -%>
|
||||
</tbody>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% if issues && issues.any? %>
|
||||
<% form_tag({}) do %>
|
||||
<%= form_tag({}) do %>
|
||||
<table class="list issues">
|
||||
<thead><tr>
|
||||
<th>#</th>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
) + h(": #{i.subject}"))
|
||||
}.join("\n").html_safe %></ul>
|
||||
|
||||
<% form_tag({:action => 'bulk_update'}, :id => 'bulk_edit_form') do %>
|
||||
<%= form_tag({:action => 'bulk_update'}, :id => 'bulk_edit_form') do %>
|
||||
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
|
||||
<div class="box tabular">
|
||||
<fieldset class="attributes">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= l(:label_confirmation) %></h2>
|
||||
|
||||
<% form_tag({}, :method => :delete) do %>
|
||||
<%= form_tag({}, :method => :delete) do %>
|
||||
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
|
||||
<div class="box">
|
||||
<p><strong><%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %></strong></p>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<h2><%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %></h2>
|
||||
<% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %>
|
||||
|
||||
<% form_tag({ :controller => 'issues', :action => 'index', :project_id => @project },
|
||||
<%= form_tag({ :controller => 'issues', :action => 'index', :project_id => @project },
|
||||
:method => :get, :id => 'query_form') do %>
|
||||
<%= hidden_field_tag 'set_filter', '1' %>
|
||||
<div id="query_form_content" class="hide-when-print">
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
<div id="csv-export-options" style="display:none;">
|
||||
<h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3>
|
||||
<% form_tag(params.merge({:format => 'csv',:page=>nil}), :method => :get, :id => 'csv-export-form') do %>
|
||||
<%= form_tag(params.merge({:format => 'csv',:page=>nil}), :method => :get, :id => 'csv-export-form') do %>
|
||||
<p>
|
||||
<label><%= radio_button_tag 'columns', '', true %> <%= l(:description_selected_columns) %></label><br />
|
||||
<label><%= radio_button_tag 'columns', 'all' %> <%= l(:description_all_columns) %></label>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
|
||||
|
||||
<% labelled_form_for @issue, :url => project_issues_path(@project),
|
||||
<%= labelled_form_for @issue, :url => project_issues_path(@project),
|
||||
:html => {:id => 'issue-form', :multipart => true} do |f| %>
|
||||
<%= error_messages_for 'issue' %>
|
||||
<%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
|
||||
<%= form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
|
||||
<%= label_tag "notes", l(:description_notes), :class => "hidden-for-sighted" %>
|
||||
<%= text_area_tag :notes, @journal.notes,
|
||||
:id => "journal_#{@journal.id}_notes",
|
||||
|
||||
@@ -29,17 +29,14 @@
|
||||
<div id="account">
|
||||
<%= render_menu :account_menu -%>
|
||||
</div>
|
||||
<%= content_tag(
|
||||
'div',
|
||||
"#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe,
|
||||
:id => 'loggedas') if User.current.logged? %>
|
||||
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
|
||||
<%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
|
||||
</div>
|
||||
|
||||
<div id="header">
|
||||
<% if User.current.logged? || !Setting.login_required? %>
|
||||
<div id="quick-search">
|
||||
<% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
|
||||
<%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
|
||||
<%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
|
||||
<label for='q'>
|
||||
<%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
|
||||
@@ -59,10 +56,13 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% content_for :sidebar do %>
|
||||
<%= call_hook :view_layouts_base_sidebar %>
|
||||
<% end %>
|
||||
|
||||
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
|
||||
<div id="sidebar">
|
||||
<%= yield :sidebar %>
|
||||
<%= call_hook :view_layouts_base_sidebar %>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
@@ -2,11 +2,13 @@
|
||||
:action => 'show', :project_id => @project,
|
||||
:id => @board %> » <%= h @message.subject %></h2>
|
||||
|
||||
<% form_for :message, @message,
|
||||
:url => {:action => 'edit'},
|
||||
:html => {:multipart => true,
|
||||
:id => 'message-form',
|
||||
:method => :post} do |f| %>
|
||||
<%= form_for @message, {
|
||||
:as => :message,
|
||||
:url => {:action => 'edit'},
|
||||
:html => {:multipart => true,
|
||||
:id => 'message-form',
|
||||
:method => :post}
|
||||
} do |f| %>
|
||||
<%= render :partial => 'form',
|
||||
:locals => {:f => f, :replying => !@message.parent.nil?} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2>
|
||||
|
||||
<% form_for :message, @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
||||
<%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<%= link_to_remote l(:label_preview),
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<% if !@topic.locked? && authorize_for('messages', 'reply') %>
|
||||
<p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
|
||||
<div id="reply" style="display:none;">
|
||||
<% form_for :reply, @reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
||||
<%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
|
||||
<%= submit_tag l(:button_submit) %>
|
||||
<%= link_to_remote l(:label_preview),
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<h2><%=l(:label_my_account)%></h2>
|
||||
<%= error_messages_for 'user' %>
|
||||
|
||||
<% labelled_form_for :user, @user,
|
||||
<%= labelled_form_for :user, @user,
|
||||
:url => { :action => "account" },
|
||||
:html => { :id => 'my_account_form',
|
||||
:method => :post } do |f| %>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="warning">
|
||||
<p><%= simple_format l(:text_account_destroy_confirmation)%></p>
|
||||
<p>
|
||||
<% form_tag({}) do %>
|
||||
<%= form_tag({}) do %>
|
||||
<label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label>
|
||||
<%= submit_tag l(:button_delete_my_account) %> |
|
||||
<%= link_to l(:button_cancel), :action => 'account' %>
|
||||
|
||||
@@ -35,7 +35,7 @@ function removeBlock(block) {
|
||||
</script>
|
||||
|
||||
<div class="contextual">
|
||||
<% form_tag({:action => "add_block"}, :id => "block-form") do %>
|
||||
<%= form_tag({:action => "add_block"}, :id => "block-form") do %>
|
||||
<%= label_tag('block-select', l(:label_my_page_block)) %>:
|
||||
<%= select_tag 'block',
|
||||
"<option></option>".html_safe + options_for_select(@block_options),
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<%= error_messages_for 'user' %>
|
||||
|
||||
<% form_tag({}, :class => "tabular") do %>
|
||||
<%= form_tag({}, :class => "tabular") do %>
|
||||
<div class="box">
|
||||
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
|
||||
<%= password_field_tag 'password', nil, :size => 25 %></p>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_news)%></h2>
|
||||
|
||||
<% labelled_form_for @news, :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
||||
<%= labelled_form_for @news, :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<%= link_to_remote l(:label_preview),
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<div id="add-news" style="display:none;">
|
||||
<h2><%=l(:label_news_new)%></h2>
|
||||
<% labelled_form_for @news, :url => project_news_index_path(@project),
|
||||
<%= labelled_form_for @news, :url => project_news_index_path(@project),
|
||||
:html => { :id => 'news-form', :multipart => true } do |f| %>
|
||||
<%= render :partial => 'news/form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_news_new)%></h2>
|
||||
|
||||
<% labelled_form_for @news, :url => project_news_index_path(@project),
|
||||
<%= labelled_form_for @news, :url => project_news_index_path(@project),
|
||||
:html => { :id => 'news-form', :multipart => true } do |f| %>
|
||||
<%= render :partial => 'news/form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<% if authorize_for('news', 'edit') %>
|
||||
<div id="edit-news" style="display:none;">
|
||||
<% labelled_form_for :news, @news, :url => news_path(@news),
|
||||
<%= labelled_form_for :news, @news, :url => news_path(@news),
|
||||
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
<% if @news.commentable? %>
|
||||
<p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
|
||||
<% form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
|
||||
<%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
|
||||
<div class="box">
|
||||
<%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %>
|
||||
<%= wikitoolbar_for 'comment_comments' %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% labelled_form_for @project do |f| %>
|
||||
<%= labelled_form_for @project do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_project_new)%></h2>
|
||||
|
||||
<% labelled_form_for @project, :url => { :action => "copy" } do |f| %>
|
||||
<%= labelled_form_for @project, :url => { :action => "copy" } do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
|
||||
<fieldset class="box tabular"><legend><%= l(:button_copy) %></legend>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<% end %>
|
||||
</p>
|
||||
<p>
|
||||
<% form_tag(project_path(@project_to_destroy), :method => :delete) do %>
|
||||
<%= form_tag(project_path(@project_to_destroy), :method => :delete) do %>
|
||||
<label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label>
|
||||
<%= submit_tag l(:button_delete) %>
|
||||
<% end %>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<div class="contextual">
|
||||
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
||||
<%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
|
||||
<%= link_to(l(:label_issue_view_all), issues_path) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
|
||||
<%= link_to(l(:label_overall_spent_time), time_entries_path) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
|
||||
<%= link_to l(:label_overall_activity),
|
||||
{ :controller => 'activities', :action => 'index',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%=l(:label_project_new)%></h2>
|
||||
|
||||
<% labelled_form_for @project do |f| %>
|
||||
<%= labelled_form_for @project do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag(project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
|
||||
<%= form_tag(project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
|
||||
|
||||
<table class="list">
|
||||
<thead><tr>
|
||||
@@ -11,7 +11,7 @@
|
||||
</tr></thead>
|
||||
|
||||
<% @project.activities(true).each do |enumeration| %>
|
||||
<% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
|
||||
<%= fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
|
||||
<tr class="<%= cycle('odd', 'even') %>">
|
||||
<td>
|
||||
<%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_for :project, @project,
|
||||
<%= form_for @project,
|
||||
:url => { :action => 'modules', :id => @project },
|
||||
:html => {:id => 'modules-form',
|
||||
:method => :post} do |f| %>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
<ul>
|
||||
<% unless @project.homepage.blank? %>
|
||||
<li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)).html_safe %></li>
|
||||
<li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li>
|
||||
<% end %>
|
||||
<% if @subprojects.any? %>
|
||||
<li><%=l(:label_subproject_plural)%>:
|
||||
@@ -69,8 +69,8 @@
|
||||
<% if @total_hours.present? %>
|
||||
<h3><%= l(:label_spent_time) %></h3>
|
||||
<p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
|
||||
<p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
|
||||
<%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project}) %></p>
|
||||
<p><%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
|
||||
<%= link_to(l(:label_report), report_project_time_entries_path(@project)) %></p>
|
||||
<% end %>
|
||||
<%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
|
||||
<% end %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<% query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.each do |filter| %>
|
||||
<% field = filter[0]
|
||||
options = filter[1] %>
|
||||
<tr <%= 'style="display:none;"' unless query.has_filter?(field) %> id="tr_<%= field %>" class="filter">
|
||||
<tr <%= 'style="display:none;"'.html_safe unless query.has_filter?(field) %> id="tr_<%= field %>" class="filter">
|
||||
<td class="field">
|
||||
<%= check_box_tag 'f[]', field, query.has_filter?(field), :onclick => "toggle_filter('#{field}');", :id => "cb_#{field}" %>
|
||||
<label for="cb_<%= field %>"><%= filter[1][:name] || l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) %></label>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= l(:label_query) %></h2>
|
||||
|
||||
<% form_tag(query_path(@query), :onsubmit => 'selectAllOptions("selected_columns");', :method => :put) do %>
|
||||
<%= form_tag(query_path(@query), :onsubmit => 'selectAllOptions("selected_columns");', :method => :put) do %>
|
||||
<%= render :partial => 'form', :locals => {:query => @query} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= l(:label_query_new) %></h2>
|
||||
|
||||
<% form_tag(@project ? project_queries_path : queries_path, :onsubmit => 'selectAllOptions("selected_columns");') do %>
|
||||
<%= form_tag(@project ? project_queries_path(@project) : queries_path, :onsubmit => 'selectAllOptions("selected_columns");') do %>
|
||||
<%= render :partial => 'form', :locals => {:query => @query} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -6,7 +6,7 @@
|
||||
{:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
|
||||
:class => 'icon icon-stats' if @repository.supports_all_revisions? %>
|
||||
|
||||
<% form_tag({:action => controller.action_name,
|
||||
<%= form_tag({:action => controller.action_name,
|
||||
:id => @project,
|
||||
:repository_id => @repository.identifier_param,
|
||||
:path => to_path_param(@path),
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
:space => graph_space
|
||||
}
|
||||
end %>
|
||||
<% form_tag(
|
||||
<%= form_tag(
|
||||
{:controller => 'repositories', :action => 'diff', :id => project,
|
||||
:repository_id => @repository.identifier_param, :path => to_path_param(path)},
|
||||
:method => :get
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||
<% else %>
|
||||
|
||||
<% form_tag({}) do %>
|
||||
<%= form_tag({}) do %>
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %></h2>
|
||||
|
||||
<!-- Choose view type -->
|
||||
<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
|
||||
<%= form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
|
||||
<%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
|
||||
<%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>
|
||||
<p>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2><%= l(:label_repository) %></h2>
|
||||
|
||||
<% labelled_form_for :repository, @repository, :url => repository_path(@path), :html => {:method => :put} do |f| %>
|
||||
<%= labelled_form_for :repository, @repository, :url => repository_path(@path), :html => {:method => :put} do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2><%= l(:label_repository_new) %></h2>
|
||||
|
||||
<% labelled_form_for :repository, @repository, :url => project_repositories_path(@project) do |f| %>
|
||||
<%= labelled_form_for :repository, @repository, :url => project_repositories_path(@project) do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<% end %>
|
||||
@@ -13,7 +13,7 @@
|
||||
<% end -%>
|
||||
»
|
||||
|
||||
<% form_tag({:controller => 'repositories',
|
||||
<%= form_tag({:controller => 'repositories',
|
||||
:action => 'revision',
|
||||
:id => @project,
|
||||
:repository_id => @repository.identifier_param,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="contextual">
|
||||
<% form_tag(
|
||||
{:action => 'revision', :id => @project,
|
||||
<%= form_tag(
|
||||
{:controller => 'repositories', :action => 'revision', :id => @project,
|
||||
:repository_id => @repository.identifier_param}
|
||||
) do %>
|
||||
<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 8 %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= link_to l(:label_role_plural), roles_path %> » <%=h @role.name %></h2>
|
||||
|
||||
<% labelled_form_for @role do |f| %>
|
||||
<%= labelled_form_for @role do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= link_to l(:label_role_plural), roles_path %> » <%=l(:label_role_new)%></h2>
|
||||
|
||||
<% labelled_form_for @role do |f| %>
|
||||
<%= labelled_form_for @role do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<% end %>
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= link_to l(:label_role_plural), roles_path %> » <%=l(:label_permissions_report)%></h2>
|
||||
|
||||
<% form_tag(permissions_roles_path, :id => 'permissions_form') do %>
|
||||
<%= form_tag(permissions_roles_path, :id => 'permissions_form') do %>
|
||||
<%= hidden_field_tag 'permissions[0]', '', :id => nil %>
|
||||
<div class="autoscroll">
|
||||
<table class="list permissions">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<h2><%= l(:label_search) %></h2>
|
||||
|
||||
<div class="box">
|
||||
<% form_tag({}, :method => :get) do %>
|
||||
<%= form_tag({}, :method => :get) do %>
|
||||
<%= label_tag "search-input", l(:description_search), :class => "hidden-for-sighted" %>
|
||||
<p><%= text_field_tag 'q', @question, :size => 60, :id => 'search-input' %>
|
||||
<%= javascript_tag "Field.focus('search-input')" %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag({:action => 'edit', :tab => 'authentication'}) do %>
|
||||
<%= form_tag({:action => 'edit', :tab => 'authentication'}) do %>
|
||||
|
||||
<div class="box tabular settings">
|
||||
<p><%= setting_check_box :login_required %></p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag({:action => 'edit', :tab => 'display'}) do %>
|
||||
<%= form_tag({:action => 'edit', :tab => 'display'}) do %>
|
||||
|
||||
<div class="box tabular settings">
|
||||
<p><%= setting_select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, :blank => :label_default, :label => :label_theme %></p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag({:action => 'edit'}) do %>
|
||||
<%= form_tag({:action => 'edit'}) do %>
|
||||
|
||||
<div class="box tabular settings">
|
||||
<p><%= setting_text_field :app_title, :size => 30 %></p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag({:action => 'edit', :tab => 'issues'}) do %>
|
||||
<%= form_tag({:action => 'edit', :tab => 'issues'}) do %>
|
||||
|
||||
<div class="box tabular settings">
|
||||
<p><%= setting_check_box :cross_project_issue_relations %></p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag({:action => 'edit', :tab => 'mail_handler'}) do %>
|
||||
<%= form_tag({:action => 'edit', :tab => 'mail_handler'}) do %>
|
||||
|
||||
<div class="box tabular settings">
|
||||
<p>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% if @deliveries %>
|
||||
<% form_tag({:action => 'edit', :tab => 'notifications'}) do %>
|
||||
<%= form_tag({:action => 'edit', :tab => 'notifications'}) do %>
|
||||
|
||||
<div class="box tabular settings">
|
||||
<p><%= setting_text_field :mail_from, :size => 60 %></p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag({:action => 'edit', :tab => 'projects'}) do %>
|
||||
<%= form_tag({:action => 'edit', :tab => 'projects'}) do %>
|
||||
|
||||
<div class="box tabular settings">
|
||||
<p><%= setting_check_box :default_projects_public %></p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag({:action => 'edit', :tab => 'repositories'}) do %>
|
||||
<%= form_tag({:action => 'edit', :tab => 'repositories'}) do %>
|
||||
|
||||
<fieldset class="box settings enabled_scm">
|
||||
<%= hidden_field_tag 'settings[enabled_scm][]', '' %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<h2><%= l(:label_settings) %>: <%=h @plugin.name %></h2>
|
||||
|
||||
<div id="settings">
|
||||
<% form_tag({:action => 'plugin'}) do %>
|
||||
<%= form_tag({:action => 'plugin'}) do %>
|
||||
<div class="box tabular">
|
||||
<%= render :partial => @partial, :locals => {:settings => @settings}%>
|
||||
</div>
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
<% url_params = @free_period ? { :from => @from, :to => @to } : { :period => params[:period] } %>
|
||||
<ul>
|
||||
<li><%= link_to(l(:label_details), url_params.merge({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue }),
|
||||
:class => (@controller.action_name == 'index' ? 'selected' : nil)) %></li>
|
||||
:class => (action_name == 'index' ? 'selected' : nil)) %></li>
|
||||
<li><%= link_to(l(:label_report), url_params.merge({:controller => 'timelog', :action => 'report', :project_id => @project, :issue_id => @issue}),
|
||||
:class => (@controller.action_name == 'report' ? 'selected' : nil)) %></li>
|
||||
:class => (action_name == 'report' ? 'selected' : nil)) %></li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_tag({}) do -%>
|
||||
<%= form_tag({}) do -%>
|
||||
<%= hidden_field_tag 'back_url', url_for(params) %>
|
||||
<div class="autoscroll">
|
||||
<table class="list time-entries">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
)}.join("\n").html_safe %>
|
||||
</ul>
|
||||
|
||||
<% form_tag(:action => 'bulk_update') do %>
|
||||
<%= form_tag(:action => 'bulk_update') do %>
|
||||
<%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join.html_safe %>
|
||||
<div class="box tabular">
|
||||
<div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= l(:label_spent_time) %></h2>
|
||||
|
||||
<% labelled_form_for @time_entry, :url => project_time_entry_path(@time_entry.project, @time_entry) do |f| %>
|
||||
<%= labelled_form_for @time_entry, :url => project_time_entry_path(@time_entry.project, @time_entry) do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<h2><%= l(:label_spent_time) %></h2>
|
||||
|
||||
<% form_tag({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}, :method => :get, :id => 'query_form') do %>
|
||||
<%= form_tag({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}, :method => :get, :id => 'query_form') do %>
|
||||
<%= render :partial => 'date_range' %>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h2><%= l(:label_spent_time) %></h2>
|
||||
|
||||
<% labelled_form_for @time_entry, :url => time_entries_path do |f| %>
|
||||
<%= labelled_form_for @time_entry, :url => time_entries_path do |f| %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
|
||||
<h2><%= l(:label_spent_time) %></h2>
|
||||
|
||||
<% form_tag({:controller => 'timelog', :action => 'report', :project_id => @project, :issue_id => @issue}, :method => :get, :id => 'query_form') do %>
|
||||
<%= form_tag({:controller => 'timelog', :action => 'report',
|
||||
:project_id => @project, :issue_id => @issue},
|
||||
:method => :get, :id => 'query_form') do %>
|
||||
<% @report.criteria.each do |criterion| %>
|
||||
<%= hidden_field_tag 'criteria[]', criterion, :id => nil %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2><%= link_to l(:label_tracker_plural), trackers_path %> » <%=h @tracker %></h2>
|
||||
|
||||
<% labelled_form_for @tracker do |f| %>
|
||||
<%= labelled_form_for @tracker do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<% end %>
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2><%= link_to l(:label_tracker_plural), trackers_path %> » <%=l(:label_tracker_new)%></h2>
|
||||
|
||||
<% labelled_form_for @tracker do |f| %>
|
||||
<%= labelled_form_for @tracker do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<% end %>
|
||||
@@ -1,4 +1,4 @@
|
||||
<% labelled_form_for @user do |f| %>
|
||||
<%= labelled_form_for @user do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<% if @user.active? && email_delivery_enabled? -%>
|
||||
<p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<% form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %>
|
||||
<%= form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %>
|
||||
<div class="box">
|
||||
<% Group.all.sort.each do |group| %>
|
||||
<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.include?(group) %> <%=h group %></label><br />
|
||||
|
||||
@@ -19,8 +19,10 @@
|
||||
</td>
|
||||
<td class="roles">
|
||||
<span id="member-<%= membership.id %>-roles"><%=h membership.roles.sort.collect(&:to_s).join(', ') %></span>
|
||||
<% remote_form_for(:membership, :url => user_membership_path(@user, membership), :method => :put,
|
||||
:html => { :id => "member-#{membership.id}-roles-form", :style => 'display:none;'}) do %>
|
||||
<%= form_for(:membership, :remote => true,
|
||||
:url => user_membership_path(@user, membership), :method => :put,
|
||||
:html => {:id => "member-#{membership.id}-roles-form",
|
||||
:style => 'display:none;'}) do %>
|
||||
<p><% roles.each do |role| %>
|
||||
<label><%= check_box_tag 'membership[role_ids][]', role.id, membership.roles.include?(role),
|
||||
:disabled => membership.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?} %> <%=h role %></label><br />
|
||||
@@ -57,7 +59,7 @@
|
||||
<div class="splitcontentright">
|
||||
<% if projects.any? %>
|
||||
<fieldset><legend><%=l(:label_project_new)%></legend>
|
||||
<% remote_form_for(:membership, :url => user_memberships_path(@user)) do %>
|
||||
<%= form_for(:membership, :remote => true, :url => user_memberships_path(@user)) do %>
|
||||
<%= select_tag 'membership[project_id]', options_for_membership_project_select(@user, projects) %>
|
||||
<p><%= l(:label_role_plural) %>:
|
||||
<% roles.each do |role| %>
|
||||
|
||||
Loaded 100 of 457 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user