-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: setup djhtml in pre-commit, reformat all html
- Loading branch information
Showing
21 changed files
with
290 additions
and
282 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
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
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,52 +1,52 @@ | ||
{% if messages %} | ||
<ul class="messages"> | ||
{% for message in messages %} | ||
{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert alert-error shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="stroke-current flex-shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg> | ||
<span> {{ message }}</span> | ||
<ul class="messages"> | ||
{% for message in messages %} | ||
{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert alert-error shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="stroke-current flex-shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg> | ||
<span> {{ message }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
{% elif message.level == DEFAULT_MESSAGE_LEVELS.INFO %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert alert-info shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-current flex-shrink-0 w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> | ||
<span> {{ message }}</span> | ||
</div> | ||
</div> | ||
</li> | ||
{% elif message.level == DEFAULT_MESSAGE_LEVELS.SUCCESS %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert alert-success shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="stroke-current flex-shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg> | ||
<span> {{ message }}</span> | ||
</div> | ||
</div> | ||
</li> | ||
{% elif message.level == DEFAULT_MESSAGE_LEVELS.WARNING %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert alert-warning shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="stroke-current flex-shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" /></svg> | ||
<span> {{ message }}</span> | ||
</div> | ||
</div> | ||
</li> | ||
{% else %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-info flex-shrink-0 w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> | ||
<span> {{ message }}</span> | ||
</div> | ||
</div> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</li> | ||
{% elif message.level == DEFAULT_MESSAGE_LEVELS.INFO %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert alert-info shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-current flex-shrink-0 w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> | ||
<span> {{ message }}</span> | ||
</div> | ||
</div> | ||
</li> | ||
{% elif message.level == DEFAULT_MESSAGE_LEVELS.SUCCESS %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert alert-success shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="stroke-current flex-shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg> | ||
<span> {{ message }}</span> | ||
</div> | ||
</div> | ||
</li> | ||
{% elif message.level == DEFAULT_MESSAGE_LEVELS.WARNING %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert alert-warning shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="stroke-current flex-shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" /></svg> | ||
<span> {{ message }}</span> | ||
</div> | ||
</div> | ||
</li> | ||
{% else %} | ||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}> | ||
<div class="alert shadow-lg"> | ||
<div> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-info flex-shrink-0 w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> | ||
<span> {{ message }}</span> | ||
</div> | ||
</div> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} |
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
114 changes: 57 additions & 57 deletions
114
src/firefighter/incidents/templates/incidents/widgets/form_container.html
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
Oops, something went wrong.