<commit_before>@extends('layouts.master')

@section('master.content')
    @if(Session::has('message'))
    <p class="alert alert-info">{{ Session::get('message') }}</p>
    @endif
    
    {{ Form::open(['method' => 'put', 'files' => true, 'class'=>'form-horizontal', 'id' => 'stripForm']); }}
    {{ Form::hidden('_method', 'put', ['id' => '_method']); }}
    
    <div class="text-center">
        <h1>@lang('strip.updateTitle')</h1>
    </div>
    
    <br />
    
    <div class="form-group">
    {{ Form::label('title', Lang::get('strip.title'), ['class'=>'col-sm-2 control-label']); }}
        <div class="col-sm-10 ">
        {{ Form::text('title', $strips->title, ['class'=>'form-control', 'placeholder' => Lang::get('strip.title')]); }}
        {{ $errors->first('title', '<p class="alert alert-danger">:message</p>'); }}
        </div>
    </div>

    <div class="form-group text-center">
           {{ HTML::image($strips->path, '', array('class' => 'img-thumbnail')) }}
    </div>

    <div class="btn-group pull-right" role="group">
        <span class="btn btn-primary" onclick="$('#_method').val('DELETE'); $('#stripForm').attr('action', '{{ URL::route('strip.destroy', [$strips->id]) }}'); $('#stripForm').submit();"> @lang('base.delete') </span>
        <a href="{{ URL::route('home') }}" class="btn btn-primary"> @lang('base.cancel') </a>
        {{ Form::submit(Lang::get((Route::currentRouteName() == "strip.create")? 'base.add' : 'base.update'),['class'=>'btn btn-primary']); }}
    </div>
    {{ Form::close(); }}
@stop<commit_msg>Fixing useless check<commit_after>@extends('layouts.master')

@section('master.content')
    @if(Session::has('message'))
    <p class="alert alert-info">{{ Session::get('message') }}</p>
    @endif
    
    {{ Form::open(['method' => 'put', 'files' => true, 'class'=>'form-horizontal', 'id' => 'stripForm']); }}
    {{ Form::hidden('_method', 'put', ['id' => '_method']); }}
    
    <div class="text-center">
        <h1>@lang('strip.updateTitle')</h1>
    </div>
    <br />
    
    <div class="form-group">
    {{ Form::label('title', Lang::get('strip.title'), ['class'=>'col-sm-2 control-label']); }}
        <div class="col-sm-10 ">
        {{ Form::text('title', $strips->title, ['class'=>'form-control', 'placeholder' => Lang::get('strip.title')]); }}
        {{ $errors->first('title', '<p class="alert alert-danger">:message</p>'); }}
        </div>
    </div>

    <div class="form-group text-center">
           {{ HTML::image($strips->path, '', array('class' => 'img-thumbnail')) }}
    </div>

    <div class="btn-group pull-right" role="group">
        <span class="btn btn-primary" onclick="$('#_method').val('DELETE'); $('#stripForm').attr('action', '{{ URL::route('strip.destroy', [$strips->id]) }}'); $('#stripForm').submit();"> @lang('base.delete') </span>
        <a href="{{ URL::route('home') }}" class="btn btn-primary"> @lang('base.cancel') </a>
        {{ Form::submit(Lang::get('base.update'),['class'=>'btn btn-primary']); }}
    </div>
    {{ Form::close(); }}
@stop
{'fraction_non_alphanumeric': 0.2821522309711286, 'fraction_numerical': 0.0032808398950131233, 'mean_word_length': 3.8473767885532593, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 73, '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': '2243442', 'n_tokens_mistral': 998, 'n_tokens_neox': 997, 'n_words': 158}