generated from MinBZK/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 2 commits.
# This is the 1st commit message: mend # This is the commit message #2: Delete alert
- Loading branch information
Showing
9 changed files
with
217 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"devDependencies": { | ||
"@nl-rvo/assets": "1.0.0-alpha.360", | ||
"@nl-rvo/component-library-css": "1.0.0", | ||
"@nl-rvo/design-tokens": "1.0.0-alpha.407" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
<footer> | ||
<div class="header_nav"> | ||
<div class="language_selection"> | ||
<span>{% trans %}Language{% endtrans %}:</span> | ||
|
||
{% for available_translation in available_translations %} | ||
<a {% if available_translation==language %}class="selected" {% endif %} | ||
id="langselect-{{ available_translation }}" | ||
href="javascript:setCookie('lang','{{ available_translation }}',9999); window.location.reload()">{{ | ||
available_translation }}</a> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</footer> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,87 @@ | ||
{% extends 'layouts/base.html.j2' %} | ||
|
||
{% block content %} | ||
<h1 class="margin-bottom--large">{% trans %}New Project{% endtrans %}</h1> | ||
|
||
<form hx-ext="json-enc" hx-post="/projects/new" hx-headers='{"X-CSRF-Token": "{{ csrftoken }}"}' hx-target-error="#errorContainer" hx-swap="innerHTML" method="post"> | ||
{% trans %}Project name{% endtrans %} <input type="text" id="name" name="name"> | ||
|
||
<fieldset> | ||
<legend>{% trans %}Selected Instruments{% endtrans %}</legend> | ||
{% for instrument in instruments %} | ||
<div class="instrument"> | ||
<input type="checkbox" id="{{ instrument.urn }}" name="instruments" value="{{ instrument.urn }}" /><label for="{{ instrument.urn }}">{{ instrument.name }}</label> | ||
<div class="rvo-max-width-layout rvo-max-width-layout--md"> | ||
<main> | ||
<div class="rvo-form"> | ||
<div class="rvo-layout-column rvo-layout-gap--sm"> | ||
<div class="rvo-form-intro"> | ||
<h1 class="utrecht-heading-1"> {% trans %}New project{% endtrans %}</h1> | ||
</div> | ||
<form class="rvo-layout-spacer rvo-layout-spacer--2xl" hx-ext="json-enc" hx-post="/projects/new" hx-headers='{"X-CSRF-Token": "{{ csrftoken }}"}' hx-target-error="#errorContainer" hx-swap="innerHTML" method="post"> | ||
<div class="utrecht-form-fieldset rvo-form-fieldset"> | ||
<fieldset | ||
class="utrecht-form-fieldset__fieldset utrecht-form-fieldset--html-fieldset" | ||
> | ||
<legend | ||
class="utrecht-form-fieldset__legend utrecht-form-fieldset__legend--html-legend" | ||
> | ||
Keyboard inputs | ||
</legend> | ||
<div | ||
role="group" | ||
aria-labelledby="fieldId-label" | ||
class="utrecht-form-field utrecht-form-field--text rvo-form-field" | ||
> | ||
<div class="rvo-form-field__label"> | ||
<label class="rvo-label">{% trans %}Project name{% endtrans %}</label> | ||
</div> | ||
<input | ||
id="field" | ||
placeholder="" | ||
type="text" | ||
class="utrecht-textbox utrecht-textbox--html-input" | ||
dir="auto" | ||
value="" | ||
/> | ||
</div> | ||
<div | ||
role="group" | ||
aria-labelledby="fieldId-label" | ||
class="utrecht-form-field utrecht-form-field--text rvo-form-field" | ||
> | ||
<div class="rvo-form-field__label"> | ||
<label class="rvo-label">{% trans %}Instruments{% endtrans %}</label> | ||
<div | ||
id="helperTextId" | ||
class="utrecht-form-field-description" | ||
> | ||
{% trans %}Select 1 or more instruments{% endtrans %} | ||
</div> | ||
</div> | ||
{% for instrument in instruments %} | ||
<div class="rvo-checkbox__group"> | ||
<label | ||
class="rvo-checkbox rvo-checkbox--not-checked" | ||
for="{{ instrument.urn }}" | ||
> | ||
<input | ||
id="{{ instrument.urn }}" | ||
name="instruments" | ||
class="rvo-checkbox__input" | ||
type="checkbox" | ||
value="{{ instrument.urn }}" | ||
/> | ||
{{ instrument.name }} | ||
</label> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
<div id="errorContainer"></div> | ||
</fieldset> | ||
</div> | ||
{% endfor %} | ||
</fieldset> | ||
|
||
<button type="submit">{% trans %}Create Project{% endtrans %}</button> | ||
</form> | ||
<div id="errorContainer"></div> | ||
<p class="utrecht-button-group"> | ||
<button | ||
class="utrecht-button utrecht-button--primary-action rvo-layout-row rvo-layout-gap--md utrecht-button--rvo-md" | ||
type="button" | ||
> | ||
{% trans %}Create Project{% endtrans %} | ||
</button> | ||
</p> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
{% endblock %} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.