<commit_before><?php
require_once(dirname(__DIR__, 2) . "/php/classes/autoload.php");
if(session_status() !== PHP_SESSION_ACTIVE) {
	session_start();
}
?>

<main-nav></main-nav>

<div class="row">
	<div class="col-md-6">
		<h1 class="text-center">{{ venue.venueName }}</h1>
		<img src="https://www.fillmurray.com/140/200" alt="ALL the BMs" class="img-responsive center-block">
		<h2 class="text-center">{{venue.venueStreet1}}</h2>
		<h2 class="text-center">{{venue.venueStreet2}}</h2>
		<p class="text-center">{{venue.venueCity}}</p>
		<p class="text-center">{{venue.venueState}}</p>
		<p class="text-center">{{venue.venueZip}}</p>
	</div>
</div>

<?php
if(empty($_SESSION['venue']) === false) {
	?>

<div class="row">
	<div class="col-xs-12">
		<h1 class="text-center">Editing {{venue.venueName}}</h1>
	</div>
</div>

<!-- Venue Image Block-->
<div class="row">
	<div class="col-md-4">
		<form #venueForm="ngForm" name="venueForm" id="venueForm" (ngSubmit)="putVenue()" novalidate>
			<div class="form-group">
				<label for="inputFile">Venue Image</label>
				<input type="file" class="form-control" name="inputFile">
				<p class="help-block">Choose your Venue's profile Image</p>
			</div>

			<!-- Venue name Block-->
			<div class="form-group">
				<label for="venueName"> Venue Name</label>
				<input class="form-control" type="text" id="venueName" name="venueName" placeholder="current venue name here..." [(ngModel)]="venue.venueName" #venueName="ngModel" required>
				<div [hidden]="venueName.valid || venueName.pristine" class="alert alert-danger" role="alert">
					<p *ngIf="venueName.errors?.required">Flop</p>
				</div>
			</div>

			<!-- Address 1 bloc-->
			<div class="form-group">
				<label for="venueStreet1">Street Address</label>
				<input class="form-control" type="text" id="venueStreet1" name="venueStreet1"
						 placeholder="current user location here..." [(ngModel)]="venue.venueStreet1" #venueStreet1="ngModel" required>
				<div [hidden]="venueStreet1.valid || venueStreet1.pristine" class="alert alert-danger" role="alert">
					<p *ngIf="venueStreet1.errors?.required">Flop</p>
				</div>
			</div>

			<!-- Address 2 Block -->
			<div class="form-group">
				<label for="venueStreet2">Street Address 2</label>
					<input class="form-control" type="text" id="venueStreet2" name="venueStreet2" 				placeholder="Optional Secondary Street Address..." [(ngModel)]="venue.venueStreet2" #venueStreet2="ngmModel" required>
				<div [hidden]="venueStreet2.valid || venueStreet2.prestine" class="alert alert-danger" role="alert">
					<p *ngIf="venueStreet2.errors?.required">Flop</p>
				</div>
			</div>

			<!--Venue City Block -->
			<div class="form-group">
				<label for="venueCity">City</label>
				<input class="form-control" type="text" id="venueCity" name="venueCity" placeholder="Current user city name..." [(ngModel)]="venue.venueCity" #venueCity="ngModel" required>
				<div [hidden]="venueCity.valid || venueCity.prestine" class="alert alert-danger" role="alert">
					<p *ngIf="venueCity.errors?.required">Flop</p>
				</div>
			</div>

			<!-- Venue State Block -->
			<div class="form-group">
				<label for="venueState">State</label>
				<input class="form-control" type="text" id="venueState" name="venueState" placeholder="Current user state initials..." [(ngModel)]="venue.venueCity" #venueState="ngModel" required>
				<div [hidden]="venueState.valid || venueState.prestine" class="alert alert-danger" role="alert">
					<p *ngIf="venueState.errors?.required">Flop</p>
				</div>
			</div>

			<!-- Venue Zip Code -->
			<div class="form-group">
				<label for="venueZip">Zip Code</label>
				<input class="form-control" type="text" id="venueZip" name="venueZip" placeholder="Venues zip code is..." [(ngModel)]="venue.venueZip" #venueZip="ngModel" required>
				<div *ngIf="venueZip.valid || venueZip.prestine" class="alert alert-danger" role="alert">
					<p *ngIf="venueZip.errors?.required">Flop</p>
				</div>
			</div>

			<button class="btn btn-lg btn-info" type="submit" [disabled]="venueForm.invalid"><i class="fa fa-check"></i>&nbsp;Save</button>
		</form>
	</div>
</div>

	<?php
} else {
	?>
	<div class="row">
		<div class="col-xs-12">
			<p class="text-center">Please Login if you would like to edit your Venue profile.</p>
		</div>
	</div>
<?php } ?><commit_msg>added the content in venue-detail. modified closing<commit_after><?php
require_once(dirname(__DIR__, 2) . "/php/classes/autoload.php");
if(session_status() !== PHP_SESSION_ACTIVE) {
	session_start();
}
?>

