-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
126 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
jQuery(function($){ | ||
|
||
// generate a slug when the user types a title in | ||
pyro.generate_slug('input[name="name"]', 'input[name="slug"]'); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,56 @@ | ||
<?php echo form_open('admin/sample/delete');?> | ||
<section class="title"> | ||
<h4><?php echo lang('sample.item_list'); ?></h4> | ||
</section> | ||
|
||
<?php if (!empty($items)): ?> | ||
<h3><?php echo lang('sample.item_list'); ?></h3> | ||
|
||
<table border="0" class="table-list"> | ||
<thead> | ||
<tr> | ||
<th><?php echo form_checkbox(array('name' => 'action_to_all', 'class' => 'check-all'));?></th> | ||
<th><?php echo lang('sample.name'); ?></th> | ||
<th><?php echo lang('sample.slug'); ?></th> | ||
<th><?php echo lang('sample.manage'); ?></th> | ||
</tr> | ||
</thead> | ||
<tfoot> | ||
<tr> | ||
<td colspan="5"> | ||
<div class="inner"><?php $this->load->view('admin/partials/pagination'); ?></div> | ||
</td> | ||
</tr> | ||
</tfoot> | ||
<tbody> | ||
<?php foreach( $items as $item ): ?> | ||
<tr> | ||
<td><?php echo form_checkbox('action_to[]', $item->id); ?></td> | ||
<td><?php echo $item->name; ?></td> | ||
<td><a href="<?php echo rtrim(site_url(), '/').'/sample'; ?>"> | ||
<?php echo rtrim(site_url(), '/').'/sample'; ?></a></td> | ||
<td> | ||
<?php echo | ||
anchor('sample', lang('sample.view'), 'target="_blank"') . ' | ' . | ||
anchor('admin/sample/edit/' . $item->id, lang('sample.edit')) . ' | ' . | ||
anchor('admin/sample/delete/' . $item->id, lang('sample.delete'), array('class'=>'confirm')); ?> | ||
</td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
<div class="buttons"> | ||
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('delete'))); ?> | ||
</div> | ||
<section class="item"> | ||
<?php echo form_open('admin/sample/delete');?> | ||
|
||
<?php if (!empty($items)): ?> | ||
|
||
<?php else: ?> | ||
<div class="blank-slate"> | ||
<img src="<?php echo site_url('addons/modules/sample/img/album.png') ?>" /> | ||
<table border="0" class="table-list"> | ||
<thead> | ||
<tr> | ||
<th><?php echo form_checkbox(array('name' => 'action_to_all', 'class' => 'check-all'));?></th> | ||
<th><?php echo lang('sample.name'); ?></th> | ||
<th><?php echo lang('sample.slug'); ?></th> | ||
<th><?php echo lang('sample.manage'); ?></th> | ||
</tr> | ||
</thead> | ||
<tfoot> | ||
<tr> | ||
<td colspan="5"> | ||
<div class="inner"><?php $this->load->view('admin/partials/pagination'); ?></div> | ||
</td> | ||
</tr> | ||
</tfoot> | ||
<tbody> | ||
<?php foreach( $items as $item ): ?> | ||
<tr> | ||
<td><?php echo form_checkbox('action_to[]', $item->id); ?></td> | ||
<td><?php echo $item->name; ?></td> | ||
<td><a href="<?php echo rtrim(site_url(), '/').'/sample'; ?>"> | ||
<?php echo rtrim(site_url(), '/').'/sample'; ?></a></td> | ||
<td> | ||
<?php echo | ||
anchor('sample', lang('sample.view'), 'target="_blank"') . ' | ' . | ||
anchor('admin/sample/edit/' . $item->id, lang('sample.edit')) . ' | ' . | ||
anchor('admin/sample/delete/' . $item->id, lang('sample.delete'), array('class'=>'confirm')); ?> | ||
</td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
<div class="buttons"> | ||
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('delete'))); ?> | ||
</div> | ||
|
||
<h2><?php echo lang('sample.no_items'); ?></h2> | ||
</div> | ||
<?php endif;?> | ||
|
||
<?php echo form_close(); ?> | ||
<?php else: ?> | ||
<div class="blank-slate"> | ||
<?php echo image('album.png', 'sample'); ?> | ||
|
||
<h3><?php echo lang('sample.no_items'); ?></h3> | ||
</div> | ||
<?php endif;?> | ||
|
||
<?php echo form_close(); ?> | ||
</section> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<div class="sample-container"> | ||
|
||
{if '{pyro:empty}'} | ||
{{ if items_exist == false }} | ||
<p>There are no items.</p> | ||
{else} | ||
{{ else }} | ||
<div class="sample-data"> | ||
<table cellpadding="0" cellspacing="0"> | ||
<tr> | ||
<th>{pyro:helper:lang line="sample.name"}</th> | ||
<th>{pyro:helper:lang line="sample.slug"}</th> | ||
<th>{{ helper:lang line="sample.name" }}</th> | ||
<th>{{ helper:lang line="sample.slug" }}</th> | ||
</tr> | ||
<!-- Here we loop through the $items array --> | ||
{pyro:items} | ||
{{ items }} | ||
<tr> | ||
<td>{name}</td> | ||
<td>{slug}</td> | ||
<td>{{ name }}</td> | ||
<td>{{ slug }}</td> | ||
</tr> | ||
{/pyro:items} | ||
{{ /items }} | ||
</table> | ||
</div> | ||
{pyro:template:partial name="pagination"} | ||
{{ pagination:links }} | ||
|
||
{/if} | ||
{{ endif }} | ||
|
||
</div> |