fix form
This commit is contained in:
parent
8b7e1c30ab
commit
d12078abe2
|
@ -896,31 +896,32 @@ class DirectoryAsHTML(Element):
|
||||||
id='mkdir-mdmf',
|
id='mkdir-mdmf',
|
||||||
)
|
)
|
||||||
|
|
||||||
mkdir_form = tags.form([
|
mkdir_form = tags.form(
|
||||||
tags.fieldset([
|
[
|
||||||
tags.input(type="hidden", name="t", value="mkdir"),
|
tags.fieldset([
|
||||||
tags.input(type="hidden", name="when_done", value="."),
|
tags.input(type="hidden", name="t", value="mkdir"),
|
||||||
tags.legend("Create a new directory in this directory", class_="freeform-form-label"),
|
tags.input(type="hidden", name="when_done", value="."),
|
||||||
"New directory name:"+SPACE, tags.br,
|
tags.legend("Create a new directory in this directory", class_="freeform-form-label"),
|
||||||
tags.input(type="text", name="name"), SPACE,
|
"New directory name:"+SPACE, tags.br,
|
||||||
tags.div(
|
tags.input(type="text", name="name"), SPACE,
|
||||||
[
|
tags.div(
|
||||||
mkdir_sdmf, tags.label(SPACE, "SDMF", for_='mutable-directory-sdmf'), SPACE*2,
|
[
|
||||||
mkdir_mdmf, tags.label(SPACE, "MDMF (experimental)", for_='mutable-directory-mdmf'),
|
mkdir_sdmf, tags.label(SPACE, "SDMF", for_='mutable-directory-sdmf'), SPACE*2,
|
||||||
],
|
mkdir_mdmf, tags.label(SPACE, "MDMF (experimental)", for_='mutable-directory-mdmf'),
|
||||||
class_="form-inline",
|
],
|
||||||
),
|
class_="form-inline",
|
||||||
tags.input(
|
),
|
||||||
type="submit",
|
tags.input(
|
||||||
class_="btn",
|
type="submit",
|
||||||
value="Create",
|
class_="btn",
|
||||||
)
|
value="Create",
|
||||||
|
),
|
||||||
|
])
|
||||||
],
|
],
|
||||||
action=".",
|
action=".",
|
||||||
method="post",
|
method="post",
|
||||||
enctype="multipart/form-data",
|
enctype="multipart/form-data",
|
||||||
)
|
)
|
||||||
])
|
|
||||||
forms.append(tags.div(mkdir_form, class_="freeform-form"))
|
forms.append(tags.div(mkdir_form, class_="freeform-form"))
|
||||||
|
|
||||||
upload_chk = tags.input(
|
upload_chk = tags.input(
|
||||||
|
|
Loading…
Reference in New Issue