Skip to content

Instantly share code, notes, and snippets.

@Ryomasao
Created October 11, 2017 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ryomasao/3d5b63ba8e0da144b71e325e9c8013a6 to your computer and use it in GitHub Desktop.
Save Ryomasao/3d5b63ba8e0da144b71e325e9c8013a6 to your computer and use it in GitHub Desktop.
step by stepチュートリアルのフォーム初期画面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.2.3/css/bulma.css">
<style>body { padding-top: 40px; }</style>
</head>
<body>
<div id="app" class="container">
@include ('projects.list')
<form method="POST" action="/projects">
<div class="control">
<label for="name" class="label">Project Name:</label>
<input type="text" id="name" name="name" class="input">
</div>
<div class="control">
<label for="description" class="label">Project Description:</label>
<input type="text" id="description" name="description" class="input">
</div>
<div class="control">
<!--
<button class="button is-primary">Create</button>
-->
<input type="submit" class="button is-primary" value="Create"/>
</div>
{!! csrf_field() !!}
</form>
</div>
<!--
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.15.3/axios.js"></script>
<script src="https://unpkg.com/vue@2.1.6/dist/vue.js"></script>
<script src="/js/app.js"></script>
-->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment