New changes.
parent
6a291f36b2
commit
10f56adcde
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,19 @@
|
|||||||
|
# Generated by Django 4.2.5 on 2024-01-17 09:45
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('osinacore', '0047_task_status_date'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='customerprofile',
|
||||||
|
name='business',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='customer_profiles', to='osinacore.business'),
|
||||||
|
),
|
||||||
|
]
|
@ -0,0 +1,19 @@
|
|||||||
|
# Generated by Django 4.2.5 on 2024-01-17 09:47
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('osinacore', '0048_alter_customerprofile_business'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='customerprofile',
|
||||||
|
name='business',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='osinacore.business'),
|
||||||
|
),
|
||||||
|
]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 907 KiB |
Binary file not shown.
After Width: | Height: | Size: 813 KiB |
Binary file not shown.
After Width: | Height: | Size: 892 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
@ -0,0 +1,32 @@
|
|||||||
|
$(document).ready(function () {
|
||||||
|
// Display the epic based on the selected project by default
|
||||||
|
updateEpicDropdown();
|
||||||
|
|
||||||
|
// Update the "Epic" dropdown when the "Project" dropdown changes
|
||||||
|
$('#projectDropdown').on('change', function () {
|
||||||
|
updateEpicDropdown();
|
||||||
|
});
|
||||||
|
|
||||||
|
function updateEpicDropdown() {
|
||||||
|
var selectedProjectId = $('#projectDropdown').val();
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: '/fetch_epics/',
|
||||||
|
method: 'GET',
|
||||||
|
data: { project_id: selectedProjectId },
|
||||||
|
success: function (data) {
|
||||||
|
// Clear existing options
|
||||||
|
$('#epicDropdown').empty();
|
||||||
|
|
||||||
|
// Add the new options based on the fetched data
|
||||||
|
$.each(data.epics, function (index, epic) {
|
||||||
|
var selected = (epic.id == '{{ task.epic.id }}') ? 'selected' : '';
|
||||||
|
$('#epicDropdown').append('<option value="' + epic.id + '" ' + selected + '>' + epic.title + '</option>');
|
||||||
|
});
|
||||||
|
},
|
||||||
|
error: function () {
|
||||||
|
console.log('Error fetching epics');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1,30 @@
|
|||||||
|
{%load static%}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<form id="hiddenContent" method="post" action="{% url 'deletebusinessmodal' business.id %}" target="_parent">
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
|
<div class="h-[140px] flex flex-col justify-center items-center">
|
||||||
|
<h1 class="text-slate-800 text-xl font-semibold text-center">Are you sure you want to delete this business?</h1>
|
||||||
|
|
||||||
|
<div class="w-full flex justify-center items-center mt-5 gap-5">
|
||||||
|
<button
|
||||||
|
class="w-fit bg-red-500 border border-red-500 rounded-md text-white text-base px-3 py-2 hover:bg-white hover:text-red-500">Delete</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -0,0 +1,30 @@
|
|||||||
|
{%load static%}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<form id="hiddenContent" method="post" action="{% url 'deletecustomermodal' customer.id %}" target="_parent">
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
|
<div class="h-[140px] flex flex-col justify-center items-center">
|
||||||
|
<h1 class="text-slate-800 text-xl font-semibold text-center">Are you sure you want to delete this customer?</h1>
|
||||||
|
|
||||||
|
<div class="w-full flex justify-center items-center mt-5 gap-5">
|
||||||
|
<button
|
||||||
|
class="w-fit bg-red-500 border border-red-500 rounded-md text-white text-base px-3 py-2 hover:bg-white hover:text-red-500">Delete</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -0,0 +1,30 @@
|
|||||||
|
{%load static%}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<form id="hiddenContent" method="post" action="{% url 'deleteprojectmodal' project.id %}" target="_parent">
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
|
<div class="h-[140px] flex flex-col justify-center items-center">
|
||||||
|
<h1 class="text-slate-800 text-xl font-semibold text-center">Are you sure you want to delete this project?</h1>
|
||||||
|
|
||||||
|
<div class="w-full flex justify-center items-center mt-5 gap-5">
|
||||||
|
<button
|
||||||
|
class="w-fit bg-red-500 border border-red-500 rounded-md text-white text-base px-3 py-2 hover:bg-white hover:text-red-500">Delete</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -0,0 +1,30 @@
|
|||||||
|
{%load static%}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<form id="hiddenContent" method="post" action="{% url 'deletestaffmodal' staff.id %}" target="_parent">
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
|
<div class="h-[140px] flex flex-col justify-center items-center">
|
||||||
|
<h1 class="text-slate-800 text-xl font-semibold text-center">Are you sure you want to delete this staff?</h1>
|
||||||
|
|
||||||
|
<div class="w-full flex justify-center items-center mt-5 gap-5">
|
||||||
|
<button
|
||||||
|
class="w-fit bg-red-500 border border-red-500 rounded-md text-white text-base px-3 py-2 hover:bg-white hover:text-red-500">Delete</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -0,0 +1,30 @@
|
|||||||
|
{%load static%}
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<form id="hiddenContent" method="post" action="{% url 'deletetaskmodal' task.id %}" target="_parent">
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
|
<div class="h-[140px] flex flex-col justify-center items-center">
|
||||||
|
<h1 class="text-slate-800 text-xl font-semibold text-center">Are you sure you want to delete this task?</h1>
|
||||||
|
|
||||||
|
<div class="w-full flex justify-center items-center mt-5 gap-5">
|
||||||
|
<button
|
||||||
|
class="w-fit bg-red-500 border border-red-500 rounded-md text-white text-base px-3 py-2 hover:bg-white hover:text-red-500">Delete</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -1,26 +0,0 @@
|
|||||||
{% load static %}
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Osina</title>
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href='{% static "dist/output.css" %}'>
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div id="hiddenContent">
|
|
||||||
<h1 class="text-slate-800 text-2xl font-semibold text-center">Are you sure you want to delete this task?</h1>
|
|
||||||
|
|
||||||
<div class="w-full flex justify-center items-center mt-4 gap-5">
|
|
||||||
<button
|
|
||||||
class="w-[100px] bg-red-500 border border-red-500 rounded-md text-white text-xl px-3 py-2 hover:bg-white hover:text-red-500" id="noDeleteTaskBttn">Delete</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue