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? %>
<div class="form--field">
<%= form.text_field(:url,
label: l('repositories.managed_url'),
value: l('repositories.managed_remote'),
label: t('repositories.managed_url'),
value: t('repositories.managed_remote'),
disabled: true,
'aria-disabled' => true
) %>
<div class="form--field-instructions">
<p><%= l('repositories.managed_remote_note') %></p>
<p><%= t('repositories.managed_remote_note') %></p>
</div>
</div>
<% else %>
<div class="form--field">
<%= form.text_field(:url,
label: l('repositories.managed_url'),
label: t('repositories.managed_url'),
value: repository.new_record? ? repository.managed_repository_url :
repository.url,
disabled: true,
'aria-disabled' => true
) %>
<div class="form--field-instructions">
<%= l("repositories.#{vendor}.instructions.managed_url") %>
<%= t("repositories.#{vendor}.instructions.managed_url") %>
</div>
</div>
<% end %>

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

Loading…
Cancel
Save