edit.edge
Home
/
resources /
views /
contacts /
edit.edge
@layout('layouts.main')
@section('content')
<form method="POST" action="{{ APP_URL() + route('/contacts.update', {id: contact.id}) + '?_method=PUT' }}">
{{ csrfField() }}
<div class="field">
<label class="label">First Name</label>
<input class="input" type="text" name="first_name" placeholder="Darth" value="{{ contact.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="Vader" value="{{ contact.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.id == contact.organization_id ? 'selected' : ''}}>{{organization.name}}</option>
@endeach
</select>
</div>
</div>
<div class="field">
<label class="label">Contact Email</label>
<input class="input" type="text" name="email" placeholder="darth.vader@oregon.gov" value="{{ contact.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="555-555-5555" value="{{ contact.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">Modify</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