Skip to content

Commit cb7d84a

Browse files
committed
Change order to match local FS
1 parent b0b2c62 commit cb7d84a

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/templates/fsSettings.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,23 @@ <h2>Local Filesystem</h2>
5959
</blockquote>
6060
</div>
6161

62+
<div id="local-fs-url-field" class="field {% if not fs.hasUrls %}hidden{% endif %}">
63+
{{ forms.autosuggestField({
64+
label: "Base URL"|t('app'),
65+
instructions: "The base URL to the files in this filesystem."|t('app'),
66+
id: 'local-fs-url',
67+
class: ['ltr', 'fs-url'],
68+
name: 'localFsUrl',
69+
suggestEnvVars: true,
70+
suggestAliases: true,
71+
value: fs.localFsUrl ?? null,
72+
errors: fs.getErrors('localFsUrl') ?? null,
73+
required: true,
74+
placeholder: "@web/path/to/folder",
75+
tip: "The **Subpath** setting will be appended to this value."|t('cloud'),
76+
}) }}
77+
</div>
78+
6279
{{ forms.autosuggestField({
6380
label: "Base Path"|t('app'),
6481
instructions: "The base folder path that should be used as the root of the filesystem."|t('app'),
@@ -74,23 +91,6 @@ <h2>Local Filesystem</h2>
7491
tip: "The **Subpath** setting will be appended to this value."|t('cloud'),
7592
}) }}
7693

77-
<div id="local-fs-url-field" class="{% if not fs.hasUrls %}hidden{% endif %}">
78-
{{ forms.autosuggestField({
79-
label: "Base URL"|t('app'),
80-
instructions: "The base URL to the files in this filesystem."|t('app'),
81-
id: 'local-fs-url',
82-
class: ['ltr', 'fs-url'],
83-
name: 'localFsUrl',
84-
suggestEnvVars: true,
85-
suggestAliases: true,
86-
value: fs.localFsUrl ?? null,
87-
errors: fs.getErrors('localFsUrl') ?? null,
88-
required: true,
89-
placeholder: "@web/path/to/folder",
90-
tip: "The **Subpath** setting will be appended to this value."|t('cloud'),
91-
}) }}
92-
</div>
93-
9494
{% js %}
9595
const $urlField = $(document.getElementsByName('types[craft\\cloud\\fs\\AssetsFs][hasUrls]'))
9696
.parent('button')

0 commit comments

Comments
 (0)