Files
work-volume-tracker/app/templates/agreements/new.html
T
2026-09-25 20:33:07 +03:00

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>&#1053;&#1086;&#1074;&#1086;&#1077; &#1044;&#1057; — {{ 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/">&#1055;&#1088;&#1086;&#1077;&#1082;&#1090;&#1099;</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">&#1044;&#1057;</a></li><li class="breadcrumb-item active">&#1057;&#1086;&#1079;&#1076;&#1072;&#1090;&#1100;</li></ol></nav><h1 class="h2 mb-4">&#1057;&#1086;&#1079;&#1076;&#1072;&#1090;&#1100; &#1044;&#1057;</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">&#1053;&#1086;&#1084;&#1077;&#1088;</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">&#1044;&#1072;&#1090;&#1072;</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">&#1053;&#1072;&#1080;&#1084;&#1077;&#1085;&#1086;&#1074;&#1072;&#1085;&#1080;&#1077;</label><input class="form-control" id="title" name="title" required maxlength="255"></div>
<div class="col-12"><label class="form-label" for="description">&#1054;&#1087;&#1080;&#1089;&#1072;&#1085;&#1080;&#1077;</label><textarea class="form-control" id="description" name="description" rows="3"></textarea></div><div class="col-md-7"><label class="form-label" for="scope">&#1054;&#1073;&#1083;&#1072;&#1089;&#1090;&#1100; &#1087;&#1088;&#1080;&#1084;&#1077;&#1085;&#1077;&#1085;&#1080;&#1103;</label><select class="form-select" id="scope" name="scope" required><option value="project">&#1042;&#1077;&#1089;&#1100; &#1087;&#1088;&#1086;&#1077;&#1082;&#1090;</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">&#1042; &#1087;&#1088;&#1086;&#1077;&#1082;&#1090;&#1077; &#1085;&#1077;&#1090; &#1042;&#1077;&#1076;&#1086;&#1084;&#1086;&#1089;&#1090;&#1077;&#1081;. &#1052;&#1086;&#1078;&#1085;&#1086; &#1074;&#1099;&#1073;&#1088;&#1072;&#1090;&#1100; &#1086;&#1073;&#1083;&#1072;&#1089;&#1090;&#1100; &laquo;&#1042;&#1077;&#1089;&#1100; &#1087;&#1088;&#1086;&#1077;&#1082;&#1090;&raquo;.</div></div>{% endif %}</div><div class="card-footer bg-white d-flex gap-2"><button class="btn btn-primary" type="submit">&#1057;&#1086;&#1079;&#1076;&#1072;&#1090;&#1100; &#1095;&#1077;&#1088;&#1085;&#1086;&#1074;&#1080;&#1082;</button><a class="btn btn-outline-secondary" href="/projects/{{ project.id }}/agreements">&#1054;&#1090;&#1084;&#1077;&#1085;&#1072;</a></div></form></main></body></html>