</h4>
				<p>Last login:
				<span data-toggle="tooltip" data-placement="top" title="<?php 
echo $user->updated_at;
?>
">
					<?php 
echo Carbon\Carbon::parse($user->updated_at)->diffForHumans();
?>
				</span></p>
			</div>
		</div>

		<div class="modal-footer">
			<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
			<?php 
if (!$user->admin) {
    echo BootForm::open(['route' => ['admin.promote_user', 'id' => $user->id]]);
    echo BootForm::hidden('_action', 'promote_user');
    echo Button::submit()->success()->withValue('Promote');
    echo BootForm::close();
} else {
    echo BootForm::open(['route' => ['admin.demote_user', 'id' => $user->id]]);
    echo BootForm::hidden('_action', 'demote_user');
    echo Button::submit()->danger()->withValue('Demote');
    echo BootForm::close();
}
?>
		</div>
	</div><!-- /.modal-content -->
예제 #2
0
<?php

echo BootForm::open(['route' => ['sheets.remove_pilot', 'pilot_id' => $pilot->id, 'id' => $id]]);
echo BootForm::hidden('_action', 'remove_pilot');
echo Button::submit()->withValue('OK')->block();
echo BootForm::close();
예제 #3
0
<?php

echo BootForm::open(['route' => ['sheets.add_bookmarker', $site->id]]);
echo BootForm::hidden('_action', 'add_bookmarker');
echo BootForm::text('name', 'Name');
echo Button::submit()->withValue('Save')->block();
echo BootForm::close();
예제 #4
0
<?php

$title = "Modification d'un QCM";
$mustache = new Mustache_Engine();
BootForm::open();
$questions = $qcm->questions->count();
?>

@extends('layouts.default')

@section('title', $title)

@section('content')
    <h2 class="page-header text-center">{{ $title }}</h2>

    {!! BootForm::open() !!}

    <p class="alert alert-info">Les champs marqué d'un astérisque &laquo;<sub
                style="font-size: 16px"><?php 
echo $requiredField;
?>
</sub> &raquo; sont obligatoires.</p>

    <div class="row">
        <div class="col-md-6">
            {!! BootForm::text('Nom du QCM' . $requiredField, 'name')->required()->value($qcm->name) !!}
        </div>
        <div class="col-md-6">
            {!! BootForm::select('Matière associée' . $requiredField, 'subject_id')->options($subjectsList)->required()->select($qcm->subject_id) !!}
        </div>
    </div>
예제 #5
0
<?php

echo BootForm::open(['route' => ['sheets.add_escalator', $site->id]]);
echo BootForm::hidden('_action', 'add_escalator');
echo BootForm::text('name', 'Name');
echo BootForm::select('ship', 'Ship', ['Archon' => 'Archon', 'Thanatos' => 'Thanatos', 'Nidhoggur' => 'Nidhoggur', 'Chimera' => 'Chimera', 'Revalation' => 'Revalation', 'Naglfar' => 'Naglfar', 'Moros' => 'Moros', 'Phoenix' => 'Phoenix']);
echo Button::submit()->withValue('Save')->block();
echo BootForm::close();
예제 #6
0
<?php

echo BootForm::open(['route' => ['sheets.add_pilots', $site->id]]);
echo BootForm::hidden('_action', 'add_pilots');
echo BootForm::textarea('pilots');
?>
 <small class="text-muted">Copy and Paste your fleet composition here</small> <?php 
echo Button::submit()->withValue('Save')->block();
echo BootForm::close();
예제 #7
0
<?php

echo BootForm::open(['route' => 'options.add_corp']);
echo BootForm::text('name', 'Name');
echo BootForm::text('value', 'ID');
echo Button::submit()->withValue('Add')->block();
echo BootForm::close();
예제 #8
0
<div class="row">
    <div class="col-md-12">
        <div class="jumbotron">
            <h1>Add a new Signature</h1>
            <p>Some more text here.</p>

            <?php 
echo BootForm::open(['route' => 'sig.create']);
?>
            <?php 
echo BootForm::text('sig_paste', 'Signature', null, ['placeholder' => 'Copy and paste the signature from your probe scanner window here', 'rows' => 5]);
?>
            <?php 
echo BootForm::submit('Save', ['class' => 'btn-block btn-primary btn']);
?>
            <?php 
echo BootForm::close();
?>
        </div>
    </div>
</div>
예제 #9
0
<?php

echo BootForm::open(['route' => ['options.action', 'id' => $option->id]]);
echo BootForm::text('name', 'Name', $option->name);
echo BootForm::text('value', 'Value', $option->value);
echo Button::submit()->withValue('Save')->block();
echo BootForm::close();
예제 #10
0
<?php

echo BootForm::open(['route' => ['sheets.mark_as_finished', $site->id]]);
echo BootForm::hidden('_action', 'mark_as_finished');
echo BootForm::number('payout', 'Site Payout');
echo BootForm::textarea('comment');
echo Button::submit()->withValue('Save')->block();
echo BootForm::close();
예제 #11
0
<?php

echo BootForm::open(['route' => ['sheets.add_defanger', $site->id]]);
echo BootForm::hidden('_action', 'add_defanger');
echo BootForm::text('name', 'Name');
echo Button::submit()->withValue('Save')->block();
echo BootForm::close();
예제 #12
0
<?php

echo BootForm::open(['route' => ['options.remove_corp', 'id' => $corp->id]]);
echo BootForm::hidden('_action', 'remove_corp');
echo Button::submit()->withValue('OK')->block();
echo BootForm::close();
예제 #13
0
<?php

echo BootForm::open(['route' => ['sheets.close', $site->id]]);
echo BootForm::hidden('_action', 'close');
echo BootForm::textarea('comment');
echo Button::submit()->withValue('Save')->block();
echo BootForm::close();