create.edge

53 lines | 1.876 kB Blame History Raw Download
@layout('layouts.main')

@section('content')

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

  <div class="field">
    <label class="label">Organization Type</label>
    <div class="select">
      <select name="organization_type_id">
        <option>Select dropdown</option>
        @each(type in types)
          <option value="{{type.id}}">{{type.type}}</option>
        @endeach
      </select>
    </div>
  </div>

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

  <div class="field">
    <label class="label">Organization Phone</label>
    <input class="input" type="text" name="phone" placeholder="555-555-5555" 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('/themes.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