Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
-<form role="form" class="form-validated eg-edit-fm-record">
+<form role="form" class="form-validated eg-edit-fm-record" name="fm_record_form">
<div class="modal-header">
<button type="button" class="close"
</div>
</div>
<div class="modal-footer">
- <button class="btn btn-primary" ng-click="ok()">[% l('Save') %]</button>
+ <button class="btn btn-primary" type="submit" ng-disabled="fm_record_form.$invalid" ng-click="ok()">[% l('Save') %]</button>
<button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
</div>
</form>