Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Medarbetarpuls
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Fares Espiro
Medarbetarpuls
Commits
001b5cb9
Commit
001b5cb9
authored
2 weeks ago
by
Johannes Graf
Browse files
Options
Downloads
Patches
Plain Diff
unanswered_surveys done, dynamic cards not tested
parent
b2f1e54d
No related branches found
No related tags found
1 merge request
!16
Feature/unanswered surveys
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Medarbetarpuls/medarbetarapp/static/styles.css
+40
-0
40 additions, 0 deletions
Medarbetarpuls/medarbetarapp/static/styles.css
Medarbetarpuls/medarbetarapp/templates/unanswered_surveys.html
+25
-10
25 additions, 10 deletions
...betarpuls/medarbetarapp/templates/unanswered_surveys.html
with
65 additions
and
10 deletions
Medarbetarpuls/medarbetarapp/static/styles.css
+
40
−
0
View file @
001b5cb9
...
@@ -150,6 +150,46 @@ button:hover {
...
@@ -150,6 +150,46 @@ button:hover {
background-color
:
#a3cbff
;
background-color
:
#a3cbff
;
}
}
.unanswered-survey-container
{
max-width
:
1200px
;
justify-content
:
center
;
padding
:
20px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
/*Should be able to use for all survey-cards*/
.survey-cards
{
display
:
flex
;
align-items
:
center
;
max-width
:
900px
;
flex-wrap
:
wrap
;
gap
:
20px
;
justify-content
:
center
;
margin
:
20px
0
;
}
.survey-card
{
border
:
1px
solid
#ccc
;
border-radius
:
8px
;
padding
:
15px
;
width
:
200px
;
position
:
relative
;
background-color
:
#fff
;
}
.view-results
{
margin-top
:
20px
;
padding
:
10px
20px
;
background-color
:
#007bff
;
color
:
white
;
border
:
none
;
border-radius
:
5px
;
cursor
:
pointer
;
}
.start-container
{
.start-container
{
max-width
:
1200px
;
max-width
:
1200px
;
margin
:
0
auto
;
margin
:
0
auto
;
...
...
This diff is collapsed.
Click to expand it.
Medarbetarpuls/medarbetarapp/templates/unanswered_surveys.html
+
25
−
10
View file @
001b5cb9
...
@@ -8,22 +8,37 @@
...
@@ -8,22 +8,37 @@
<link
rel=
"stylesheet"
href=
"{% static 'styles.css' %}"
/>
<link
rel=
"stylesheet"
href=
"{% static 'styles.css' %}"
/>
</head>
</head>
<body>
<body>
<!--
<div
class=
"unanswered-survey-container"
>
<div
class=
"unanswered-survey-container"
>
<h1>
Obesvarade enkäter
</h1>
<h1>
Obesvarade enkäter
</h1>
<h2>Du har {{
surveys.
count }} obesvarade enkäter</h2>
<h2>
Du har {{
unanswered_
count }} obesvarade enkäter
</h2>
<div
class=
"survey-cards"
>
<div
class=
"survey-cards"
>
{% for survey in surveys %}
{% for survey in
unanswered_
surveys %}
<div class="survey-card
{% if survey.is_completed %}completed{% else %}pending{% endif %}
">
<div
class=
"survey-card"
>
<p>Publicerades: {{ survey.published_date }}</p>
<p>
Publicerades: {{ survey.published_
survey.sending_
date }}
</p>
<p><strong>*{{ survey.
titl
e }}*</strong></p>
<p><strong>
*{{ survey.
published_survey.nam
e }}*
</strong></p>
<p>Deadline: {{ survey.deadline }}</p>
<p>
Deadline: {{
survey.published_
survey.deadline }}
</p>
</div>
</div>
{% endfor %}
{% endfor %}
<!-- Example survey cards for testing -->
<div
class=
"survey-card"
>
<p>
Publicerades: 2025-02-20
</p>
<p><strong>
*Namn på enkät*
</strong></p>
<p>
Deadline: 2026-02-20
</p>
</div>
<div
class=
"survey-card"
>
<p>
Publicerades: 2025-02-20
</p>
<p><strong>
*Namn på enkät*
</strong></p>
<p>
Deadline: 2026-02-20
</p>
</div>
<div
class=
"survey-card"
>
<p>
Publicerades: 2025-02-20
</p>
<p><strong>
*Namn på enkät*
</strong></p>
<p>
Deadline: 2026-02-20
</p>
</div>
<!-- Add more survey cards as needed -->
</div>
</div>
<button class="view-
results
">Visa resultat på tidigare enkäter</button>
<button
class=
"view-
survey_result"
onclick=
"window.location.href='{% url 'survey_result' %}'
"
>
Visa resultat på tidigare enkäter
</button>
</div>
</div>
-->
</body>
</body>
</html>
</html>
\ No newline at end of file
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