Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Jun 24, 2020
1 parent 8d51ef4 commit 1e656b3
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 88 deletions.
28 changes: 14 additions & 14 deletions skel/pages/add().php
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?php echo '<?php' ?>
<?php echo '<?php' ?>
<?php foreach ($belongsTo as $relation): ?>
$<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?> = DB::selectPairs('select `<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_COLUMN_NAME']; ?>`,`<?php echo $findDisplayField($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']); ?>` from `<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?>`');
<?php endforeach; ?>
<?php endforeach;?>
if ($_SERVER['REQUEST_METHOD']=='POST') {
$data = $_POST;
$data = $_POST;
<?php foreach ($belongsTo as $relation): ?>
if (!isset($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?>[$data['<?php echo $table; ?>']['<?php echo $relation['KEY_COLUMN_USAGE']['COLUMN_NAME']; ?>']])) $errors['<?php echo $table; ?>[<?php echo $relation['KEY_COLUMN_USAGE']['COLUMN_NAME']; ?>]']='<?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?> not found';
<?php endforeach; ?>
if (!isset($errors)) {
$id = DB::insert('INSERT INTO `<?php echo $table; ?>` (<?php echo implode(', ',array_map(function($field){ return '`'.$field['COLUMNS']['COLUMN_NAME'].'`'; }, $fields)); ?>) VALUES (<?php echo implode(', ',array_map(function(){ return '?'; }, $fields)); ?>)', <?php echo implode(', ',array_map(function($field) use ($table) { return "\$data['$table']['".$field['COLUMNS']['COLUMN_NAME']."']"; }, $fields)); ?>);
if ($id) {
Flash::set('success','<?php echo ucfirst($singularize($humanize($table))); ?> saved');
Router::redirect('<?php echo $path; ?>/<?php echo $table; ?>/index');
}
}
Flash::set('danger','<?php echo ucfirst($singularize($humanize($table))); ?> not saved');
if (!isset($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?>[$data['<?php echo $table; ?>']['<?php echo $relation['KEY_COLUMN_USAGE']['COLUMN_NAME']; ?>']])) $errors['<?php echo $table; ?>[<?php echo $relation['KEY_COLUMN_USAGE']['COLUMN_NAME']; ?>]']='<?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?> not found';
<?php endforeach;?>
if (!isset($errors)) {
$id = DB::insert('INSERT INTO `<?php echo $table; ?>` (<?php echo implode(', ', array_map(function ($field) {return '`' . $field['COLUMNS']['COLUMN_NAME'] . '`';}, $fields)); ?>) VALUES (<?php echo implode(', ', array_map(function () {return '?';}, $fields)); ?>)', <?php echo implode(', ', array_map(function ($field) use ($table) {return "\$data['$table']['" . $field['COLUMNS']['COLUMN_NAME'] . "']";}, $fields)); ?>);
if ($id) {
Flash::set('success','<?php echo ucfirst($singularize($humanize($table))); ?> saved');
Router::redirect('<?php echo $path; ?>/<?php echo $table; ?>/index');
}
}
Flash::set('danger','<?php echo ucfirst($singularize($humanize($table))); ?> not saved');
} else {
$data = array('<?php echo $table; ?>'=>array(<?php echo implode(', ',array_map(function($field){ return "'".$field['COLUMNS']['COLUMN_NAME']."'".'=>'.var_export($field['COLUMNS']['COLUMN_DEFAULT'],true); }, $fields)); ?>));
$data = array('<?php echo $table; ?>'=>array(<?php echo implode(', ', array_map(function ($field) {return "'" . $field['COLUMNS']['COLUMN_NAME'] . "'" . '=>' . var_export($field['COLUMNS']['COLUMN_DEFAULT'], true);}, $fields)); ?>));
}
40 changes: 20 additions & 20 deletions skel/pages/add(admin).phtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
<h1>New <?php echo $singularize($humanize($table)); ?></h1>
</div>
<form method="post">
<?php foreach ($fields as $field):?>
<div class="form-group <?php echo '<?php' ?> e(isset($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]'])?'has-error':''); ?>">
<?php foreach ($fields as $field): ?>
<div class="form-group <?php echo '<?php' ?> e(isset($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]'])?'has-error':''); ?>">
<?php if ($relation = $findBelongsTo($field['COLUMNS']['COLUMN_NAME'])): ?>
<label class="control-label" for="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]"><?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?></label>
<select class="form-control" name="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" id="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]">
<option value=""<?php echo '<?php' ?> e(''==$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']?>']?' selected="selected"':''); ?>>...</option>
<?php echo '<?php' ?> foreach ($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?> as $key => $value): ?>
<option value="<?php echo '<?php' ?> e($key); ?>"<?php echo '<?php' ?> e($key==$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']?>']?' selected="selected"':''); ?>><?php echo '<?php' ?> e($value); ?></option>
<?php echo '<?php' ?> endforeach; ?>
</select>
<label class="control-label" for="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]"><?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?></label>
<select class="form-control" name="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" id="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]">
<option value=""<?php echo '<?php' ?> e(''==$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME'] ?>']?' selected="selected"':''); ?>>...</option>
<?php echo '<?php' ?> foreach ($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?> as $key => $value): ?>
<option value="<?php echo '<?php' ?> e($key); ?>"<?php echo '<?php' ?> e($key==$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME'] ?>']?' selected="selected"':''); ?>><?php echo '<?php' ?> e($value); ?></option>
<?php echo '<?php' ?> endforeach; ?>
</select>
<?php else: ?>
<label class="control-label" for="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]"><?php echo ucfirst($humanize($field['COLUMNS']['COLUMN_NAME'])); ?></label>
<input class="form-control" name="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" type="text" value="<?php echo '<?php' ?> e($data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>']); ?>" id="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" />
<?php endif; ?>
<span class="help-block"><?php echo '<?php' ?> if (isset($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]'])) e($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]']); ?></span>
</div>
<?php endforeach; ?>
<label class="control-label" for="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]"><?php echo ucfirst($humanize($field['COLUMNS']['COLUMN_NAME'])); ?></label>
<input class="form-control" name="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" type="text" value="<?php echo '<?php' ?> e($data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>']); ?>" id="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" />
<?php endif;?>
<span class="help-block"><?php echo '<?php' ?> e(isset($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]'])?$errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]']:''); ?></span>
</div>
<?php endforeach;?>

