Minor - format code

pull/3399/head
Julio Montoya 5 years ago
parent 6788494355
commit 07b8e96448
  1. 2
      plugin/mindmap/ajax/mindmap.ajax.php
  2. 10
      plugin/mindmap/inc/edit.form.php
  3. 2
      plugin/mindmap/index.php

@ -45,7 +45,7 @@ if (isset($_GET['id'])) {
]; ];
} }
$resultUp = Database::update($table, $params, $whereConditions); Database::update($table, $params, $whereConditions);
echo 'OK'; echo 'OK';
} else { } else {

@ -1,5 +1,7 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* Generate the form to add/edit a mindmap record. * Generate the form to add/edit a mindmap record.
*/ */
@ -9,17 +11,15 @@ $form = new FormValidator(
api_get_self().'?action='.$action.'&id='.$id.'&cid='.$cid.'&sid='.$sessionId api_get_self().'?action='.$action.'&id='.$id.'&cid='.$cid.'&sid='.$sessionId
); );
if ($action == 'add' || $action == 'edit') { if ($action === 'add' || $action === 'edit') {
$form->addText('title', get_lang('Title'), true); $form->addText('title', get_lang('Title'), true);
$form->addText('description', get_lang('Description'), false); $form->addText('description', get_lang('Description'), false);
$isPublic = $form->addElement('checkbox', 'is_public', null, $plugin->get_lang('VisibleByAll')); $isPublic = $form->addElement('checkbox', 'is_public', null, $plugin->get_lang('VisibleByAll'));
$isShared = $form->addElement('checkbox', 'is_shared', null, $plugin->get_lang('EditableByAll')); $isShared = $form->addElement('checkbox', 'is_shared', null, $plugin->get_lang('EditableByAll'));
$form->addElement('hidden', 'mindmap_type', 'mind'); $form->addElement('hidden', 'mindmap_type', 'mind');
$form->addButtonSave(get_lang('Save')); $form->addButtonSave(get_lang('Save'));
} else { } else {
$ht = '<p style="text-align:center;" ><img alt="'.htmlentities(get_lang('Save')).'" src="img/mindmap128.png" /></p>'; $ht = '<p style="text-align:center;" >
<img alt="'.htmlentities(get_lang('Save')).'" src="img/mindmap128.png" /></p>';
$form->addElement('static', '', '', $ht); $form->addElement('static', '', '', $ht);
} }

@ -1,3 +1,5 @@
<?php <?php
/* For license terms, see /license.txt */ /* For license terms, see /license.txt */
require __DIR__.'/list.php'; require __DIR__.'/list.php';

Loading…
Cancel
Save