<commit_before><!-- resources/views/admin/modality_index.blade.php -->

@extends('layouts.app')

@section('content')
<h2>Modalities</h2>

<table class="table">
	<tbody>
@foreach ($modalities->chunk(2) as $chunk )
		<tr>
		@foreach ($chunk as $modality)
			<td>{{ $modality->id }}</td>
			<td>{{ $modality->modality }}</td>
			<form action="/admin/modalities/{{ $modality->id }}/edit" method="POST">
				<button type="submit">Edit</button>
			</form>
		@endforeach
		</tr>
@endforeach
	</tbody>
</table>

<h2>Add a Modality</h2>
<!-- Add a new modality -->
<form action="/admin/modalities" method="POST">
	{{ csrf_field() }}
New Modality: <input type="TEXT" name="modality" size="25" />
<button type="SUBMIT">Add modality</button> / <a href="/">Main</a>
</form>

@endsection<commit_msg>Make each modality a link to the edit page instead of using a form<commit_after><!-- resources/views/admin/modality_index.blade.php -->

@extends('layouts.app')

@section('content')
<h2>Modalities</h2>
<p>Click a modality to edit</p>
<table class="table">
	<tbody>
@foreach ($modalities->chunk(2) as $chunk )
		<tr>
		@foreach ($chunk as $modality)
			<td>{{ $modality->id }}</td>
			<td><a href="/admin/modalities/{{ $modality->id }}/edit">{{ $modality->modality }}</a></td>
		@endforeach
		</tr>
@endforeach
	</tbody>
</table>

<h2>Add a Modality</h2>
<!-- Add a new modality -->
<form class="form-inline" action="/admin/modalities" method="POST">
	<div class="form-group">
		{{ csrf_field() }}
		<label for="modality">New Modality:</label> <input type="TEXT" class="form-control" id="modality" name="modality" size="25" />
		<button class="btn btn-default" type="SUBMIT">Add modality</button> / <a href="/">Main</a>
	</div>
</form>

@endsection
{'fraction_non_alphanumeric': 0.2251732101616628, 'fraction_numerical': 0.008083140877598153, 'mean_word_length': 4.7574750830564785, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4764982', 'n_tokens_mistral': 671, 'n_tokens_neox': 635, 'n_words': 141}