Skip to content

Commit

Permalink
remove static/ from gitignore to add to new static files
Browse files Browse the repository at this point in the history
  • Loading branch information
CJGutz committed Nov 28, 2023
1 parent 3a6b446 commit 1827f47
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ profilepictures/
env/
venv/
.vscode/
static/
**/__pycache__
/static/

Expand Down
15 changes: 15 additions & 0 deletions internalportal/static/internalportal/css/applications.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.application-info {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 10px;
}

.application-button-bar {
margin-top: 2rem;
margin-bottom: 2rem;
display: flex;
gap: 4rem;
flex-wrap: wrap;
justify-content: space-around;
}
53 changes: 53 additions & 0 deletions website/static/website/js/datetimepicker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
document.addEventListener("DOMContentLoaded", function() {
var datepickers = document.querySelectorAll('.datepicker');

internationalization = {
months: [
'Januar',
'Februar',
'Mars',
'April',
'Mai',
'Juni',
'Juli',
'August',
'September',
'Oktober',
'November',
'Desember'
],
weekdays: [
'Søndag',
'Mandag',
'Tirsdag',
'Onsdag',
'Torsdag',
'Fredag',
'Lørdag'
],
weekdaysShort: [
'Søn',
'Man',
'Tir',
'Ons',
'Tor',
'Fre',
'Lør'
],
weekdaysAbbrev: ['S','M','T','O','T','F','L']
}
options = {
format: 'yyyy-mm-dd',
firstDay: 1,
i18n: internationalization
}
M.Datepicker.init(datepickers, options);


var elems = document.querySelectorAll('.timepicker');
options = {
twelveHour: false,
format: 'HH:mm',
};
M.Timepicker.init(elems, options);
});

0 comments on commit 1827f47

Please sign in to comment.