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

Add a POST form to the landing page #144

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Add a POST form to the landing page #144

merged 1 commit into from
Mar 30, 2023

Conversation

SuperQ
Copy link
Member

@SuperQ SuperQ commented Mar 25, 2023

Add configuration to the landing page generator to allow a POST form.

  • Reduce header font size.

Add configuration to the landing page generator to allow a POST form.
* Reduce header font size.

Signed-off-by: SuperQ <[email protected]>
@SuperQ
Copy link
Member Author

SuperQ commented Mar 25, 2023

Screenshot example for the snmp_exporter:

image

@juliusv
Copy link
Member

juliusv commented Mar 29, 2023

👍 Good enough for this purpose :) If you wanted to avoid the input length business, you could also just put the label and input on separate lines (like it's done in most forms nowadays), but this way is also fine.

@SuperQ
Copy link
Member Author

SuperQ commented Mar 30, 2023

Yea, I was just trying to keep the inline format.

@SuperQ SuperQ merged commit f42e5c7 into master Mar 30, 2023
@SuperQ SuperQ deleted the superq/landing_form branch March 30, 2023 05:51
<div>
<form action="{{ .Form.Action}}">
{{ range .Form.Inputs }}
<label>{{ .Label }}:</label>&nbsp;<input type="{{ .Type }}" name="{{ .Name }}" placeholder=" .Placeholder }}" value="{{ .Value }}"><br>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{ is missing for placeholder

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, oops, will followup.

@roidelapluie
Copy link
Member

My comment was still pending..

SuperQ added a commit that referenced this pull request May 1, 2023
* [FEATURE] Client TLS: Add option to require a specific Subject Alternate Names #126
* [FEATURE] Add a POST form to the landing page #144
* [FEATURE] Add generic customization to landing page #146
* [ENHANCEMENT] Add a Content-Type header to the landing page #142
* [BUGFIX] Fix Nil pointer references for WebSystemdSocket #127

Signed-off-by: SuperQ <[email protected]>
@SuperQ SuperQ mentioned this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants