-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make responsive forms for inventory and facilities pages
- Loading branch information
Showing
10 changed files
with
2,090 additions
and
1,704 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,53 +1,45 @@ | ||
|
||
{% extends "base.html" %} | ||
{% load crispy_forms_tags %} | ||
{% block title %} | ||
Register/Amend Facility System | ||
{% endblock title %} | ||
{% block content %} | ||
{% extends "base.html" %} {% load crispy_forms_tags %} {% block title %} | ||
Register/Amend Facility System {% endblock title %} {% block content %} | ||
<a href="{% url 'ops:versions' %}">← Back</a> | ||
{% if perms.ops.change_facilitysystem %} | ||
<div class="row"> | ||
<div class="col-xl-10 col-lg-12 col-md-9 col-sm-10"> | ||
<div class="card shadow my-2"> | ||
<div class="card-header"> | ||
<div class="toolbar float-right"> | ||
{% if object.pk %} | ||
{% if perms.ops.delete_facilitysystem %} | ||
<a href="{% url 'ops:version_delete' object.pk %}" class="btn btn-danger btn-icon-split"> | ||
<span class="icon text-white-50"> | ||
<i class="fas fa-trash"></i> | ||
</span> | ||
<span class="text">Delete Version</span> | ||
</a> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="card-body p-0"> | ||
<div class="row"> | ||
<div class="col-lg-2 d-none d-lg-block"> | ||
</div> | ||
<div class="col-lg-6"> | ||
<div class="p-5"> | ||
<div class="text-left"> | ||
<h1 class="h4 text-gray-900 mb-4"> | ||
{% if object.pk %} | ||
Edit Version | ||
{% else %} | ||
Create Version | ||
{% endif %} | ||
</h1> | ||
</div> | ||
{% crispy form %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-xl-10 col-lg-10 col-md-10 col-sm-12"> | ||
<div class="row align-page-content"> | ||
<div class="card-header"> | ||
<div class="toolbar float-right"> | ||
{% if object.pk %} {% if perms.ops.delete_facilitysystem %} | ||
<a | ||
href="{% url 'ops:version_delete' object.pk %}" | ||
class="btn btn-danger btn-icon-split" | ||
> | ||
<span class="icon text-white-50"> | ||
<i class="fas fa-trash"></i> | ||
</span> | ||
<span class="text">Delete Version</span> | ||
</a> | ||
{% endif %} {% endif %} | ||
</div> | ||
</div> | ||
|
||
<div class="row d-block"> | ||
<div class="col-lg-2"></div> | ||
<div class="col-lg-8 center-form"> | ||
<div class="p-lg-5 p-xs-1 p-sm-1"> | ||
<div class="text-left"> | ||
<h1 class="h4 text-gray-900 mb-4"> | ||
{% if object.pk %} Edit Version {% else %} Create Version | ||
{%endif %} | ||
</h1> | ||
</div> | ||
{% crispy form %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% else %} | ||
<p>You do not have permission to edit system versions.</p> | ||
{% endif %} | ||
{% endblock content %} | ||
<p>You do not have permission to edit system versions.</p> | ||
{% endif %} {% endblock content %} |
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.