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:
parent
6ac035f196
commit
d9a2b16c2a
3 changed files with 692 additions and 684 deletions
|
@ -493,11 +493,15 @@ 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)
|
||||
if err != nil && err != sql.ErrNoRows {
|
||||
response.WriteServerError(w, method, err)
|
||||
h.Runtime.Log.Error(method, err)
|
||||
return
|
||||
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.
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -122,20 +122,24 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if permissions.documentDelete}}
|
||||
<div id={{concat 'delete-page-modal-' page.id}} class="modal" tabindex="-1" role="dialog">
|
||||
<div id= {{concat 'delete-page-modal-' page.id}} class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<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}}
|
||||
Also delete child sections
|
||||
</label>
|
||||
<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>
|
||||
<button type="button" class="btn btn-danger" onclick= {{action 'onDeletePage'}}>Delete</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue