<commit_before>@extends('main')

@section('title', 'Vondst toevoegen')

@section('content')
{!! Form::open(array(
'files' => true,
'novalidate' => '',
'class' => 'ui container container-723 form',
'@submit.prevent' => 'submit',
)) !!}

<step number="1" :current="step">
  <h3>Algemene vondstgegevens</h3>
  <div class="fields">
    <div class="required field">
      <label>Datum</label>
      <input type="date" v-model="find.findDate" placeholder="YYYY-MM-DD">
    </div>
    <div class="required field" v-if="user.isdRegistrar">
      <label>Vinder</label>
      <input type="text" v-model="find.finderName" value="<NAME>" placeholder="Naam van de vinder" :disabled="!user.registrator">
    </div>
  </div>
  <div class="field" v-if="!show.spotdescription||!show.place||!show.address">
    <label>Vondstlocatie verfijnen</label>
    <button v-if="!show.spotdescription" @click.prevent="show.spotdescription=1" class="ui button">Beschrijving</button>
    <button v-if="!show.place" @click.prevent="show.place=1" class="ui button">Plaatsnaam</button>
    <button v-if="!show.address" @click.prevent="show.address=1" class="ui button">Adres</button>
  </div>
  <div class="field" v-if="show.spotdescription">
    <label>Beschrijving van de vindplaats</label>
    <input type="text" v-model="find.findSpot.description" placeholder="Beschrijving van de vindplaats">
  </div>
  <div class="field" v-if="show.place">
    <label>Plaatsnaam</label>
    <input type="text" v-model="find.findSpot.location.locationPlaceName.appellation" placeholder="">
  </div>
  <div class="fields" v-if="show.address">
    <div class="six wide field">
      <label>Straat</label>
      <input type="text" v-model="find.findSpot.location.address.street" :placeholder="find.findSpot.location.lat?'Automatisch o.b.v.coördinaten':''" id="street">
    </div>
    <div class="two wide field">
      <label>Nummer</label>
      <input type="number" v-model="find.findSpot.location.address.number" placeholder="">
    </div>
  </div>
  <div class="fields" id="location-picker">
    <div class="two wide field" v-if="show.address">
      <label>Postcode</label>
      <input type="text" v-model="find.findSpot.location.address.postalCode">
    </div>
    <div class="six wide required field" v-bind:class="{six:show.address,eight:!show.address}">
      <label v-text="show.address||show.map?'Stad/gemeente':'Straat en/of gemeente/stad'">Stad/gemeente</label>
      <input type="text" v-model="find.findSpot.location.address.locality" :placeholder="find.findSpot.location.lat?'Automatisch o.b.v.coördinaten':''" @keydown.enter.prevent.stop="showOnMap">
    </div>
    <div class="eight wide field" v-if="show.map">
      <label>Nauwkeurigheid (meter)</label>
      <input type="number" v-model="find.findSpot.location.accuracy" min="0" :step="accuracyStep">
    </div>
  </div>
  <div class="field">
    <button v-if="!show.map" @click.prevent="showOnMap" class="ui button" :class="{blue:find.findSpot.location.address.locality}">
      Aanduiden op kaart
    </button>
  </div>
  <div class="field" v-if="show.map&&step==1">  
    <map :center.sync="map.center" :zoom.sync="map.zoom" @g-click="setMarker" class="vue-map-size">
      <marker v-if="marker.visible&&markerNeeded"  :position.sync="latlng" :clickable.sync="true" :draggable.sync="true"></marker>
      <circle v-if="marker.visible&&!markerNeeded" :center.sync="latlng" :radius.sync="accuracy" :draggable.sync="true" :options="marker.options"></circle>
    </map>
  </div>
  <div class="two fields" v-if="show.co||show.map">
    <div class="field">
      <label>Breedtegraad</label>
      <input type="number" v-model="find.findSpot.location.lat" placeholder="lat">
    </div>
    <div class="field">
      <label>Lengtegraad</label>
      <input type="number" v-model="find.findSpot.location.lng" placeholder="lng">
    </div>
  </div>
  <p>
    <button class="ui button" v-if="show.map" :class="{green:step1valid}" :disabled="!step1valid" @click.prevent="toStep(2)">Bevestig locatie</button>
  </p>
</step>

<step number="2" :current="step" :class="{active:step==2, completed:step2valid}"><commit_msg>Web Mercator vs Lambert<commit_after>@extends('main')

@section('title', 'Vondst toevoegen')

@section('content')
{!! Form::open(array(
'files' => true,
'novalidate' => '',
'class' => 'ui container container-723 form',
'@submit.prevent' => 'submit',
)) !!}

