Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Sith
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
Sith
Commits
5eb1e609
Commit
5eb1e609
authored
Mar 27, 2017
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests issues
parent
50413abf
Pipeline
#823
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
core/views/forms.py
core/views/forms.py
+3
-2
No files found.
core/views/forms.py
View file @
5eb1e609
...
...
@@ -5,6 +5,7 @@ from django.core.exceptions import ValidationError
from
django.contrib.auth
import
logout
,
login
,
authenticate
from
django.forms
import
CheckboxSelectMultiple
,
Select
,
DateInput
,
TextInput
,
DateTimeInput
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils.translation
import
ugettext
from
phonenumber_field.widgets
import
PhoneNumberInternationalFallbackWidget
from
ajax_select.fields
import
AutoCompleteSelectField
...
...
@@ -59,7 +60,7 @@ class SelectFile(TextInput):
'title'
:
_
(
"Choose file"
),
'name'
:
name
,
}
output
+=
'<span name="'
+
name
+
'" class="choose_file_button">'
+
_
(
"Choose file"
)
+
'</span>'
output
+=
'<span name="'
+
name
+
'" class="choose_file_button">'
+
ugettext
(
"Choose file"
)
+
'</span>'
return
output
class
SelectUser
(
TextInput
):
...
...
@@ -73,7 +74,7 @@ class SelectUser(TextInput):
'title'
:
_
(
"Choose user"
),
'name'
:
name
,
}
output
+=
'<span name="'
+
name
+
'" class="choose_user_button">'
+
_
(
"Choose user"
)
+
'</span>'
output
+=
'<span name="'
+
name
+
'" class="choose_user_button">'
+
ugettext
(
"Choose user"
)
+
'</span>'
return
output
# Forms
...
...
Write
Preview
Markdown
is supported
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