Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
ots
hypha
Commits
fe4e4328
Commit
fe4e4328
authored
7 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
Change the input type to be a number for the value widget
parent
f648814a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/apply/funds/blocks.py
+2
-0
2 additions, 0 deletions
opentech/apply/funds/blocks.py
with
2 additions
and
0 deletions
opentech/apply/funds/blocks.py
+
2
−
0
View file @
fe4e4328
from
collections
import
Counter
from
collections
import
Counter
from
django
import
forms
from
django.core.exceptions
import
ValidationError
from
django.core.exceptions
import
ValidationError
from
django.forms.utils
import
ErrorList
from
django.forms.utils
import
ErrorList
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils.translation
import
ugettext_lazy
as
_
...
@@ -106,6 +107,7 @@ class TitleBlock(MustIncludeFieldBlock):
...
@@ -106,6 +107,7 @@ class TitleBlock(MustIncludeFieldBlock):
class
ValueBlock
(
MustIncludeFieldBlock
):
class
ValueBlock
(
MustIncludeFieldBlock
):
name
=
'
value
'
name
=
'
value
'
description
=
'
The value of the project
'
description
=
'
The value of the project
'
widget
=
forms
.
NumberInput
REQUIRED_BLOCK_NAMES
=
[
block
.
name
for
block
in
MustIncludeFieldBlock
.
__subclasses__
()]
REQUIRED_BLOCK_NAMES
=
[
block
.
name
for
block
in
MustIncludeFieldBlock
.
__subclasses__
()]
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