04/25 modified are type, add Floor
This commit is contained in:
@@ -219,7 +219,7 @@
|
|||||||
id="flagIssueBtn"
|
id="flagIssueBtn"
|
||||||
data-flag-url="{{ url_for('inspections.save_draft_ajax', inspection_id=inspection.id) }}"
|
data-flag-url="{{ url_for('inspections.save_draft_ajax', inspection_id=inspection.id) }}"
|
||||||
data-flag-redirect="{{ url_for('inspections.flag_issue', inspection_id=inspection.id) }}">
|
data-flag-redirect="{{ url_for('inspections.flag_issue', inspection_id=inspection.id) }}">
|
||||||
<i class="bi bi-exclamation-triangle"></i> Flag Issue
|
<i class="bi bi-exclamation-triangle"></i> Flag for Attention
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -750,7 +750,7 @@ document.getElementById('inspectionForm').addEventListener('submit', async funct
|
|||||||
} else {
|
} else {
|
||||||
alert('Could not save draft: ' + (json.error || 'Unknown error'));
|
alert('Could not save draft: ' + (json.error || 'Unknown error'));
|
||||||
btn.disabled = false;
|
btn.disabled = false;
|
||||||
btn.innerHTML = '<i class="bi bi-exclamation-triangle"></i> Flag Issue';
|
btn.innerHTML = '<i class="bi bi-exclamation-triangle"></i> Flag for Attention';
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Flag Issue draft save error:', err);
|
console.error('Flag Issue draft save error:', err);
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ class AreaForm(FlaskForm):
|
|||||||
area_type = SelectField('Area Type', choices=[
|
area_type = SelectField('Area Type', choices=[
|
||||||
('restroom','Restroom'), ('lobby','Lobby'), ('hallway','Hallway'),
|
('restroom','Restroom'), ('lobby','Lobby'), ('hallway','Hallway'),
|
||||||
('office','Office'), ('kitchen','Kitchen'), ('storage','Storage'),
|
('office','Office'), ('kitchen','Kitchen'), ('storage','Storage'),
|
||||||
|
('floor','Floor'),
|
||||||
('outdoor','Outdoor'), ('other','Other'),
|
('outdoor','Outdoor'), ('other','Other'),
|
||||||
], validators=[Optional()])
|
], validators=[Optional()])
|
||||||
facility_id = SelectField('Facility', coerce=int, validators=[DataRequired()])
|
facility_id = SelectField('Facility', coerce=int, validators=[DataRequired()])
|
||||||
|
|||||||
Reference in New Issue
Block a user