Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata UI
Commits
f0fdc2f8
Commit
f0fdc2f8
authored
Jun 21, 2019
by
Christophe Benz
Browse files
Remove option groups from version select
parent
ac14b236
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/templates/schema_info_macros.html
View file @
f0fdc2f8
...
@@ -13,20 +13,12 @@
...
@@ -13,20 +13,12 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"git_ref"
class=
"mr-2"
>
Version
</label>
<label
for=
"git_ref"
class=
"mr-2"
>
Version
</label>
<select
class=
"form-control"
id=
"version_select"
name=
"git_ref"
>
<select
class=
"form-control"
id=
"version_select"
name=
"git_ref"
>
{% if tags %}
{% for tag in tags or [] %}
<optgroup
label=
"Tags"
>
{% for tag in tags %}
<option
{%
if
tag.name =
=
schema_current_version
%}
selected
{%
endif
%}
>
{{ tag.name }}
</option>
<option
{%
if
tag.name =
=
schema_current_version
%}
selected
{%
endif
%}
>
{{ tag.name }}
</option>
{% endfor %}
{% endfor %}
</optgroup>
{% for branch in branches or [] %}
{% endif %}
{% if branches %}
<optgroup
label=
"Branches"
>
{% for branch in branches %}
<option
{%
if
branch.name =
=
schema_current_version
%}
selected
{%
endif
%}
>
{{ branch.name }}
</option>
<option
{%
if
branch.name =
=
schema_current_version
%}
selected
{%
endif
%}
>
{{ branch.name }}
</option>
{% endfor %}
{% endfor %}
</optgroup>
{% endif %}
</select>
</select>
</div>
</div>
</form>
</form>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment