7 lines
3.2 KiB
HTML
7 lines
3.2 KiB
HTML
<!doctype html><html lang="ru"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Новое ДС — {{ project.name }}</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"></head><body class="bg-light"><main class="container py-4">
|
|
<nav><ol class="breadcrumb"><li class="breadcrumb-item"><a href="/projects/">Проекты</a></li><li class="breadcrumb-item"><a href="/projects/{{ project.id }}">{{ project.name }}</a></li><li class="breadcrumb-item"><a href="/projects/{{ project.id }}/agreements">ДС</a></li><li class="breadcrumb-item active">Создать</li></ol></nav><h1 class="h2 mb-4">Создать ДС</h1>
|
|
{% if error %}<div class="alert alert-danger">{{ error }}</div>{% endif %}<form class="card border-0 shadow-sm" method="post" action="/projects/{{ project.id }}/agreements"><div class="card-body row g-3">
|
|
<div class="col-md-4"><label class="form-label" for="number">Номер</label><input class="form-control" id="number" name="number" required maxlength="100"></div><div class="col-md-4"><label class="form-label" for="agreement_date">Дата</label><input class="form-control" type="date" id="agreement_date" name="agreement_date" value="{{ today }}" required></div><div class="col-md-4"><label class="form-label" for="title">Наименование</label><input class="form-control" id="title" name="title" required maxlength="255"></div>
|
|
<div class="col-12"><label class="form-label" for="description">Описание</label><textarea class="form-control" id="description" name="description" rows="3"></textarea></div><div class="col-md-7"><label class="form-label" for="scope">Область применения</label><select class="form-select" id="scope" name="scope" required><option value="project">Весь проект</option>{% for doc in boq_documents %}<option value="boq:{{ doc.id }}">{{ doc.name }}</option>{% endfor %}</select></div>
|
|
{% if not boq_documents %}<div class="col-12"><div class="alert alert-warning mb-0">В проекте нет Ведомостей. Можно выбрать область «Весь проект».</div></div>{% endif %}</div><div class="card-footer bg-white d-flex gap-2"><button class="btn btn-primary" type="submit">Создать черновик</button><a class="btn btn-outline-secondary" href="/projects/{{ project.id }}/agreements">Отмена</a></div></form></main></body></html>
|