33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
|
||
|
||
<style type="text/css">
|
||
.noteList {
|
||
padding-left:10px !important;
|
||
}
|
||
|
||
</style>
|
||
<div id="editNote{{ParentId}}" class="modal fade editnote" tabindex="-1" role="dialog" style="display: none;" data-backdrop="static">
|
||
<form name="notesForm">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
<h4 class="modal-title">Add a Note</h4>
|
||
</div>
|
||
<div class="form-group noteList" id="noteList" ng-show="Notes.length > 0">
|
||
|
||
@Html.Partial("~/Views/Note/_list.cshtml")
|
||
</div>
|
||
<div class="form-group noteList" id="noteview" ng-show="Notes.length == 0">
|
||
|
||
@Html.Partial("~/Views/Note/_edit.cshtml")
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="submit" ng-click="AddNote('editNote')" ng-show="Notes.length == 0" ng-disabled="(Note.Details.length == 0 || Note.Title.length == 0)" class="btn btn-primary" id="btnSaveNote">Save</button>
|
||
<button type="button" ng-click="Reset()" class="btn btn-default" data-dismiss="modal">{{ (Notes.length > 0) ? 'Close' : 'Cancel' }}</button>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</form>
|
||
</div> |