Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLDR-602 some fixes of web form #402

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dedoc/api/api_args.py
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ class QueryParameters:
attachments_dir: Optional[str] = Form(None, description="Path to the directory where to save files' attachments")

# tables handling
need_pdf_table_analysis: str = Form("true", enum=["true", "false"], description="Enable table recognition for pdf")
need_pdf_table_analysis: str = Form("false", enum=["true", "false"], description="Enable table recognition for pdf")
table_type: str = Form("", description="Pipeline mode for table recognition")
orient_analysis_cells: str = Form("false", enum=["true", "false"], description="Enable analysis of rotated cells in table headers")
orient_cell_angle: str = Form("90", enum=["90", "270"],
12 changes: 7 additions & 5 deletions dedoc/api/web/index.html
Original file line number Diff line number Diff line change
@@ -10,7 +10,9 @@
<style>
.parameters {padding: 5px; box-shadow: 1px 1px 2px #bbbbbb; width: 70%}
.body {margin-left: 20%}
details > summary {font-style: italic; cursor: pointer}
details > summary {font-style: italic; cursor: pointer; display: list-item;}
.child.max {padding-left: 5px; flex: 1}
.parent {display: flex}
</style>
</head>

@@ -92,7 +94,7 @@ <h4>Attachments handling</h4>


<div class="parameters">
<h4>Tables handling</h4>
<h4>Tables handling </h4>
<details><summary>need_pdf_table_analysis, orient_analysis_cells, orient_cell_angle</summary>
<br>
<p>
@@ -188,9 +190,9 @@ <h4>Other formats handling</h4>
</div>

<br>
<div class="row">
<div class="col-md-3"><input type=file name=file class="btn btn-default" data-buttonText="Choose file"></div>
<div class="col-md-2"><input type=submit value=Upload class="btn btn-default"></div>
<div class="parent">
<div class="child"><input type=file name=file class="btn btn-default" data-buttonText="Choose file"></div>
<div class="child max"><input type=submit value=Upload class="btn btn-default"></div>
</div>

</form>