create.edge

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

@section('content')

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

  <div class="field">
    <label class="label">Theme</label>
    <div class="select">
      <select name="theme_id">
        <option>Select dropdown</option>
        @each(theme in themes)
          <option value="{{theme.id}}">{{theme.name}}</option>
        @endeach
      </select>
    </div>
  </div>

  <div class="field">
    <label class="label">Priority</label>
    <input class="input" type="text" name="priority" placeholder="1 (lowest) - 3 (highest)" value="{{ old('priority', '') }}" />
    {{ elIf('<span class="has-text-danger">$self</span>', getErrorFor('priority'), hasErrorFor('priority')) }}
  </div>

  <div class="field">
    <label class="label">Refresh Rate (days)</label>
    <input class="input" type="text" name="refresh_rate" placeholder="90" value="{{ old('refresh_rate', '') }}" />
    {{ elIf('<span class="has-text-danger">$self</span>', getErrorFor('refresh_rate'), hasErrorFor('refresh_rate')) }}
  </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="{{ 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