-
-
Save uno-de-piera/d3e5ad4ebbf256445d285a52b656d4ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.app') | |
@section('title', 'Nuevo Framework') | |
@section('content') | |
<div class="container"> | |
@if(session('message')) | |
<div class="alert alert-success"> | |
{{ session('message') }} | |
</div> | |
@endif | |
<form action="{{ route('frameworks.store') }}" method="POST" novalidate> | |
@csrf | |
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}"> | |
<label for="name" class="col-md-4 control-label">Framework</label> | |
<div class="col-md-6"> | |
<input id="name" type="text" class="form-control" name="name" required> | |
@if ($errors->has('name')) | |
<span class="help-block"> | |
<strong>{{ $errors->first('name') }}</strong> | |
</span> | |
@endif | |
</div> | |
</div> | |
<div class="form-group{{ $errors->has('language_framework_id') ? ' has-error' : '' }}"> | |
<label for="language_framework_id" class="col-md-4 control-label">Language Framework</label> | |
<div class="col-md-6"> | |
<select name="language_framework_id"> | |
@foreach(\App\Framework::all() as $framework) | |
<option value="{{ $framework->id }}">{{ $framework->name }}</option> | |
@endforeach | |
</select> | |
@if ($errors->has('language_framework_id')) | |
<span class="help-block"> | |
<strong>{{ $errors->first('language_framework_id') }}</strong> | |
</span> | |
@endif | |
</div> | |
</div> | |
<div class="form-group"> | |
<div class="col-md-8 col-md-offset-4"> | |
<button type="submit" class="btn btn-primary"> | |
Save Framework | |
</button> | |
</div> | |
</div> | |
</form> | |
</div> | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment