Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
archery
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Taddeüs Kroes
archery
Commits
abf688b3
Commit
abf688b3
authored
7 years ago
by
Taddeüs Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Android compat fixes of form inputs
parent
23f8adb4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
routes/common.php
+2
-1
2 additions, 1 deletion
routes/common.php
routes/register.php
+1
-0
1 addition, 0 deletions
routes/register.php
templates/match/scores.latte
+1
-1
1 addition, 1 deletion
templates/match/scores.latte
with
4 additions
and
2 deletions
routes/common.php
+
2
−
1
View file @
abf688b3
...
...
@@ -13,7 +13,8 @@ function login_form() {
$form
->
setAction
(
'login'
);
$form
->
addText
(
'username'
,
_
(
'Username'
))
->
setRequired
();
->
setRequired
()
->
setAttribute
(
'autocapitalize'
,
'off'
);
$form
->
addPassword
(
'password'
,
_
(
'Password'
))
->
setRequired
();
$form
->
addCheckbox
(
'remember'
,
_
(
'Remember me'
));
...
...
This diff is collapsed.
Click to expand it.
routes/register.php
+
1
−
0
View file @
abf688b3
...
...
@@ -19,6 +19,7 @@ function registration_form() {
$form
->
addText
(
'username'
,
_
(
'Username'
))
->
setRequired
()
->
setAttribute
(
'autocapitalize'
,
'off'
)
->
addRule
(
Form
::
MIN_LENGTH
,
null
,
3
)
->
addRule
(
Form
::
MAX_LENGTH
,
null
,
100
)
->
addRule
(
Form
::
PATTERN
,
_
(
'Username may not contain whitespace or special characters'
),
'([a-zA-Z0-9-_])+'
)
...
...
This diff is collapsed.
Click to expand it.
templates/match/scores.latte
+
1
−
1
View file @
abf688b3
...
...
@@ -34,7 +34,7 @@
<th class="separator">{$i + 1}</th>
<td n:foreach="$row as $j => $arrow" data-score="{$arrow}"
class="{$j == $match->arrows - 1 ? separator}">
<input type="number" name="scores[]" min="0" max="10"
<input type="number" name="scores[]" min="0" max="10"
pattern="[0-9]*"
value="{$arrow ? $arrow}">
<input type="hidden" name="crosses[]"
value="{$crosses[$i][$j]}">
...
...
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