added svn:eol-style native property on /app files
git-svn-id: http://redmine.rubyforge.org/svn/trunk@333 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
071f8e18d0
commit
027bf93849
180 files changed
+6362
-6362
No files matched your search
+14
-14
@@ -1,21 +1,21 @@
|
||||
<%= error_messages_for 'role' %>
|
||||
<div class="box">
|
||||
<!--[form:role]-->
|
||||
<p><%= f.text_field :name, :required => true %></p>
|
||||
|
||||
<h3><%=l(:label_permissions)%></h3>
|
||||
<% permissions = @permissions.group_by {|p| p.group_id } %>
|
||||
<!--[form:role]-->
|
||||
<p><%= f.text_field :name, :required => true %></p>
|
||||
|
||||
<h3><%=l(:label_permissions)%></h3>
|
||||
<% permissions = @permissions.group_by {|p| p.group_id } %>
|
||||
<% permissions.keys.sort.each do |group_id| %>
|
||||
<fieldset style="margin-top: 6px;"><legend><strong><%= l(Permission::GROUPS[group_id]) %></strong></legend>
|
||||
<% permissions[group_id].each do |p| %>
|
||||
<div style="width:170px;float:left;"><%= check_box_tag "permission_ids[]", p.id, (@role.permissions.include? p) %>
|
||||
<%= l(p.description.to_sym) %>
|
||||
</div>
|
||||
<fieldset style="margin-top: 6px;"><legend><strong><%= l(Permission::GROUPS[group_id]) %></strong></legend>
|
||||
<% permissions[group_id].each do |p| %>
|
||||
<div style="width:170px;float:left;"><%= check_box_tag "permission_ids[]", p.id, (@role.permissions.include? p) %>
|
||||
<%= l(p.description.to_sym) %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="clear"></div>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
<div class="clear"></div>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
<br />
|
||||
<%= check_all_links 'role_form' %>
|
||||
<%= check_all_links 'role_form' %>
|
||||
<!--[eoform:role]-->
|
||||
</div>
|
||||
@@ -3,4 +3,4 @@
|
||||
<% labelled_tabular_form_for :role, @role, :url => { :action => 'edit' }, :html => {:id => 'role_form'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -21,10 +21,10 @@
|
||||
<%= link_to image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), {:action => 'move', :id => role, :position => 'lowest'}, :method => :post, :title => l(:label_sort_lowest) %>
|
||||
</td>
|
||||
<td align="center">
|
||||
<%= button_to l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
|
||||
<%= button_to l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<%= pagination_links_full @role_pages %>
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2><%=l(:label_role_new)%></h2>
|
||||
|
||||
|
||||
<% labelled_tabular_form_for :role, @role, :url => { :action => 'new' }, :html => {:id => 'role_form'} do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
|
||||
@@ -1,69 +1,69 @@
|
||||
<h2><%=l(:label_workflow)%></h2>
|
||||
|
||||
<p><%=l(:text_workflow_edit)%>:</p>
|
||||
|
||||
<% form_tag ({:action => 'workflow'}, :method => 'get') do %>
|
||||
<div style="float:left;margin-right:10px;">
|
||||
<p><label for="role_id"><%=l(:label_role)%></label><br/>
|
||||
<select id="role_id" name="role_id">
|
||||
<%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %>
|
||||
</select></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p><label for="tracker_id"><%=l(:label_tracker)%></label><br/>
|
||||
<select id="tracker_id" name="tracker_id">
|
||||
<%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %>
|
||||
</select>
|
||||
|
||||
<%= submit_tag l(:button_edit) %>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
||||
<% unless @tracker.nil? or @role.nil? %>
|
||||
<div class="box">
|
||||
<% form_tag ({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) do %>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><strong><%=l(:label_current_status)%></strong></td>
|
||||
<td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<% for new_status in @statuses %>
|
||||
<td width="80" align="center"><%= new_status.name %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
|
||||
<% for old_status in @statuses %>
|
||||
<tr>
|
||||
<td><div class="square" style="background:#<%= old_status.html_color %>;"></div> <%= old_status.name %></td>
|
||||
<% for new_status in @statuses %>
|
||||
<td align="center">
|
||||
|
||||
<input type="checkbox"
|
||||
name="issue_status[<%= old_status.id %>][]"
|
||||
value="<%= new_status.id %>"
|
||||
<%if old_status.new_statuses_allowed_to(@role, @tracker).include? new_status%>checked="checked"<%end%>
|
||||
<%if old_status==new_status%>disabled<%end%>
|
||||
>
|
||||
</td>
|
||||
<% end %>
|
||||
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
<br />
|
||||
<p>
|
||||
<a href="javascript:checkAll('workflow_form', true)"><%=l(:button_check_all)%></a> |
|
||||
<a href="javascript:checkAll('workflow_form', false)"><%=l(:button_uncheck_all)%></a>
|
||||
</p>
|
||||
<br />
|
||||
<h2><%=l(:label_workflow)%></h2>
|
||||
|
||||
<p><%=l(:text_workflow_edit)%>:</p>
|
||||
|
||||
<% form_tag ({:action => 'workflow'}, :method => 'get') do %>
|
||||
<div style="float:left;margin-right:10px;">
|
||||
<p><label for="role_id"><%=l(:label_role)%></label><br/>
|
||||
<select id="role_id" name="role_id">
|
||||
<%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %>
|
||||
</select></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p><label for="tracker_id"><%=l(:label_tracker)%></label><br/>
|
||||
<select id="tracker_id" name="tracker_id">
|
||||
<%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %>
|
||||
</select>
|
||||
|
||||
<%= submit_tag l(:button_edit) %>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
||||
<% unless @tracker.nil? or @role.nil? %>
|
||||
<div class="box">
|
||||
<% form_tag ({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) do %>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center"><strong><%=l(:label_current_status)%></strong></td>
|
||||
<td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<% for new_status in @statuses %>
|
||||
<td width="80" align="center"><%= new_status.name %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
|
||||
<% for old_status in @statuses %>
|
||||
<tr>
|
||||
<td><div class="square" style="background:#<%= old_status.html_color %>;"></div> <%= old_status.name %></td>
|
||||
<% for new_status in @statuses %>
|
||||
<td align="center">
|
||||
|
||||
<input type="checkbox"
|
||||
name="issue_status[<%= old_status.id %>][]"
|
||||
value="<%= new_status.id %>"
|
||||
<%if old_status.new_statuses_allowed_to(@role, @tracker).include? new_status%>checked="checked"<%end%>
|
||||
<%if old_status==new_status%>disabled<%end%>
|
||||
>
|
||||
</td>
|
||||
<% end %>
|
||||
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
<br />
|
||||
<p>
|
||||
<a href="javascript:checkAll('workflow_form', true)"><%=l(:button_check_all)%></a> |
|
||||
<a href="javascript:checkAll('workflow_form', false)"><%=l(:button_uncheck_all)%></a>
|
||||
</p>
|
||||
<br />
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in new issue
Block a user