Skip to content

Commit

Permalink
Merge commit 'ed55cb4cce2354808a9d00f643c92c5c9c972933' into pr72
Browse files Browse the repository at this point in the history
# Conflicts:
#	syntax.php
  • Loading branch information
dregad committed May 7, 2023
2 parents aee0299 + ed55cb4 commit 22d9c07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions style.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
div.addnewpage {
select, input {
margin-right: 3px;
}
}
21 changes: 11 additions & 10 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,18 @@ public function render($mode, Doku_Renderer $renderer, $data) {
$input = 'text';
if($this->options['autopage']) $input = 'hidden';

$form = '<div class="addnewpage">' . DOKU_LF
. DOKU_TAB . '<form name="addnewpage" method="get" action="' . DOKU_BASE . DOKU_SCRIPT . '" accept-charset="' . $lang['encoding'] . '">' . DOKU_LF
. DOKU_TAB . DOKU_TAB . $namespaceinput . DOKU_LF
. DOKU_TAB . DOKU_TAB . '<input class="edit" type="'.$input.'" name="title" size="20" maxlength="255" tabindex="2" />' . DOKU_LF
$form = '<div class="addnewpage"><p>'
. '<form name="addnewpage" method="get" action="' . DOKU_BASE . DOKU_SCRIPT . '" accept-charset="' . $lang['encoding'] . '">'
. $namespaceinput
. '<input class="edit" type="text" name="title" size="20" maxlength="255" tabindex="2" />'
. $newpagetemplateinput
. DOKU_TAB . DOKU_TAB . '<input type="hidden" name="newpagevars" value="' . $data['newpagevars'] . '"/>' . DOKU_LF
. DOKU_TAB . DOKU_TAB . '<input type="hidden" name="do" value="edit" />' . DOKU_LF
. DOKU_TAB . DOKU_TAB . '<input type="hidden" name="id" />' . DOKU_LF
. DOKU_TAB . DOKU_TAB . '<input class="button" type="submit" value="' . $this->getLang('okbutton') . '" tabindex="4" />' . DOKU_LF
. DOKU_TAB . '</form>' . DOKU_LF
. '</div>';
. '<input type="hidden" name="newpagevars" value="' . $data['newpagevars'] . '"/>'
. '<input type="hidden" name="do" value="edit" />'
. '<input type="hidden" name="id" />'
. '<input class="button" type="submit" value="' . $this->getLang('okbutton') . '" tabindex="4" />'
. '</form>'
. '</p></div>';

$renderer->doc .= $form;

return true;
Expand Down

0 comments on commit 22d9c07

Please sign in to comment.