edit.edge
Home
/
resources /
views /
elements /
edit.edge
@layout('layouts.main')
@section('content')
<form method="POST" action="{{ route('/elements.update', {id: element.id}) + '?_method=PUT'}}">
{{ csrfField() }}
<div class="field">
<label class="label">Element Name</label>
<input class="input" type="text" name="name" placeholder="Zoning" value="{{ element.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.id === element.theme_id ? 'selected' : ''}}>{{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="{{ element.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="{{ element.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('/elements.index') }}">Cancel</a></button>
</div>
</div>
</form>
@endsection