Skip to content

Commit 16238e0

Browse files
committed
Swap the positions of Data and Description
1 parent 068a048 commit 16238e0

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

templates/shared/secrets/add_list.tmpl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@
6969
placeholder="{{ctx.Locale.Tr "secrets.creation.name_placeholder"}}"
7070
>
7171
</div>
72-
<div class="field">
73-
<label for="secret-description">{{ctx.Locale.Tr "secrets.creation.description"}}</label>
74-
<input
75-
id="secret-description"
76-
name="description"
77-
maxlength="{{.DescriptionMaxLength}}"
78-
placeholder="{{ctx.Locale.Tr "secrets.creation.description_placeholder"}}"
79-
>
80-
</div>
8172
<div class="field">
8273
<label for="secret-data">{{ctx.Locale.Tr "value"}}</label>
8374
<textarea required
@@ -87,6 +78,16 @@
8778
placeholder="{{ctx.Locale.Tr "secrets.creation.value_placeholder"}}"
8879
></textarea>
8980
</div>
81+
<div class="field">
82+
<label for="secret-description">{{ctx.Locale.Tr "secrets.creation.description"}}</label>
83+
<textarea
84+
id="secret-description"
85+
name="description"
86+
rows="2"
87+
maxlength="{{.DescriptionMaxLength}}"
88+
placeholder="{{ctx.Locale.Tr "secrets.creation.description_placeholder"}}"
89+
></textarea>
90+
</div>
9091
</div>
9192
{{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
9293
</form>

templates/shared/variables/variable_list.tmpl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,6 @@
8181
placeholder="{{ctx.Locale.Tr "secrets.creation.name_placeholder"}}"
8282
>
8383
</div>
84-
<div class="field">
85-
<label for="dialog-variable-description">{{ctx.Locale.Tr "secrets.creation.description"}}</label>
86-
<input
87-
name="description"
88-
id="dialog-variable-description"
89-
maxlength="{{.DescriptionMaxLength}}"
90-
placeholder="{{ctx.Locale.Tr "secrets.creation.description_placeholder"}}"
91-
>
92-
</div>
9384
<div class="field">
9485
<label for="dialog-variable-data">{{ctx.Locale.Tr "value"}}</label>
9586
<textarea required
@@ -99,6 +90,16 @@
9990
placeholder="{{ctx.Locale.Tr "secrets.creation.value_placeholder"}}"
10091
></textarea>
10192
</div>
93+
<div class="field">
94+
<label for="dialog-variable-description">{{ctx.Locale.Tr "secrets.creation.description"}}</label>
95+
<textarea
96+
name="description"
97+
id="dialog-variable-description"
98+
rows="2"
99+
maxlength="{{.DescriptionMaxLength}}"
100+
placeholder="{{ctx.Locale.Tr "secrets.creation.description_placeholder"}}"
101+
></textarea>
102+
</div>
102103
</div>
103104
{{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
104105
</form>

0 commit comments

Comments
 (0)