php /views/project/create.blade.php

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php /views/project/create.blade.php相关的知识,希望对你有一定的参考价值。


@extends('layout')

@section('content')

@include('includes.errors') 

<form id="project_form" action="{{ route('project.store') }}" method="POST">
    {{ csrf_field() }}

<label>Create a new Project <span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span></label>

<div class="row">
    <div class="col-md-8">
		<div class="form-group">
			<input type="text" class="form-control" id="project" name="project">
		</div>
	</div>


	<div class="col-md-4">
		<div class="btn-group">
			<input class="btn btn-primary" type="submit" value="Submit" onclick="return validateForm()">
			<a class="btn btn-default" href="{{ redirect()->getUrlGenerator()->previous() }}">Cancel</a>
		</div>
	</div>
</div>

</form>

@stop

<script>
function validateForm() {
	console.log("VALIDATE FORM CLICKED") ;
	var project = document.forms["project_form"]["project"].value;

	if ( !project.length ) {
		swal("Enter Project Name", "" , "warning") ;
		document.getElementById("project").focus();
		return false;
	}
}

</script>


以上是关于php /views/project/create.blade.php的主要内容,如果未能解决你的问题,请参考以下文章

php [guzzle php] guzzle php #php

php send.php php邮件模板#php

IntelliJ IDEA 11编辑php是,支持php文件名为.php5和.php4,如何设置能让其也支持.php呢?

如何从php5升级到php7

请问php中如何调用php文件中的内容?

php [php:PHPMailer示例] php库“PHPMailer”示例。 #PHP