<main-nav></main-nav>

<div class="row">
	<div class="col-md-3">
		<h1 class="text-center">{{ venue.venueName }}</h1>
		<img src="https://www.fillmurray.com/140/200" alt="ALL the BMs" class="img-responsive center-block">
		<h2 class="text-center">{{venue.venueStreet1}}</h2>
		<h2 class="text-center">{{venue.venueStreet2}}</h2>
		<p class="text-center">{{venue.venueCity}}</p>
		<p class="text-center">{{venue.venueState}}</p>
		<p class="text-center">{{venue.venueZip}}</p>
	</div>
</div>

<?php
if(empty($_SESSION['venue']) === false) {
	?>

<div class="row">
	<div class="col-xs-12">
		<h1 class="text-center">Editing {{venue.venueName}}</h1>
	</div>
</div>

<!-- Venue Image Block-->
<div class="row">
	<div class="col-md-4">
		<form #venueForm="ngForm" name="venueForm" id="venueForm" (ngSubmit)="putVenue()" novalidate>
			<div class="form-group">
				<label for="inputFile">Venue Image</label>
				<input type="file" class="form-control" name="inputFile">
				<p class="help-block">Choose your Venue's profile Image</p>
			</div>

			<!-- Venue name Block-->
			<div class="form-group">
				<label for="venueName"> Venue Name</label>
				<input class="form-control" type="text" id="venueName" name="venueName" placeholder="current venue name here..." [(ngModel)]="venue.venueName" #venueName="ngModel" required>
				<div [hidden]="venueName.valid || venueName.pristine" class="alert alert-danger" role="alert">
					<p *ngIf="venueName.errors?.required">Flop</p>
				</div>
			</div>

			<!-- Address 1 bloc-->
			<div class="form-group">
				<label for="venueStreet1">Street Address</label>
				<input class="form-control" type="text" id="venueStreet1" name="venueStreet1"
						 placeholder="current user location here..." [(ngModel)]="venue.venueStreet1" #venueStreet1="ngModel" required>
				<div [hidden]="venueStreet1.valid || venueStreet1.pristine" class="alert alert-danger" role="alert">
					<p *ngIf="venueStreet1.errors?.required">Flop</p>
				</div>
			</div>

			<!-- Address 2 Block -->
			<div class="form-group">
				<label for="venueStreet2">Street Address 2</label>
					<input class="form-control" type="text" id="venueStreet2" name="venueStreet2" 				placeholder="Optional Secondary Street Address..." [(ngModel)]="venue.venueStreet2" #venueStreet2="ngmModel" required>
				<div [hidden]="venueStreet2.valid || venueStreet2.prestine" class="alert alert-danger" role="alert">
					<p *ngIf="venueStreet2.errors?.required">Flop</p>
				</div>
			</div>

			<!--Venue City Block -->
			<div class="form-group">
				<label for="venueCity">City</label>
				<input class="form-control" type="text" id="venueCity" name="venueCity" placeholder="Current user city name..." [(ngModel)]="venue.venueCity" #venueCity="ngModel" required>
				<div [hidden]="venueCity.valid || venueCity.prestine" class="alert alert-danger" role="alert">
					<p *ngIf="venueCity.errors?.required">Flop</p>
				</div>
			</div>

			<!-- Venue State Block -->
			<div class="form-group">
				<label for="venueState">State</label>
				<input class="form-control" type="text" id="venueState" name="venueState" placeholder="Current user state initials..." [(ngModel)]="venue.venueCity" #venueState="ngModel" required>
				<div [hidden]="venueState.valid || venueState.prestine" class="alert alert-danger" role="alert">
					<p *ngIf="venueState.errors?.required">Flop</p>
				</div>
			</div>

			<!-- Venue Zip Code -->
			<div class="form-group">
				<label for="venueZip">Zip Code</label>
				<input class="form-control" type="text" id="venueZip" name="venueZip" placeholder="Venues zip code is..." [(ngModel)]="venue.venueZip" #venueZip="ngModel" required>
				<div *ngIf="venueZip.valid || venueZip.prestine" class="alert alert-danger" role="alert">
					<p *ngIf="venueZip.errors?.required">Flop</p>
				</div>
			</div>

			<button class="btn btn-lg btn-info" type="submit" [disabled]="venueForm.invalid"><i class="fa fa-check"></i>&nbsp;Save</button>
		</form>
	</div>
</div>

	<?php
} else {
	?>
	<div class="row">
		<div class="col-xs-12">
			<p class="text-center">D E N I E D!! Login if you would like to edit your Venue profile.</p>
		</div>
	</div>
<?php } ?>
{'fraction_non_alphanumeric': 0.20825192506608436, 'fraction_numerical': 0.009654062751407884, 'mean_word_length': 4.614193548387097, 'pattern_counts': {'":': 0, '<': 229, '<?xml version=': 0, '>': 229, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2257122', 'n_tokens_mistral': 3464, 'n_tokens_neox': 2929, 'n_words': 587}