create.edge

59 lines | 2.179 kB Blame History Raw Download
@layout('layouts.main')

@section('content')

<form method="POST" action="{{ APP_URL() + route('/contacts.store') }}">
  {{ csrfField() }}
  <div class="field">
    <label class="label">First Name</label>
    <input class="input" type="text" name="first_name" placeholder="Arthur" value="{{ old('first_name', '') }}" />
    {{ elIf('<span class="has-text-danger">$self</span>', getErrorFor('first_name'), hasErrorFor('first_name')) }}
  </div>

  <div class="field">
    <label class="label">Contact Last Name</label>
    <input class="input" type="text" name="last_name" placeholder="Fish" value="{{ old('last_name', '') }}" />
    {{ elIf('<span class="has-text-danger">$self</span>', getErrorFor('last_name'), hasErrorFor('last_name')) }}
  </div>

  <div class="field">
    <label class="label">Organization</label>
    <div class="select">
      <select name="organization_id">
        <option>Select dropdown</option>
        @each(organization in organizations)
          <option value="{{organization.id}}">{{organization.name}}</option>
        @endeach
      </select>
    </div>
  </div>

  <div class="field">
    <label class="label">Contact Email</label>
    <input class="input" type="text" name="email" placeholder="arthur.fish@oregon.gov" value="{{ old('email', '') }}" />
    {{ elIf('<span class="has-text-danger">$self</span>', getErrorFor('email'), hasErrorFor('email')) }}
  </div>

  <div class="field">
    <label class="label">Contact Phone Number</label>
    <input class="input" type="text" name="phone" placeholder="Fish" value="{{ old('phone', '') }}" />
    {{ elIf('<span class="has-text-danger">$self</span>', getErrorFor('phone'), hasErrorFor('phone')) }}
  </div>

  <div class="field is-grouped">
      <div class="control">
        <button class="button is-link ss-submit" type="submit">Submit</button>
      </div>
      <div class="control">
      <button class="button is-text"><a href="{{ APP_URL() + route('/contacts.index') }}">Cancel</a></button>
      </div>
    </div>
    <!--
    <div class="notification is-warning">
      <button class="delete"></button>
      Building Snapshots for some items may take a couple minutes.  Please be patient!
    </div>
    -->
</form>

@endsection