adopt repository form input field width

pull/5721/head
Wieland Lindenthal 7 years ago
parent 632547d6b3
commit 2c21c9f48e
  1. 10
      app/views/repositories/settings/shared/_managed.html.erb
  2. 12
      app/views/repositories/settings/subversion/_existing.html.erb

@ -29,26 +29,26 @@ See doc/COPYRIGHT.rdoc for more details.
<% if repository.class.manages_remote? %> <% if repository.class.manages_remote? %>
<div class="form--field"> <div class="form--field">
<%= form.text_field(:url, <%= form.text_field(:url,
label: l('repositories.managed_url'), label: t('repositories.managed_url'),
value: l('repositories.managed_remote'), value: t('repositories.managed_remote'),
disabled: true, disabled: true,
'aria-disabled' => true 'aria-disabled' => true
) %> ) %>
<div class="form--field-instructions"> <div class="form--field-instructions">
<p><%= l('repositories.managed_remote_note') %></p> <p><%= t('repositories.managed_remote_note') %></p>
</div> </div>
</div> </div>
<% else %> <% else %>
<div class="form--field"> <div class="form--field">
<%= form.text_field(:url, <%= form.text_field(:url,
label: l('repositories.managed_url'), label: t('repositories.managed_url'),
value: repository.new_record? ? repository.managed_repository_url : value: repository.new_record? ? repository.managed_repository_url :
repository.url, repository.url,
disabled: true, disabled: true,
'aria-disabled' => true 'aria-disabled' => true
) %> ) %>
<div class="form--field-instructions"> <div class="form--field-instructions">
<%= l("repositories.#{vendor}.instructions.managed_url") %> <%= t("repositories.#{vendor}.instructions.managed_url") %>
</div> </div>
</div> </div>
<% end %> <% end %>

@ -28,13 +28,13 @@ See doc/COPYRIGHT.rdoc for more details.
++#%> ++#%>
<div class="form--field -required"> <div class="form--field -required">
<%= form.text_field(:url, <%= form.text_field(:url,
label: l('repositories.url'), label: t('repositories.url'),
required: true, required: true,
size: 60, size: 60,
disabled: !repository.new_record? disabled: !repository.new_record?
) %> ) %>
<div class="form--field-instructions"> <div class="form--field-instructions">
<%= raw simple_format l('repositories.subversion.instructions.url', local_proto: "<code>file://</code>") %> <%= raw simple_format t('repositories.subversion.instructions.url', local_proto: "<code>file://</code>") %>
<code>file://</code> <code>file://</code>
<code>http://</code> <code>http://</code>
<code>https://</code> <code>https://</code>
@ -47,17 +47,19 @@ See doc/COPYRIGHT.rdoc for more details.
<div class="form--field"> <div class="form--field">
<%= form.text_field(:login, <%= form.text_field(:login,
size: 30, size: 30,
label: l('repositories.subversion.username')) %> label: t('repositories.subversion.username'),
container_class: '-middle') %>
<div class="form--field-instructions"> <div class="form--field-instructions">
</div> </div>
</div> </div>
<div class="form--field"> <div class="form--field">
<%= form.password_field(:password, <%= form.password_field(:password,
size: 30, size: 30,
label: l('repositories.subversion.password'), label: t('repositories.subversion.password'),
name: 'ignore', name: 'ignore',
value: ((repository.new_record? || repository.password.blank?) ? '' : ('x' * 15)), value: ((repository.new_record? || repository.password.blank?) ? '' : ('x' * 15)),
onfocus: "this.value=''; this.name='repository[password]';", onfocus: "this.value=''; this.name='repository[password]';",
onchange: "this.name='repository[password]';") onchange: "this.name='repository[password]';",
container_class: '-middle')
%> %>
</div> </div>

Loading…
Cancel
Save