Project

General

Profile

Patch #25853 » move_delete_and_reset_above_the_list.patch

Marius BĂLTEANU, 2017-05-15 21:33

View differences:

app/views/projects/settings/_activities.html.erb
1 1
<%= form_tag(project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
2 2

  
3
<div class="contextual">
4
<%= link_to(l(:button_reset), project_enumerations_path(@project),
5
            :method => :delete,
6
            :data => {:confirm => l(:text_are_you_sure)},
7
            :class => 'icon icon-del') %>
8
</div>
9

  
3 10
<table class="list">
4 11
  <thead><tr>
5 12
    <th><%= l(:field_name) %></th>
......
31 38
  <% end %>
32 39
</table>
33 40

  
34
<div class="contextual">
35
<%= link_to(l(:button_reset), project_enumerations_path(@project),
36
            :method => :delete,
37
            :data => {:confirm => l(:text_are_you_sure)},
38
            :class => 'icon icon-del') %>
39
</div>
40

  
41 41
<%= submit_tag l(:button_save) %>
42 42
<% end %>
app/views/projects/settings/_wiki.html.erb
6 6
<%= error_messages_for 'wiki' %>
7 7

  
8 8
<div class="box tabular">
9
<p><%= f.text_field :start_page, :size => 60, :required => true %>
10
<em class="info"><%= l(:text_unallowed_characters) %>: , . / ? ; : |</em></p>
11
</div>
12

  
13 9
<div class="contextual">
14 10
<%= link_to(l(:button_delete), {:controller => 'wikis', :action => 'destroy', :id => @project},
15 11
            :class => 'icon icon-del') if @wiki && !@wiki.new_record? %>
16 12
</div>
13
<p><%= f.text_field :start_page, :size => 60, :required => true %>
14
<em class="info"><%= l(:text_unallowed_characters) %>: , . / ? ; : |</em></p>
15
</div>
17 16

  
18 17
<%= submit_tag((@wiki.nil? || @wiki.new_record?) ? l(:button_create) : l(:button_save)) %>
19 18
<% end %>
(1-1/8)