Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
internewshid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aptivate
client-projects
internewshid
Commits
009cd651
Commit
009cd651
authored
4 years ago
by
Alan
Browse files
Options
Downloads
Patches
Plain Diff
WIP trying to get drop down to work
parent
77d756f3
No related branches found
Branches containing commit
No related tags found
3 merge requests
!210
Staging
,
!204
Multiple types update
,
!201
Fix duplicate ids
Pipeline
#10962
failed
4 years ago
Stage: sanity
Stage: lint
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
internewshid/hid/static/hid/js/enable_multiselect.js
+2
-2
2 additions, 2 deletions
internewshid/hid/static/hid/js/enable_multiselect.js
internewshid/hid/templates/hid/add_edit_item.html
+2
-2
2 additions, 2 deletions
internewshid/hid/templates/hid/add_edit_item.html
with
4 additions
and
4 deletions
internewshid/hid/static/hid/js/enable_multiselect.js
+
2
−
2
View file @
009cd651
...
@@ -5,11 +5,11 @@ $(document).ready(function() {
...
@@ -5,11 +5,11 @@ $(document).ready(function() {
includeResetOption
:
true
,
includeResetOption
:
true
,
numberDisplayed
:
1
numberDisplayed
:
1
});
});
$
(
'
#feedback_type
.name
'
).
multiselect
({
$
(
'
#feedback_type
'
).
multiselect
({
nonSelectedText
:
gettext
(
'
All Ages
'
),
nonSelectedText
:
gettext
(
'
All Ages
'
),
buttonClass
:
'
form-control
'
,
buttonClass
:
'
form-control
'
,
includeResetOption
:
true
,
includeResetOption
:
true
,
numberDisplayed
:
1
numberDisplayed
:
2
});
});
...
...
This diff is collapsed.
Click to expand it.
internewshid/hid/templates/hid/add_edit_item.html
+
2
−
2
View file @
009cd651
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
{% if form.feedback_type %}
{% if form.feedback_type %}
<div
class=
"item-feedback-type form-group input-group {% if form.feedback_type.errors %}has-error{% endif %}"
>
<div
class=
"item-feedback-type form-group input-group {% if form.feedback_type.errors %}has-error{% endif %}"
>
<label
class=
"control-label"
for=
"feedback_type
.name
"
>
<label
class=
"control-label"
for=
"feedback_type"
>
{% trans "Type" %}
{% trans "Type" %}
{% if form.feedback_type.errors %}
<span
class=
'help-block'
>
({{ form.feedback_type.errors|join:", " }})
</span>
{% endif %}
{% if form.feedback_type.errors %}
<span
class=
'help-block'
>
({{ form.feedback_type.errors|join:", " }})
</span>
{% endif %}
</label>
</label>
<select
name=
"{{ form.feedback_type.name }}"
class=
"form-control"
id=
"feedback_type
.name
"
multiple
autocomplete=
"off"
>
<select
name=
"{{ form.feedback_type.name }}"
class=
"form-control"
id=
"feedback_type"
multiple
autocomplete=
"off"
>
{% for choice in form.feedback_type.field.choices %}
{% for choice in form.feedback_type.field.choices %}
{% if choice.0 in form.initial.feedback_types %}
{% if choice.0 in form.initial.feedback_types %}
<option
selected=
"selected"
value=
"{{ choice.0 }}"
>
{{ choice.1 }}
</option>
<option
selected=
"selected"
value=
"{{ choice.0 }}"
>
{{ choice.1 }}
</option>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment