Feb 27 2026: update Issue view details 2

This commit is contained in:
2026-02-27 17:51:38 -05:00
parent 0cf36a2f41
commit 998569d402
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ def view(issue_id):
issue.result_photos = existing + new_photos issue.result_photos = existing + new_photos
# Persist a comment entry if the user wrote update notes # Persist a comment entry if the user wrote update notes
comment_body = form.comments.data.strip() if form.comments.data else '' comment_body = form.update_notes.data.strip() if form.update_notes.data else ''
if comment_body: if comment_body:
comment = IssueComment( comment = IssueComment(
issue_id = issue.id, issue_id = issue.id,
+2 -2
View File
@@ -118,8 +118,8 @@
</div> </div>
{% endif %} {% endif %}
<div class="mb-3"> <div class="mb-3">
{{ form.comments.label(class="form-label fw-semibold") }} {{ form.update_notes.label(class="form-label fw-semibold") }}
{{ form.comments(class="form-control", rows=3, placeholder="Optional update notes…") }} {{ form.update_notes(class="form-control", rows=3, placeholder="Optional update notes…") }}
</div> </div>
<div class="mb-3"> <div class="mb-3">
{{ form.result_notes.label(class="form-label fw-semibold") }} {{ form.result_notes.label(class="form-label fw-semibold") }}
+1 -1
View File
@@ -127,7 +127,7 @@ class IssueUpdateForm(FlaskForm):
('open','Open'), ('in_progress','In Progress'), ('resolved','Resolved'), ('open','Open'), ('in_progress','In Progress'), ('resolved','Resolved'),
], validators=[DataRequired()]) ], validators=[DataRequired()])
assigned_to = SelectField('Assign To', coerce=int, validators=[Optional()]) assigned_to = SelectField('Assign To', coerce=int, validators=[Optional()])
comments = TextAreaField('Update Notes', validators=[Optional(), Length(max=1000)]) update_notes = TextAreaField('Update Notes', validators=[Optional(), Length(max=1000)])
result_notes = TextAreaField('Result Notes', validators=[Optional(), Length(max=2000)]) result_notes = TextAreaField('Result Notes', validators=[Optional(), Length(max=2000)])
result_photos = FileField('Result Photos', validators=[ result_photos = FileField('Result Photos', validators=[
Optional(), Optional(),