1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

Use new Bootstrap format for checkboxes

This commit is contained in:
Harvey Kandola 2018-03-20 10:41:11 +00:00
parent 6ac035f196
commit d9a2b16c2a
3 changed files with 692 additions and 684 deletions

View file

@ -493,12 +493,16 @@ func (h *Handler) FetchDocumentData(w http.ResponseWriter, r *http.Request) {
}
// Get version information for this document.
v, err := h.Store.Document.GetVersions(ctx, document.GroupID)
v := []doc.Version{}
if len(document.GroupID) > 0 {
v, err = h.Store.Document.GetVersions(ctx, document.GroupID)
if err != nil && err != sql.ErrNoRows {
response.WriteServerError(w, method, err)
h.Runtime.Log.Error(method, err)
return
}
}
// Prepare response.
data := BulkDocumentData{}

File diff suppressed because one or more lines are too long

View file

@ -128,11 +128,15 @@
<div class="modal-header">Delete Section</div>
<div class="modal-body">
<p>Are you sure you want to delete this section?</p>
<label class="form-check-label">
{{input type="checkbox" class="form-check-input" checked=deleteChildren}}
<div class="form-group">
<div class="form-check">
{{input type="checkbox" class="form-check-input" checked=deleteChildren id=(concat 'delete-page-check-' page.id)}}
<label class="form-check-label" for= {{concat 'delete-page-check-' page.id}}>
Also delete child sections
</label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" onclick= {{action 'onDeletePage'}}>Delete</button>