@extends('layouts.main')
@section('content')
@include('partials.breadcrumb', ['breadcrumbTitle' => 'Edit Teqtivity Slack Notification App Credential','parentTitle'=>'Settings','parentUrl'=>'/settings','parentSubTitle' => 'Teqtivity SlackNotification App','parentSubUrl'=>'/teqtivity-slack-notification-app'])

<div class="wrapper-content">
	<div class="container-fluid">
		<div class="row">
			<div class="col-lg-12">
				<div class="ibox">
					<div class="ibox-content ibox-content-settings">
						@include('partials.error')
						
						<form class="form-horizontal" method="post" action="{{route('teqtivity-slack-notification-app.update', ['teqtivity_slack_notification_app' => $credential->id])}}">
							
							{{csrf_field()}}
							
							<input type="hidden" name="_method" value="PUT">
							
							<div class="form-group">
								<label class="col-lg-3 control-label">Client ID<span class="text-danger">*</span></label>
								<div class="col-lg-6">
									<input type="text" class="form-control" name="user_name" value="{{ $credential->user_name }}" required>
								</div>
							</div>
							
							<div  class="form-group">
								<label class="col-lg-3 control-label">Secret</label>
								<div class="col-lg-6">
									<input type="password" class="form-control" name="password" value="">
									<span class="help-block m-b-none">To keep the old Secret, leave this empty</span>
								</div>
							</div>
							
							<div class="form-group">
								<div class="col-lg-offset-3 col-lg-1">
									<button class="btn btn-primary" name="commit" type="submit">Update</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
@stop

@section('after_scripts')
@include('assets.partials.scripts.common')
@stop
