Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Resint
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
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-Resint
Commits
256b85c3
Commit
256b85c3
authored
5 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Some changes to make 1.0.1 compatible with 1.0
parent
898f919e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biscuit/apps/mensa/templates/menu/index.html
+6
-5
6 additions, 5 deletions
biscuit/apps/mensa/templates/menu/index.html
biscuit/apps/mensa/templates/menu/upload.html
+8
-10
8 additions, 10 deletions
biscuit/apps/mensa/templates/menu/upload.html
with
14 additions
and
15 deletions
biscuit/apps/mensa/templates/menu/index.html
+
6
−
5
View file @
256b85c3
...
...
@@ -2,21 +2,22 @@
<main>
{% if msg == "success" %}
{% msg_box "Der Speiseplan wurde erfolgreich hochgeladen." "success" %}
{% msg_box "Der Speiseplan wurde erfolgreich hochgeladen." "success"
"check_circle"
%}
{% elif msg == "delete_success" %}
{% msg_box "Der Speiseplan wurde erfolgreich gelöscht." "success" %}
{% msg_box "Der Speiseplan wurde erfolgreich gelöscht." "success"
"check_circle"
%}
{% endif %}
<script
type=
"text/javascript"
>
$
(
'
#alert_close
'
).
click
(
function
()
{
$
(
"
#alert_box
"
).
fadeOut
(
"
slow
"
,
function
()
{
});
});
</script>
<a
class=
"waves-effect waves-light btn green"
href=
"{% url "
menu_upload
"
%}"
><i
class=
"material-icons left"
>
add
</i>
Neuen Speiseplan hochladen
</a>
Neuen Speiseplan hochladen
</a>
<a
class=
"waves-effect waves-light btn orange"
href=
"{% url "
menu_show_current
"
%}"
><i
class=
"material-icons left"
>
picture_as_pdf
</i>
Aktuellen Speiseplan anzeigen
</a>
Aktuellen Speiseplan anzeigen
</a>
<h5>
Übersicht der hochgeladenen Speisepläne
</h5>
<ul
class=
"collection"
>
{% for menu in menus %}
...
...
This diff is collapsed.
Click to expand it.
biscuit/apps/mensa/templates/menu/upload.html
+
8
−
10
View file @
256b85c3
...
...
@@ -5,11 +5,10 @@
{% csrf_token %}
{% msg_box form.non_field_errors "
red" "
" %}
{% msg_box form.non_field_errors "
error" "error
" %}
<div
class=
"row"
>
<div
class=
"input-field col s5"
>
{% msg_box form.calendar_week.errors "red" "" %}
{#
<label
for=
"{{ form.calendar_week.id_for_label }}"
>
Kalenderwoche
</label>
#}
{% msg_box form.calendar_week.errors "error" "error" %}
<small>
Kalenderwoche
</small>
{{ form.calendar_week }}
</div>
...
...
@@ -18,18 +17,15 @@
<h4>
/
</h4>
</div>
<div
class=
"input-field col s5"
>
{% msg_box form.year.errors "red" "" %}
{#
<label
for=
"{{ form.year.id_for_label }}"
>
Jahr
</label>
#}
{% msg_box form.year.errors "error" "error" %}
<small>
Jahr
</small>
{{ form.year }}
</div>
</div>
<div
class=
"file-field input-field"
>
<div
class=
"red-text"
>
{% msg_box form.pdf.errors "red" "" %}
</div>
{% msg_box form.pdf.errors "error" "error" %}
<div
class=
"btn"
>
<span><i
class=
"material-icons center"
>
cloud_upload
</i>
</span>
<span><i
class=
"material-icons center"
>
cloud_upload
</i></span>
<input
type=
"file"
name=
"{{ form.pdf.html_name }}"
>
</div>
<div
class=
"file-path-wrapper"
>
...
...
@@ -42,6 +38,8 @@
</button>
</form>
<p><a
href=
"{% url 'menu_index' %}"
class=
"waves-effect waves-teal btn-flat"
>
Zurück zur Übersicht
</a></p>
<p>
<a
href=
"{% url 'menu_index' %}"
class=
"waves-effect waves-teal btn-flat"
>
Zurück zur Übersicht
</a>
</p>
</main>
{% include 'partials/footer.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