<div class="form-group">
<button class="btn btn-primary" type="submit">Save</button>
</div>
<?php echo '<?php' ?> Session::getCsrfInput(); ?>
</form>
<div class="form-group">
<button class="btn btn-primary" type="submit">Save</button>
</div>
<?php echo '<?php' ?> Session::getCsrfInput(); ?>
</form>
10 changes: 5 additions & 5 deletions skel/pages/delete($id).php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php echo '<?php' ?>
<?php echo '<?php' ?>
if (!empty($_POST)) {
$rows = DB::delete('DELETE FROM `<?php echo $table; ?>` WHERE `id` = ?', $id);
if (!$rows) Flash::set('danger','<?php echo ucfirst($singularize($humanize($table))); ?> not deleted');
else Flash::set('success','<?php echo ucfirst($singularize($humanize($table))); ?> deleted');
Router::redirect('<?php echo $path; ?>/<?php echo $table; ?>/index');
$rows = DB::delete('DELETE FROM `<?php echo $table; ?>` WHERE `id` = ?', $id);
if (!$rows) Flash::set('danger','<?php echo ucfirst($singularize($humanize($table))); ?> not deleted');
else Flash::set('success','<?php echo ucfirst($singularize($humanize($table))); ?> deleted');
Router::redirect('<?php echo $path; ?>/<?php echo $table; ?>/index');
}
6 changes: 3 additions & 3 deletions skel/pages/delete(admin).phtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</div>
<form method="post">
<p>Are you sure?</p>
<button class="btn btn-danger pull-right" type="submit">Yes</button>
<a class="btn btn-primary" href="<?php echo $path; ?>/<?php echo $table; ?>/edit/<?php echo '<?php' ?> e($id); ?>">No</a>
<?php echo '<?php' ?> Session::getCsrfInput(); ?>
<button class="btn btn-danger pull-right" type="submit">Yes</button>
<a class="btn btn-primary" href="<?php echo $path; ?>/<?php echo $table; ?>/edit/<?php echo '<?php' ?> e($id); ?>">No</a>
<?php echo '<?php' ?> Session::getCsrfInput(); ?>
</form>
28 changes: 14 additions & 14 deletions skel/pages/edit($id).php
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?php echo '<?php' ?>
<?php echo '<?php' ?>
<?php foreach ($belongsTo as $relation): ?>
$<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?> = DB::selectPairs('select `<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_COLUMN_NAME']; ?>`,`<?php echo $findDisplayField($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']); ?>` from `<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?>`');
<?php endforeach; ?>
<?php endforeach;?>
if ($_SERVER['REQUEST_METHOD']=='POST') {
$data = $_POST;
$data = $_POST;
<?php foreach ($belongsTo as $relation): ?>
if (!isset($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?>[$data['<?php echo $table; ?>']['<?php echo $relation['KEY_COLUMN_USAGE']['COLUMN_NAME']; ?>']])) $errors['<?php echo $table; ?>[<?php echo $relation['KEY_COLUMN_USAGE']['COLUMN_NAME']; ?>]']='<?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?> not found';
<?php endforeach; ?>
if (!isset($errors)) {
$rowsAffected = DB::update('UPDATE `<?php echo $table; ?>` SET <?php echo implode(', ',array_map(function($field){ return '`'.$field['COLUMNS']['COLUMN_NAME'].'`=?'; }, $fields)); ?> WHERE `id`=?', <?php echo implode(', ',array_map(function($field) use ($table) { return "\$data['$table']['".$field['COLUMNS']['COLUMN_NAME']."']"; }, $fields)); ?>, $id);
if ($rowsAffected!==false) {
Flash::set('success','<?php echo ucfirst($singularize($humanize($table))); ?> saved');
Router::redirect('<?php echo $path; ?>/<?php echo $table; ?>/view/'.$id);
}
}
Flash::set('danger','<?php echo ucfirst($singularize($humanize($table))); ?> not saved');
if (!isset($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?>[$data['<?php echo $table; ?>']['<?php echo $relation['KEY_COLUMN_USAGE']['COLUMN_NAME']; ?>']])) $errors['<?php echo $table; ?>[<?php echo $relation['KEY_COLUMN_USAGE']['COLUMN_NAME']; ?>]']='<?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?> not found';
<?php endforeach;?>
if (!isset($errors)) {
$rowsAffected = DB::update('UPDATE `<?php echo $table; ?>` SET <?php echo implode(', ', array_map(function ($field) {return '`' . $field['COLUMNS']['COLUMN_NAME'] . '`=?';}, $fields)); ?> WHERE `id`=?', <?php echo implode(', ', array_map(function ($field) use ($table) {return "\$data['$table']['" . $field['COLUMNS']['COLUMN_NAME'] . "']";}, $fields)); ?>, $id);
if ($rowsAffected!==false) {
Flash::set('success','<?php echo ucfirst($singularize($humanize($table))); ?> saved');
Router::redirect('<?php echo $path; ?>/<?php echo $table; ?>/view/'.$id);
}
}
Flash::set('danger','<?php echo ucfirst($singularize($humanize($table))); ?> not saved');
} else {
$data = DB::selectOne('SELECT * from `<?php echo $table; ?>` where `id` = ?', $id);
$data = DB::selectOne('SELECT * from `<?php echo $table; ?>` where `id` = ?', $id);
}
40 changes: 20 additions & 20 deletions skel/pages/edit(admin).phtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
<h1>Edit <?php echo $singularize($humanize($table)); ?></h1>
</div>
<form method="post">
<?php foreach ($fields as $field):?>
<div class="form-group <?php echo '<?php' ?> e(isset($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]'])?'has-error':''); ?>">
<?php foreach ($fields as $field): ?>
<div class="form-group <?php echo '<?php' ?> e(isset($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]'])?'has-error':''); ?>">
<?php if ($relation = $findBelongsTo($field['COLUMNS']['COLUMN_NAME'])): ?>
<label class="control-label" for="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]"><?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?></label>
<select class="form-control" name="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" id="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]">
<option value=""<?php echo '<?php' ?> e(''==$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']?>']?' selected="selected"':''); ?>>...</option>
<?php echo '<?php' ?> foreach ($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?> as $key => $value): ?>
<option value="<?php echo '<?php' ?> e($key); ?>"<?php echo '<?php' ?> e($key==$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']?>']?' selected="selected"':''); ?>><?php echo '<?php' ?> e($value); ?></option>
<?php echo '<?php' ?> endforeach; ?>
</select>
<label class="control-label" for="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]"><?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?></label>
<select class="form-control" name="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" id="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]">
<option value=""<?php echo '<?php' ?> e(''==$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME'] ?>']?' selected="selected"':''); ?>>...</option>
<?php echo '<?php' ?> foreach ($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?> as $key => $value): ?>
<option value="<?php echo '<?php' ?> e($key); ?>"<?php echo '<?php' ?> e($key==$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME'] ?>']?' selected="selected"':''); ?>><?php echo '<?php' ?> e($value); ?></option>
<?php echo '<?php' ?> endforeach; ?>
</select>
<?php else: ?>
<label class="control-label" for="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]"><?php echo ucfirst($humanize($field['COLUMNS']['COLUMN_NAME'])); ?></label>
<input class="form-control" name="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" type="text" value="<?php echo '<?php' ?> e($data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>']); ?>" id="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" />
<?php endif; ?>
<span class="help-block"><?php echo '<?php' ?> if (isset($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]'])) e($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]']); ?></span>
</div>
<?php endforeach; ?>
<label class="control-label" for="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]"><?php echo ucfirst($humanize($field['COLUMNS']['COLUMN_NAME'])); ?></label>
<input class="form-control" name="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" type="text" value="<?php echo '<?php' ?> e($data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>']); ?>" id="<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]" />
<?php endif;?>
<span class="help-block"><?php echo '<?php' ?> e(isset($errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]'])?$errors['<?php echo $table; ?>[<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>]']:''); ?></span>
</div>
<?php endforeach;?>

<div class="form-group">
<button class="btn btn-primary" type="submit">Save</button>
</div>
<?php echo '<?php' ?> Session::getCsrfInput(); ?>
</form>
<div class="form-group">
<button class="btn btn-primary" type="submit">Save</button>
</div>
<?php echo '<?php' ?> Session::getCsrfInput(); ?>
</form>
24 changes: 12 additions & 12 deletions skel/pages/view(admin).phtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
<h1>View <?php echo $singularize($humanize($table)); ?></h1>
</div>
<div>
<?php foreach ($fields as $field):?>
<dl>
<?php foreach ($fields as $field): ?>
<dl>
<?php if ($relation = $findBelongsTo($field['COLUMNS']['COLUMN_NAME'])): ?>
<dt><?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?></dt>
<dt><?php echo ucfirst($singularize($humanize($relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']))); ?></dt>
<?php else: ?>
<dt><?php echo ucfirst($humanize($field['COLUMNS']['COLUMN_NAME'])); ?></dt>
<?php endif; ?>
<dt><?php echo ucfirst($humanize($field['COLUMNS']['COLUMN_NAME'])); ?></dt>
<?php endif;?>
<?php if ($relation = $findBelongsTo($field['COLUMNS']['COLUMN_NAME'])): ?>
<dd><?php echo '<?php' ?> e($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?>[$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>']]);?></dd>
<dd><?php echo '<?php' ?> e($<?php echo $relation['KEY_COLUMN_USAGE']['REFERENCED_TABLE_NAME']; ?>[$data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>']]);?></dd>
<?php else: ?>
<dd><?php echo '<?php' ?> e($data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>']);?></dd>
<?php endif; ?>
</dl>
<?php endforeach; ?>
<dd><?php echo '<?php' ?> e($data['<?php echo $table; ?>']['<?php echo $field['COLUMNS']['COLUMN_NAME']; ?>']);?></dd>
<?php endif;?>
</dl>
<?php endforeach;?>
</div>
<p>
<a class="btn btn-danger pull-right" href="<?php echo $path; ?>/<?php echo $table; ?>/delete/<?php echo '<?php' ?> e($id); ?>">Delete</a>
<a class="btn btn-primary" href="<?php echo $path; ?>/<?php echo $table; ?>/edit/<?php echo '<?php' ?> e($id); ?>">Edit</a>
<a class="btn btn-danger pull-right" href="<?php echo $path; ?>/<?php echo $table; ?>/delete/<?php echo '<?php' ?> e($id); ?>">Delete</a>
<a class="btn btn-primary" href="<?php echo $path; ?>/<?php echo $table; ?>/edit/<?php echo '<?php' ?> e($id); ?>">Edit</a>
</p>

0 comments on commit 1e656b3

Please sign in to comment.