Added last bit of validation
This commit is contained in:
parent
aa6e5653e1
commit
98be182fb2
8 changed files with 13 additions and 13 deletions
resources/views
|
@ -11,7 +11,7 @@
|
|||
{{ method_field('PATCH') }}
|
||||
<div class="form-group">
|
||||
<label>Name</label>
|
||||
<input type="text" class="form-control" name="name" value="{{ $group->name }}">
|
||||
<input type="text" class="form-control" name="name" value="{{ $group->name }}" required maxlength="255">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default">Submit</button>
|
||||
</form>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{{ csrf_field() }}
|
||||
<div class="form-group">
|
||||
<label>Name</label>
|
||||
<input type="text" class="form-control" name="name">
|
||||
<input type="text" class="form-control" name="name" required maxlength="255">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default">Submit</button>
|
||||
</form>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
{{ method_field('PATCH') }}
|
||||
<div class="form-group">
|
||||
<label>Title</label>
|
||||
<input type="text" class="form-control" name="title" value="{{ $test->title }}" required>
|
||||
<input type="text" class="form-control" name="title" value="{{ $test->title }}" required maxlength="255">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Number of Questions</label>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
{{ csrf_field() }}
|
||||
<div class="form-group">
|
||||
<label>Title</label>
|
||||
<input type="text" class="form-control" name="title" required>
|
||||
<input type="text" class="form-control" name="title" required maxlength="255">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Number of Questions</label>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
{{ method_field('PATCH') }}
|
||||
<div class="form-group">
|
||||
<label>Title</label>
|
||||
<input type="text" class="form-control" name="title" value="{{ $question->title }}" required>
|
||||
<input type="text" class="form-control" name="title" value="{{ $question->title }}" required maxlength="255">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Question</label>
|
||||
|
@ -36,7 +36,7 @@
|
|||
@for ($i = 1; $i < 5; $i++)
|
||||
<div class="form-group">
|
||||
<label>Option {{ $i }}</label><input class="pull-right" type="checkbox" name="options[{{ $i }}][correct_answer]" value="1" @if ($options[$i-1]->correct_answer == 1) checked @endif><span class="pull-right" style="padding:2px;">Correct Answer</span>
|
||||
<input type="text" class="form-control" name="options[{{ $i }}][option]" value="{{ $options[$i-1]->option }}" required>
|
||||
<input type="text" class="form-control" name="options[{{ $i }}][option]" value="{{ $options[$i-1]->option }}" required maxlength="255">
|
||||
</div>
|
||||
@endfor
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
{{ csrf_field() }}
|
||||
<div class="form-group">
|
||||
<label>Title</label>
|
||||
<input type="text" class="form-control" name="title" required>
|
||||
<input type="text" class="form-control" name="title" required maxlength="255">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Question</label>
|
||||
|
@ -34,7 +34,7 @@
|
|||
@for ($i = 1; $i < 5; $i++)
|
||||
<div class="form-group">
|
||||
<label>Option {{ $i }}</label><input class="pull-right" type="checkbox" name="options[{{ $i }}][correct_answer]" value="1"><span class="pull-right" style="padding:2px;">Correct Answer</span>
|
||||
<input type="text" class="form-control" name="options[{{ $i }}][option]" required>
|
||||
<input type="text" class="form-control" name="options[{{ $i }}][option]" required maxlength="255">
|
||||
</div>
|
||||
@endfor
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
{{ csrf_field() }}
|
||||
<div class="form-group">
|
||||
<label>Name</label>
|
||||
<input type="text" class="form-control" name="name" required>
|
||||
<input type="text" class="form-control" name="name" required maxlength="255">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="email" class="form-control" name="email" required>
|
||||
<input type="email" class="form-control" name="email" required maxlength="255">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Password</label>
|
||||
|
|
|
@ -22,13 +22,13 @@
|
|||
<div class="form-group">
|
||||
<h4>Change Password</h4>
|
||||
<label>Old Password</label>
|
||||
<input type="password" class="form-control" name="password_old">
|
||||
<input type="password" class="form-control" name="password_old" required>
|
||||
<br>
|
||||
<label>New Password</label>
|
||||
<input type="password" class="form-control" name="password1_new">
|
||||
<input type="password" class="form-control" name="password1_new" required>
|
||||
<br>
|
||||
<label>Repeat New Password</label>
|
||||
<input type="password" class="form-control" name="password2_new">
|
||||
<input type="password" class="form-control" name="password2_new" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</form>
|
||||
|
|
Reference in a new issue