No form should be using the Form facade... Closes #374

This commit is contained in:
James Brooks
2015-02-06 14:32:17 +00:00
parent c796742812
commit bddfbb855b
13 changed files with 21 additions and 8 deletions

View File

@@ -15,6 +15,7 @@
<div class="col-sm-12">
@include('partials.dashboard.errors')
<form name="CreateComponentForm" class="form-horizontal" role="form" action="/dashboard/components/add" method="POST">
{{ Form::token() }}
<fieldset>
<div class="form-group">
<label for="component-name">{{ trans('forms.components.name') }}</label>

View File

@@ -15,6 +15,7 @@
<div class="col-sm-12">
@include('partials.dashboard.errors')
<form name="EditComponentForm" class="form-horizontal" role="form" action="/dashboard/components/{{ $component->id }}/edit" method="POST">
{{ Form::token() }}
<fieldset>
<div class="form-group">
<label for="incident-name">{{ trans('forms.components.name') }}</label>

View File

@@ -15,6 +15,7 @@
<div class="col-sm-12">
@include('partials.dashboard.errors')
<form name="CreateComponentGroupForm" class="form-horizontal" role="form" action="/dashboard/components/groups/add" method="POST">
{{ Form::token() }}
<fieldset>
<div class="form-group">
<label for="incident-name">{{ trans('forms.components.groups.name') }}</label>

View File

@@ -14,7 +14,8 @@
<div class="row">
<div class="col-md-12">
@include('partials.dashboard.errors')
{{ Form::open(['name' => 'IncidentForm', 'class' => 'form-horizontal', 'role' => 'form']) }}
<form class='form-horizontal' name='IncidentForm' role='form' method='POST'>
{{ Form::token() }}
<fieldset>
@if($incidentTemplates->count() > 0)
<div class="form-group">
@@ -96,7 +97,7 @@
<a class="btn btn-default" href="{{ route('dashboard.incidents') }}">{{ trans('forms.cancel') }}</a>
</div>
</div>
{{ Form::close() }}
</form>
</div>
</div>
</div>

View File

@@ -14,7 +14,8 @@
<div class="row">
<div class="col-md-12">
@include('partials.dashboard.errors')
{{ Form::open(['name' => 'IncidentForm', 'class' => 'form-horizontal', 'role' => 'form']) }}
<form class='form-horizontal' name='IncidentForm' role='form' method='POST'>
{{ Form::token() }}
<fieldset>
<div class="form-group">
<label for="incident-name">{{ trans('forms.incidents.name') }}</label>
@@ -86,7 +87,7 @@
<a class="btn btn-default" href="{{ route('dashboard.incidents') }}">{{ trans('forms.cancel') }}</a>
</div>
</div>
{{ Form::close() }}
</form>
</div>
</div>
</div>

View File

@@ -14,7 +14,8 @@
<div class="row">
<div class="col-md-12">
@include('partials.dashboard.errors')
{{ Form::open(['name' => 'IncidentTemplateForm', 'class' => 'form-horizontal', 'role' => 'form']) }}
<form class='form-horizontal' name='IncidentTemplateForm' role='form' method='POST'>
{{ Form::token() }}
<fieldset>
<div class="form-group">
<label for="template-name">{{ trans('forms.incidents.templates.name') }}</label>
@@ -31,7 +32,7 @@
<div class="form-group">
<button type="submit" class="btn btn-success">{{ trans('forms.create') }}</button>
</div>
{{ Form::close() }}
</form>
</div>
</div>
</div>

View File

@@ -23,7 +23,8 @@
</div>
@endif
{{ Form::open(['name' => 'IncidentTemplateForm', 'class' => 'form-horizontal', 'role' => 'form']) }}
<form class='form-horizontal' name='IncidentTemplateForm' role='form' method='POST'>
{{ Form::token() }}
<fieldset>
<div class="form-group">
<label for="template-name">{{ trans('forms.incidents.templates.name') }}</label>
@@ -40,7 +41,7 @@
<div class="form-group">
<button type="submit" class="btn btn-success">{{ trans('forms.update') }}</button>
</div>
{{ Form::close() }}
</form>
</div>
</div>
</div>

View File

@@ -9,6 +9,7 @@
<div class="row">
<div class="col-sm-12">
<form id="settings-form" name="SettingsForm" class="form-horizontal" role="form" action="/dashboard/settings" method="POST" enctype="multipart/form-data">
{{ Form::token() }}
<h4 class="sub-header" id="application-setup">{{ trans('dashboard.settings.app-setup.app-setup') }}</h4>
@include('partials.dashboard.errors')
<fieldset>

View File

@@ -9,6 +9,7 @@
<div class="row">
<div class="col-sm-12">
<form name="SettingsForm" class="form-horizontal" role="form" action="/dashboard/settings" method="POST">
{{ Form::token() }}
<h4 class="sub-header" id="security">{{ trans('dashboard.settings.security.security') }}</h4>
@include('partials.dashboard.errors')
<fieldset>

View File

@@ -9,6 +9,7 @@
<div class="row">
<div class="col-sm-12">
<form name="SettingsForm" class="form-horizontal" role="form" action="/dashboard/settings" method="POST">
{{ Form::token() }}
<h4 class="sub-header" id="stylesheet">{{ trans('dashboard.settings.stylesheet.stylesheet') }}</h4>
@include('partials.dashboard.errors')
<fieldset>

View File

@@ -9,6 +9,7 @@
<div class="row">
<div class="col-sm-12">
<form name="SettingsForm" class="form-horizontal" role="form" action="/dashboard/settings" method="POST">
{{ Form::token() }}
<h4 class="sub-header" id="theme">{{ trans('dashboard.settings.theme.theme') }}</h4>
@include('partials.dashboard.errors')
<fieldset>

View File

@@ -14,6 +14,7 @@
<div class="col-sm-12">
@include('partials.dashboard.errors')
<form name="UserForm" class="form-horizontal" role="form" action="/dashboard/team/add" method="POST">
{{ Form::token() }}
<fieldset>
<div class="form-group">
<label>{{ trans('forms.user.username') }}</label>

View File

@@ -14,6 +14,7 @@
<div class="col-sm-12">
@include('partials.dashboard.errors')
<form name="UserForm" class="form-horizontal" role="form" action="/dashboard/team/{{ $user->id }}" method="POST">
{{ Form::token() }}
<fieldset>
<div class="form-group">
<label>{{ trans('forms.user.username') }}</label>