Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
archery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
archery
Commits
abf688b3
Commit
abf688b3
authored
Oct 07, 2017
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Android compat fixes of form inputs
parent
23f8adb4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
routes/common.php
routes/common.php
+2
-1
routes/register.php
routes/register.php
+1
-0
templates/match/scores.latte
templates/match/scores.latte
+1
-1
No files found.
routes/common.php
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'
));
...
...
routes/register.php
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-_])+'
)
...
...
templates/match/scores.latte
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]}">
...
...
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