Feb 27 2026: update Issue view details 2
This commit is contained in:
@@ -85,7 +85,7 @@ def view(issue_id):
|
||||
issue.result_photos = existing + new_photos
|
||||
|
||||
# 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:
|
||||
comment = IssueComment(
|
||||
issue_id = issue.id,
|
||||
|
||||
@@ -118,8 +118,8 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="mb-3">
|
||||
{{ form.comments.label(class="form-label fw-semibold") }}
|
||||
{{ form.comments(class="form-control", rows=3, placeholder="Optional update notes…") }}
|
||||
{{ form.update_notes.label(class="form-label fw-semibold") }}
|
||||
{{ form.update_notes(class="form-control", rows=3, placeholder="Optional update notes…") }}
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
{{ form.result_notes.label(class="form-label fw-semibold") }}
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ class IssueUpdateForm(FlaskForm):
|
||||
('open','Open'), ('in_progress','In Progress'), ('resolved','Resolved'),
|
||||
], validators=[DataRequired()])
|
||||
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_photos = FileField('Result Photos', validators=[
|
||||
Optional(),
|
||||
|
||||
Reference in New Issue
Block a user