Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Nounous
re2o
Commits
5757a1e9
Commit
5757a1e9
authored
May 13, 2018
by
Yoann Pietri
Committed by
Hugo LEVY-FALK
May 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avec le name ça marche mieux
parent
838c5999
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
users/templates/users/datetimepicker.html
users/templates/users/datetimepicker.html
+1
-1
users/widgets.py
users/widgets.py
+1
-0
No files found.
users/templates/users/datetimepicker.html
View file @
5757a1e9
...
...
@@ -4,7 +4,7 @@
<script
src=
"/javascript/jquery-timepicker/jquery-ui-timepicker-addon.js"
></script>
<link
href=
"/javascript/jquery-ui/css/smoothness/jquery-ui.min.css"
rel=
"stylesheet"
/>
<link
href=
"/javascript/jquery-timepicker/jquery-ui-timepicker-addon.css"
rel=
"stylesheet"
/>
<input
{{
attrs
}}
name=
"
datetimepicker
"
type=
"text"
class=
"form-control"
placeholder=
"Date"
/>
<input
{{
attrs
}}
name=
"
{{name}}
"
type=
"text"
class=
"form-control"
placeholder=
"Date"
/>
<script>
$
(
document
).
ready
(
function
(){
$
(
"
#{{id}}
"
).
datetimepicker
({
...
...
users/widgets.py
View file @
5757a1e9
...
...
@@ -29,6 +29,7 @@ class DateTimePicker(Input):
super
().
render
(
name
,
value
,
attrs
)
flat_attrs
=
flatatt
(
attrs
)
context
=
Context
({
'name'
:
name
,
'attrs'
:
flat_attrs
,
'id'
:
attrs
[
'id'
],
'closeText'
:
_
(
"Close"
),
...
...
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