|
{% 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 %} |
|
|
|
|