Download tasks/change/environment/reference/clone/frontend/templates/scratch.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 2.85 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/change/environment/reference/clone/frontend/templates/scratch.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/change/environment/reference/clone/frontend/templates/scratch.html
-
curl -L -o scratch.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/change/environment/reference/clone/frontend/templates/scratch.html
2.85 kB
| {% extends "base.html" %} | |
| {% block content %} | |
| <section class="scratch-form" data-path="scratch"> | |
| <h1>Write your own petition</h1> | |
| <p>This is the from-scratch path. No template helper text is inserted here — the title, decision-maker target, and body below are entirely yours.</p> | |
| {% if errors %} | |
| <div class="form-errors" role="alert"> | |
| <ul> | |
| {% for error in errors %}<li>{{ error }}</li>{% endfor %} | |
| </ul> | |
| </div> | |
| {% endif %} | |
| <form class="petition-form" action="/petitions/publish" method="post"> | |
| <input type="hidden" name="csrf" value="{{ csrf }}"> | |
| <input type="hidden" name="path" value="scratch"> | |
| <input type="hidden" name="draft_version" value="{{ draft_version }}"> | |
| <input type="hidden" name="idempotency_key" value="{{ form_idempotency_key | default(publish_idempotency_key) }}"> | |
| <label for="scratch-topic">Petition topic</label> | |
| <input id="scratch-topic" name="topic" value="{{ form_topic }}" maxlength="120" required placeholder="Describe the change you want"> | |
| <label for="scratch-title">Petition title</label> | |
| <input id="scratch-title" name="title" value="{{ form_title }}" maxlength="{{ title_max }}" placeholder="Write a clear petition title"> | |
| <label for="scratch-target">Decision-maker target</label> | |
| <input id="scratch-target" name="target" value="{{ form_target }}" maxlength="{{ target_max }}" placeholder="Name the relevant decision maker"> | |
| <div class="target-fields"> | |
| <label for="scratch-target-type">Target type</label> | |
| <select id="scratch-target-type" name="target_type"> | |
| {% for value, label in [('organization','Organization'),('government','Government'),('person','Person'),('other','Other')] %} | |
| <option value="{{ value }}" {% if form_target_type == value %}selected{% endif %}>{{ label }}</option> | |
| {% endfor %} | |
| </select> | |
| <label for="scratch-target-location">Target location</label> | |
| <input id="scratch-target-location" name="target_location" value="{{ form_target_location }}" maxlength="120" placeholder="City, region, or country"> | |
| <label for="scratch-contact-label">Public contact label</label> | |
| <input id="scratch-contact-label" name="contact_label" value="{{ form_contact_label }}" maxlength="120" placeholder="Decision maker"> | |
| </div> | |
| <label for="scratch-body">Petition body</label> | |
| <textarea id="scratch-body" name="body" rows="12" placeholder="Explain the requested change and why it matters…">{{ form_body }}</textarea> | |
| <button class="primary" type="submit">Publish this petition</button> | |
| </form> | |
| <p class="fixture-note">Topic 1–120 characters · title {{ title_min }}–{{ title_max }} characters · decision maker {{ target_min }}–{{ target_max }} characters · petition text {{ body_min }}–{{ body_max }} characters.</p> | |
| </section> | |
| {% endblock %} | |