File size: 2,400 Bytes
0a40ab8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
{% extends "base.html" %}
{% block title %}Propose Amendment - PoliSage{% endblock %}
{% block content %}
<div class="container mt-4">
<h2>Propose New Amendment</h2>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
{% endif %}
{% endwith %}
<form method="POST" action="{{ url_for("amendment.propose_amendment") }}">
<div class="mb-3">
<label for="legislation_id" class="form-label">Legislation to Amend <span class="text-danger">*</span></label>
<select class="form-select" id="legislation_id" name="legislation_id" required>
<option value="" disabled {% if not legislation_id %}selected{% endif %}>Select Legislation...</option>
{% for leg in legislations %}
<option value="{{ leg.id }}" {% if legislation_id == leg.id|string %}selected{% endif %}>{{ leg.title }} (ID: {{ leg.id }})</option>
{% endfor %}
</select>
<div class="form-text">Choose the active legislation you want to propose changes for.</div>
</div>
<div class="mb-3">
<label for="proposed_changes" class="form-label">Proposed Changes <span class="text-danger">*</span></label>
<textarea class="form-control" id="proposed_changes" name="proposed_changes" rows="10" required>{{ proposed_changes or "" }}</textarea>
<div class="form-text">Describe the specific changes you are proposing. Be clear and concise.</div>
</div>
<div class="mb-3">
<label for="rationale" class="form-label">Rationale (Optional)</label>
<textarea class="form-control" id="rationale" name="rationale" rows="4">{{ rationale or "" }}</textarea>
<div class="form-text">Explain why these changes are necessary or beneficial.</div>
</div>
<button type="submit" class="btn btn-primary">Propose Amendment</button>
<a href="{{ url_for("amendment.list_amendments") }}" class="btn btn-secondary">Cancel</a>
</form>
</div>
{% endblock %}
|