|
|
|
@ -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> |
|
|
|
|