mirror of
https://github.com/ferdzo/serviceCRM.git
synced 2026-04-04 21:06:24 +00:00
Added broken navbar
This commit is contained in:
@@ -11,8 +11,10 @@ class InputForm(forms.ModelForm):
|
||||
fields = {"name", "phone", "description", "date","done"}
|
||||
labels = {'name': "Name", 'phone': "Phone", 'date': "Date", 'description': "Description",'done':"Done"}
|
||||
widgets = {
|
||||
'name': forms.TextInput(attrs={'class':'form-control'}),
|
||||
'phone': forms.TextInput(attrs={'class': 'form-control'}),
|
||||
'date': DateInput(),
|
||||
'description':forms.Textarea
|
||||
'description':forms.Textarea(attrs={'class': 'form-control'})
|
||||
}
|
||||
field_order =["name", "phone", "date","description","done"]
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"/>
|
||||
|
||||
<title>Service </title>
|
||||
</head>
|
||||
<body>
|
||||
@@ -13,11 +12,32 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.20/jquery.datetimepicker.full.min.js"></script>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-inverse">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="/">Service CRM</a>
|
||||
</div>
|
||||
{% comment %} <ul class="nav navbar-nav">
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#">Page 1</a></li>
|
||||
<li><a href="#">Page 2</a></li>
|
||||
</ul> {% endcomment %}
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="/insert"><span class="glyphicon glyphicon-user"></span>Insert</a></li>
|
||||
<li><a href="/admin"><span class="glyphicon glyphicon-log-in"></span> Admin</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
{% comment %} <h1 class="mt-2">Service CRM</h1>
|
||||
<a href='/insert'><button type="button" class="btn btn-dark">Insert</button></a>
|
||||
<hr class="mt-0 mb-4"> {% endcomment %}
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-8">
|
||||
<h1 class="mt-2">Service CRM</h1>
|
||||
<hr class="mt-0 mb-4">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
@@ -2,8 +2,10 @@
|
||||
{% block content %}
|
||||
{% csrf_token %}
|
||||
<form action="/insert/" method="post">
|
||||
<div class="form-group">
|
||||
{% csrf_token %}
|
||||
{{form.as_p}}
|
||||
<input type="submit" class="btn btn-success" value="Submit">
|
||||
</div>
|
||||
</form>
|
||||
{% endblock%}
|
||||
@@ -19,10 +19,9 @@ from django.urls import include, path
|
||||
import serviceCRM.views as view
|
||||
|
||||
urlpatterns = [
|
||||
path("", view.index, name="index"),
|
||||
path("", view.List.as_view(), name="index"),
|
||||
path('admin/', admin.site.urls),
|
||||
path("<int:question_id>/", view.ReportById.ReportById, name="detail"),
|
||||
path("insert/", view.InsertNew.insert, name="insert"),
|
||||
path("done/<int:question_id>", view.done, name="done"),
|
||||
path("list/", view.List.as_view(), name="list")
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user