forked from k1nd0ne/VolWeb
-
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.
Add symbols edition deletion + Bug fix
- Loading branch information
Showing
19 changed files
with
217 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ docker/nginx/log/ | |
db.sqlite3 | ||
investigations/.DS_Store | ||
.DS_Store | ||
|
||
*.json |
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
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,3 +1,5 @@ | ||
from django.contrib import admin | ||
from .models import Symbols | ||
admin.site.register(Symbols) | ||
|
||
# Register your models here. |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% extends "dashboard/base.html" %} | ||
{% load static %} | ||
{% block content%} | ||
<div class="container"><a class="btn btn-link link-primary mb-3" role="button" target="_parent" href="{% url 'symbols'%}"><i class="fas fa-arrow-left"></i> Back</a> | ||
<div class="d-sm-flex justify-content-between align-items-center mb-4"> | ||
<h3 class="text-dark mb-0">Upload a symbol table</h3> | ||
</div> | ||
<form method="POST" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
<div class="card bg-light border border-dark border-sm shadow mb-3"> | ||
<div class="card-header py-3"> | ||
<p class="text-dark m-0 fw-bold">Fill in the required fields *</p> | ||
</div> | ||
<div class="card-body"> | ||
<div class="row"> | ||
<div class="col-sm-12 col-md-8 col-lg-8"> | ||
<div class="mb-3"><label class="form-label" for="service_name"><strong>Name *</strong></label>{{form.name}}</div> | ||
</div> | ||
<div class="col-sm-12 col-md-4 col-lg-4"> | ||
<div class="mb-3"><label class="form-label" for="service_price"><strong>OS *</strong><br></label>{{form.os}}</div> | ||
</div> | ||
</div> | ||
<div class="mb-3"><label class="form-label" for="client_description"><strong>Description *</strong><br></label>{{form.description}}</div> | ||
<div class="mb-3"><label class="form-label" for="service_client_end_date"><strong>ISF :</strong><br></label> | ||
{{file}} | ||
</div> | ||
{{form.symbols_id}} | ||
<button class="btn btn-primary" id="submit">Save</button> | ||
</div> | ||
</div> | ||
<div class="text-end mb-3"></div> | ||
</form> | ||
</div> | ||
|
||
<script> | ||
|
||
$(document).ready(function(){ | ||
$('#id_symbols_id').val('{{symbols_id}}'); | ||
$('.container').show(); | ||
$('.container-fluid').show(); | ||
$('.spinner-main').hide(); | ||
}); | ||
|
||
</script> | ||
{% 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
Empty file.
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.