Project

General

Profile

Patch #38795 ยป fix_save_button.patch

Kenta Kumojima, 2023-06-30 08:07

View differences:

app/views/custom_fields/_form.html.erb
20 20

  
21 21
<%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %>
22 22
</div>
23
<p>
23
<p class="mobile-hide">
24 24
  <% if @custom_field.new_record? %>
25 25
    <%= submit_tag l(:button_create) %>
26 26
    <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
......
65 65
</div>
66 66
</div>
67 67

  
68
<p class="mobile-show">
69
  <% if @custom_field.new_record? %>
70
    <%= submit_tag l(:button_create) %>
71
    <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
72
  <% else %>
73
    <%= submit_tag l(:button_save) %>
74
  <% end %>
75
</p>
76

  
68 77
<% include_calendar_headers_tags %>
app/views/trackers/_form.html.erb
43 43
<% end %>
44 44
<!--[eoform:tracker]-->
45 45
</div>
46
<%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %>
46
<%= submit_tag l(@tracker.new_record? ? :button_create : :button_save), class: "mobile-hide" %>
47 47
</div>
48 48

  
49 49
<div class="splitcontentright">
......
58 58
<% end %>
59 59
</div>
60 60
</div>
61
<%= submit_tag l(@tracker.new_record? ? :button_create : :button_save), class: "mobile-show" %>
app/views/users/_form.html.erb
55 55
  </p>
56 56
  <% end -%>
57 57
</fieldset>
58
<p class="mobile-hide">
59
  <% if @user.new_record? %>
60
    <%= submit_tag l(:button_create) %>
61
    <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
62
  <% else %>
63
    <%= submit_tag l(:button_save) %>
64
  <% end %>
65
</p>
58 66
</div>
59 67

  
60 68
<div class="splitcontentright">
app/views/users/_general.html.erb
3 3
  <% if @user.active? && email_delivery_enabled? && @user != User.current -%>
4 4
    <p><label><%= check_box_tag 'send_information', 1, params[:send_information] %> <%= l(:label_send_information) %></label></p>
5 5
  <% end -%>
6
  <p><%= submit_tag l(:button_save) %></p>
6
  <p class="mobile-show"><%= submit_tag l(:button_save) %></p>
7 7
<% end %>
app/views/users/new.html.erb
5 5
  <% if email_delivery_enabled? %>
6 6
  <p><label><%= check_box_tag 'send_information', 1, params[:send_information] %> <%= l(:label_send_information) %></label></p>
7 7
  <% end %>
8
  <p>
8
  <p class="mobile-show">
9 9
    <%= submit_tag l(:button_create) %>
10 10
    <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
11 11
  </p>
    (1-1/1)