<step number="1" :current="step">
  <h3>Algemene vondstgegevens</h3>
  <div class="fields">
    <div class="required field">
      <label>Datum</label>
      <input type="date" v-model="find.findDate" placeholder="YYYY-MM-DD">
    </div>
    <div class="required field" v-if="user.isdRegistrar">
      <label>Vinder</label>
      <input type="text" v-model="find.finderName" value="<NAME>" placeholder="<NAME>" :disabled="!user.registrator">
    </div>
  </div>
  <div class="field" v-if="!show.spotdescription||!show.place||!show.address">
    <label>Vondstlocatie verfijnen</label>
    <button v-if="!show.spotdescription" @click.prevent="show.spotdescription=1" class="ui button">Beschrijving</button>
    <button v-if="!show.place" @click.prevent="show.place=1" class="ui button">Plaatsnaam</button>
    <button v-if="!show.address" @click.prevent="show.address=1" class="ui button">Adres</button>
  </div>
  <div class="field" v-if="show.spotdescription">
    <label>Beschrijving van de vindplaats</label>
    <input type="text" v-model="find.findSpot.description" placeholder="Beschrijving van de vindplaats">
  </div>
  <div class="field" v-if="show.place">
    <label>Plaatsnaam</label>
    <input type="text" v-model="find.findSpot.location.locationPlaceName.appellation" placeholder="">
  </div>
  <div class="fields" v-if="show.address">
    <div class="six wide field">
      <label>Straat</label>
      <input type="text" v-model="find.findSpot.location.address.street" :placeholder="find.findSpot.location.lat?'Automatisch o.b.v.coördinaten':''" id="street">
    </div>
    <div class="two wide field">
      <label>Nummer</label>
      <input type="number" v-model="find.findSpot.location.address.number" placeholder="">
    </div>
  </div>
  <div class="fields" id="location-picker">
    <div class="two wide field" v-if="show.address">
      <label>Postcode</label>
      <input type="text" v-model="find.findSpot.location.address.postalCode">
    </div>
    <div class="six wide required field" v-bind:class="{six:show.address,eight:!show.address}">
      <label v-text="show.address||show.map?'Stad/gemeente':'Straat en/of gemeente/stad'">Stad/gemeente</label>
      <input type="text" v-model="find.findSpot.location.address.locality" :placeholder="find.findSpot.location.lat?'Automatisch o.b.v.coördinaten':''" @keydown.enter.prevent.stop="showOnMap">
    </div>
    <div class="eight wide field" v-if="show.map">
      <label>Nauwkeurigheid (meter)</label>
      <input type="number" v-model="find.findSpot.location.accuracy" min="0" :step="accuracyStep">
    </div>
  </div>
  <div class="field">
    <button v-if="!show.map" @click.prevent="showOnMap" class="ui button" :class="{blue:find.findSpot.location.address.locality}">
      Aanduiden op kaart
    </button>
  </div>
  <div class="field" v-if="show.map&&step==1">  
    <map :center.sync="map.center" :zoom.sync="map.zoom" @g-click="setMarker" class="vue-map-size">
      <marker v-if="marker.visible&&markerNeeded"  :position.sync="latlng" :clickable.sync="true" :draggable.sync="true"></marker>
      <circle v-if="marker.visible&&!markerNeeded" :center.sync="latlng" :radius.sync="accuracy" :draggable.sync="true" :options="marker.options"></circle>
    </map>
  </div>
  <div class="two fields" v-if="show.co||show.map">
    <div class="field">
      <label>Breedtegraad</label>
      <input type="number" v-model="find.findSpot.location.lat" placeholder="lat">
    </div>
    <div class="field">
      <label>
        Lengtegraad
        <span style="float:right;font-weight: normal;">
          <u>Web Mercator</u> &nbsp;
          <a style="color:#999;" href="{{ url('help/lambert') }}">Lambert</a>
        </span>
      </label>
      <input type="number" v-model="find.findSpot.location.lng" placeholder="lng">
    </div>
  </div>
  <p>
    <button class="ui button" v-if="show.map" :class="{green:step1valid}" :disabled="!step1valid" @click.prevent="toStep(2)">Bevestig locatie</button>
  </p>
</step>

<step number="2" :current="step" :class="{active:step==2, completed:step2valid}">
{'fraction_non_alphanumeric': 0.20207865832053856, 'fraction_numerical': 0.004369906696586748, 'mean_word_length': 4.63031914893617, 'pattern_counts': {'":': 0, '<': 200, '<?xml version=': 0, '>': 208, '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': '2880318', 'n_tokens_mistral': 3049, 'n_tokens_neox': 2996, 'n_words': 481}