コード例 #1
0
 /**
  * Renders the delete confirmation dialog
  */
 protected function renderModals()
 {
     parent::renderModals();
     /* Delete confirmation modal */
     $this->pLine('<!-- Delete confirmation -->');
     $this->pLine('<div id="confirmDeleteModal" class="modal fade" tabindex="-2" role="dialog" aria-hidden="true">');
     $this->pLine('<div class="modal-dialog">', 1);
     $this->pLine('<div class="modal-content">', 1);
     $this->pLine('<div class="modal-body text-justify">', 1);
     $this->pLine(_('Selected capture will be permanently deleted, are you sure you want to delete it?'), 1);
     $this->pLine('</div>', -1);
     $this->pLine('<div class="modal-footer">');
     $this->pLine('<button type="button" data-dismiss="modal" class="btn btn-danger" id="confirmDelete">' . _('Delete') . '</button>', 1);
     $this->pLine('<button type="button" data-dismiss="modal" class="btn btn-default">' . _('Cancel') . '</button>');
     $this->pLine('</div>', -1);
     $this->pLine('</div>', -1);
     $this->pLine('</div>', -1);
     $this->pLine('</div>', -1);
 }
コード例 #2
0
 /**
  * Renders the format RAID confirmation dialog
  */
 protected function renderModals()
 {
     parent::renderModals();
     /* Format RAID confirmation modal */
     $this->pLine('<!-- Format RAID confirmation -->');
     $this->pLine('<div id="confirmFormatRaid" class="modal fade" tabindex="-2" role="dialog" aria-hidden="true">');
     $this->pLine('<div class="modal-dialog">', 1);
     $this->pLine('<div class="modal-content">', 1);
     $this->pLine('<div class="modal-body text-justify">', 1);
     $this->pLine('<strong class="text-danger">' . _('All data will be lost, are you sure you want to format the RAID?') . '</strong>', 1);
     $this->pLine('</div>', -1);
     $this->pLine('<div class="modal-footer">');
     $this->pLine('<button type="button" data-dismiss="modal" data-toggle="modal" data-target="#formatRaidModal" class="btn btn-danger">' . _('Format') . '</button>', 1);
     $this->pLine('<button type="button" data-dismiss="modal" class="btn btn-default">' . _('Cancel') . '</button>');
     $this->pLine('</div>', -1);
     $this->pLine('</div>', -1);
     $this->pLine('</div>', -1);
     $this->pLine('</div>', -1);
 }