Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
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
idatt2106_2022_02
boco-frontend
Commits
1b360caf
Commit
1b360caf
authored
3 years ago
by
Erik Borgeteien Hansen
Browse files
Options
Downloads
Patches
Plain Diff
make register page mobile friendlier
parent
8953179d
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Register view
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/RegisterFormComponent.vue
+24
-16
24 additions, 16 deletions
src/components/RegisterFormComponent.vue
src/views/RegisterView.vue
+2
-3
2 additions, 3 deletions
src/views/RegisterView.vue
with
26 additions
and
19 deletions
src/components/RegisterFormComponent.vue
+
24
−
16
View file @
1b360caf
<
template
>
<
template
>
<v-form
ref=
"form"
v-model=
"valid"
lazy-validation
>
<v-form
ref=
"form"
v-model=
"valid"
lazy-validation
>
<v-text-field
<v-container
class=
"grey lighten-5"
>
v-model=
"firstName"
<v-row>
:counter=
"32"
<v-text-field
:rules=
"firstNameRules"
class=
"pr-2"
label=
"Fornavn"
v-model=
"firstName"
required
:counter=
"32"
></v-text-field>
:rules=
"firstNameRules"
label=
"Fornavn"
required
></v-text-field>
<v-text-field
<v-text-field
v-model=
"lastName"
class=
"pl-2"
:counter=
"32"
v-model=
"lastName"
:rules=
"lastNameRules"
:counter=
"32"
label=
"Etternavn"
:rules=
"lastNameRules"
required
label=
"Etternavn"
></v-text-field>
required
></v-text-field>
</v-row>
</v-container>
<v-text-field
<v-text-field
v-model=
"email"
v-model=
"email"
...
@@ -71,7 +77,7 @@
...
@@ -71,7 +77,7 @@
>
Registrer
</v-btn
>
Registrer
</v-btn
>
>
<v-btn
color=
"error"
class=
"mr-4"
@
click=
"reset"
>
Tøm
alle
felter
</v-btn>
<v-btn
color=
"error"
class=
"mr-4"
@
click=
"reset"
>
Tøm felter
</v-btn>
</v-form>
</v-form>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -100,7 +106,8 @@ export default {
...
@@ -100,7 +106,8 @@ export default {
password
:
""
,
password
:
""
,
passwordRules
:
[
passwordRules
:
[
(
v
)
=>
!!
v
||
"
Passord er påkrevd
"
,
(
v
)
=>
!!
v
||
"
Passord er påkrevd
"
,
(
v
)
=>
(
v
&&
v
.
length
<=
32
)
||
"
Passord må være mindre enn 32 bokstaver
"
,
(
v
)
=>
(
v
&&
v
.
length
<=
32
)
||
"
Passord må være mindre enn 32 tegn
"
,
(
v
)
=>
(
v
&&
v
.
length
>=
8
)
||
"
Passord må være større enn 8 tegn
"
,
],
],
// confirmPassword: "",
// confirmPassword: "",
// confirmPasswordRules: [
// confirmPasswordRules: [
...
@@ -126,6 +133,7 @@ export default {
...
@@ -126,6 +133,7 @@ export default {
reset
()
{
reset
()
{
this
.
$refs
.
form
.
reset
();
this
.
$refs
.
form
.
reset
();
this
.
$refs
.
form
.
resetValidation
();
this
.
$refs
.
form
.
resetValidation
();
this
.
valid
=
true
;
},
},
},
},
};
};
...
...
This diff is collapsed.
Click to expand it.
src/views/RegisterView.vue
+
2
−
3
View file @
1b360caf
<
template
>
<
template
>
<register-form-component
id=
"form"
/>
<register-form-component
id=
"form"
class=
"pa-8"
/>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -14,8 +14,7 @@ export default {
...
@@ -14,8 +14,7 @@ export default {
<
style
scoped
>
<
style
scoped
>
#form
{
#form
{
max-width
:
80%
;
max-width
:
600px
;
margin
:
auto
;
margin
:
auto
;
margin-top
:
5%
;
}
}
</
style
>
</
style
>
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