Skip to content

Commit

Permalink
company module retrofit
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Apr 22, 2011
1 parent 1de61a5 commit 05abe79
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
20 changes: 10 additions & 10 deletions framework/modules/company/views/company/show.tpl
@@ -1,5 +1,5 @@
{*
* Copyright (c) 2007-2008 OIC Group, Inc.
* Copyright (c) 2007-2011 OIC Group, Inc.
* Written and Designed by Adam Kessler
*
* This file is part of Exponent
Expand All @@ -17,9 +17,9 @@
<div class="module company show">
<div id="details">
{permissions}
<div class="module-actions">
{if $permissions.edit == 1}
{icon controller=$model_name action=edit id=$record->id text="Edit `$record->title`"}
<div class="module-actions">
{if $permissions.edit == 1}
{icon controller=$model_name action=edit record=$record text="Edit `$record->title`"}
{/if}
</div>
{/permissions}
Expand All @@ -33,12 +33,12 @@
{filedisplayer files=$record->expFile.images title="ON THE JOB GALLERY"}
<h3>Resource Downloads</h3>
<ul class="filelist">
{foreach from=$record->expFile.downloads item=file}
{if $file->name == ""}{assign var=name value=$file->filename}{else}{assign var=name value=$file->name}{/if}
<li>{getfileicon file=$file}
<a href="{link action="downloadfile" id=$file->id}" title="{$name}">{$name}</a>
</li>
{/foreach}
{foreach from=$record->expFile.downloads item=file}
{if $file->name == ""}{assign var=name value=$file->filename}{else}{assign var=name value=$file->name}{/if}
<li>{getfileicon file=$file}
<a href="{link action="downloadfile" id=$file->id}" title="{$name}">{$name}</a>
</li>
{/foreach}
</ul>
{*filedisplayer files=$record->expFile.downloads title="RESOURCE DOWNLOADS" view=filelist*}
</div>
Expand Down
18 changes: 10 additions & 8 deletions framework/modules/company/views/company/showall.tpl
@@ -1,5 +1,5 @@
{*
* Copyright (c) 2007-2008 OIC Group, Inc.
* Copyright (c) 2007-2011 OIC Group, Inc.
* Written and Designed by Adam Kessler
*
* This file is part of Exponent
Expand All @@ -17,7 +17,7 @@
<div class="company showall">
<h1>{$moduletitle|default:'Company Listings'}</h1>

<a href="{link controller=$controller action=create}">Add a new {$modelname}</a><br />
{icon class="add" controller=$controller action=create text="Add a new `$modelname`"}
<table class="exp-skin-table">
<thead>
{$page->header_columns}
Expand All @@ -30,12 +30,14 @@
<td>{$company->website}</td>
<td>
{permissions}
{if $permissions.edit == 1}
{icon img=edit.png action=edit id=$company->id title="Edit `$company->title`"}
{/if}
{if $permissions.delete == 1}
{icon img=delete.png action=delete id=$company->id title="delete `$company->title`" onclick="return confirm('Are you sure you want to delete this `$modelname`?');"}
{/if}
<div class="item-actions">
{if $permissions.edit == 1}
{icon action=edit record=$company title="Edit `$company->title`"}
{/if}
{if $permissions.delete == 1}
{icon action=delete record=$company title="delete `$company->title`" onclick="return confirm('Are you sure you want to delete this `$modelname`?');"}
{/if}
</div>
{/permissions}
</td>
</tr>
Expand Down

0 comments on commit 05abe79

Please sign in to comment.