Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Commits
a5368b14
Commit
a5368b14
authored
2 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Build LessonDocumentation component
parent
d8b7c2f4
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
aleksis/apps/alsijil/static/js/vue/components/alsijil/LessonDocumentation.js
+101
-0
101 additions, 0 deletions
...l/static/js/vue/components/alsijil/LessonDocumentation.js
with
101 additions
and
0 deletions
aleksis/apps/alsijil/static/js/vue/components/alsijil/LessonDocumentation.js
0 → 100644
+
101
−
0
View file @
a5368b14
export
default
{
methods
:
{},
props
:
[
"
date
"
,
"
period
"
,
"
topic
"
,
"
homework
"
,
"
groupNote
"
],
name
:
"
lesson-documentation
"
,
data
:
()
=>
{
console
.
log
(
this
);
return
{
valid
:
false
,
datePick
:
"
2030-09-29
"
,
showPicker
:
false
,
// period: 5,
}
},
template
:
`
<v-card elevation="2">
<v-form v-model="valid">
<v-row class="ma-0">
<v-col sm="12" md="4" lg="3" xl="2">
<v-hover v-slot="{ hover }">
<div>
<v-menu
v-model="showPicker"
:close-on-content-click="false"
transition="scale-transition"
offset-y
min-width="auto"
>
<template v-slot:activator="{ on, attrs }">
<v-card-title>
<span v-text="new Date(datePick).toLocaleDateString()"></span>
<v-btn right v-bind="attrs" v-on="on" icon><v-icon>mdi-pencil-outline</v-icon></v-btn>
</v-card-title>
</template>
<v-date-picker
scrollable
no-title
@input="showPicker = false"
v-model="datePick"
></v-date-picker>
</v-menu>
<v-menu offset-y>
<template v-slot:activator="{ on, attrs }">
<v-card-title>
<span v-text="period"></span>
<!-- (this.$root.django.gettext('%s. Period'), period)-->
<v-btn
right
v-bind="attrs"
v-on="on"
icon
>
<v-icon>mdi-pencil-outline</v-icon>
</v-btn>
</v-card-title>
</template>
<v-list>
<v-list-item
v-for="(item, index) in [1, 2, 3, 4, 5, 6, 7, 8, 9]"
:key="index"
>
<v-list-item-title>{{ item }}</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</div>
</v-hover>
</v-col>
<v-col sm="12" md="4" lg="6" xl="7">
<v-textarea
name="input-7-1"
:label="this.$root.django.gettext('Topic')"
rows="1"
auto-grow
required
:value="topic"
></v-textarea>
<v-textarea
name="input-7-1"
:label="this.$root.django.gettext('Homework')"
rows="1"
auto-grow
:value="homework"
></v-textarea>
<v-textarea
name="input-7-1"
:label="this.$root.django.gettext('Group note')"
rows="1"
auto-grow
:value="groupNote"
></v-textarea>
</v-col>
<v-col sm="12" md="4" lg="3">
TBA: Absences & excuses, delays and personal notes
</v-col>
</v-row>
</v-form>
</v-card>
`
}
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