<commit_before><%inherit file="base.mako"/>
<%namespace file="/base.mako" name="base"/>

<%block name="title">
${base.title_string('New stamp location')}
</%block>

<%block name="stylesheets">
##<link rel="stylesheet" href="${base.css_url('new_stamp.css')}">
    <link rel="stylesheet" href="${base.css_lib_url('jquery-ui.css')}">
</%block>

<%block name="javascript_includes">
    <script type="text/javascript" src="${base.js_url('new_stamp_location.js')}"></script>
</%block>

<%block name="inline_javascript">
    var parameters = {
        parkInputElement: $('#park'),
        parks: '${parks_json_string | n}',
        csrfToken: '${csrf_token}'
    };
    parkStamper.newStampLocation.init(parameters);
</%block>

<%block name="content">
    <h1>New location</h1>
    <p>Found a place with stamps? Give me the skinny!</p>

    <form action="${url}" method="post">
        <label for="park">
            Park
        </label>
        <input type="text" name="park" id="park" required>
        <br>

        <label for="description">
            Description
        </label>
        <input type="text" name="description" id="description" required>
        <br>

        <label for="address">
            Address
        </label>
        <input type="text" name="address" id="address">
        <br>

        <label for="latitude">
            Latitude
        </label>
        <input type="number" name="latitude" id="latitude">
        <br>

        <label for="longitude">
            Longitude
        </label>
        <input type="number" name="longitude" id="longitude">
        <br>

        <input type="hidden" name="csrf_token" value="${csrf_token}">

        <input type="submit" name="form.submitted" value="Add Location" class="btn">
    </form><commit_msg>Show that some fields for new stamp locations are optional<commit_after><%inherit file="base.mako"/>
<%namespace file="/base.mako" name="base"/>

<%block name="title">
${base.title_string('New stamp location')}
</%block>

<%block name="stylesheets">
##<link rel="stylesheet" href="${base.css_url('new_stamp.css')}">
    <link rel="stylesheet" href="${base.css_lib_url('jquery-ui.css')}">
</%block>

<%block name="javascript_includes">
    <script type="text/javascript" src="${base.js_url('new_stamp_location.js')}"></script>
</%block>

<%block name="inline_javascript">
    var parameters = {
        parkInputElement: $('#park'),
        parks: '${parks_json_string | n}',
        csrfToken: '${csrf_token}'
    };
    parkStamper.newStampLocation.init(parameters);
</%block>

<%block name="content">
    <h1>New location</h1>
    <p>Found a place with stamps? Give me the skinny!</p>

    <form action="${url}" method="post">
        <label for="park">
            Park
        </label>
        <input type="text" name="park" id="park" required>
        <br>

        <label for="description">
            Description
        </label>
        <input type="text" name="description" id="description" required>
        <br>

        <label for="address">
            Address (optional)
        </label>
        <input type="text" name="address" id="address">
        <br>

        <label for="latitude">
            Latitude (optional)
        </label>
        <input type="number" name="latitude" id="latitude">
        <br>

        <label for="longitude">
            Longitude (optional)
        </label>
        <input type="number" name="longitude" id="longitude">
        <br>

        <input type="hidden" name="csrf_token" value="${csrf_token}">

        <input type="submit" name="form.submitted" value="Add Location" class="btn">
    </form>
{'fraction_non_alphanumeric': 0.18146718146718147, 'fraction_numerical': 0.0011031439602868175, 'mean_word_length': 2.9381107491856677, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1353931', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1111, 'n_words': 237}