first import
[projectpier.git] / application / views / company / edit_logo.php
blob2157a366ecc7c53d721e0fc2dc9ef3de1bfd8786
1 <?php
3 set_page_title(lang('edit company logo'));
4 if($company->isOwner()) {
5 administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
6 administration_crumbs(array(
7 array(lang('company'), get_url('administration', 'company')),
8 array(lang('edit company logo'))
9 ));
10 } else {
11 administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
12 administration_crumbs(array(
13 array(lang('clients'), get_url('administration', 'clients')),
14 array($company->getName(), $company->getViewUrl()),
15 array(lang('edit company logo'))
16 ));
17 } // if
20 <form action="<?php echo $company->getEditLogoUrl() ?>" method="post" enctype="multipart/form-data">
22 <?php tpl_display(get_template_path('form_errors')) ?>
24 <fieldset>
25 <legend><?php echo lang('current logo') ?></legend>
26 <?php if($company->hasLogo()) { ?>
27 <img src="<?php echo $company->getLogoUrl() ?>" alt="<?php echo clean($company->getName()) ?> logo" />
28 <p><a href="<?php echo $company->getDeleteLogoUrl() ?>" onclick="return confirm('<?php echo lang('confirm delete company logo') ?>')"><?php echo lang('delete company logo') ?></a></p>
29 <?php } else { ?>
30 <?php echo lang('no current logo') ?>
31 <?php } // if ?>
32 </fieldset>
34 <div>
35 <?php echo label_tag(lang('new logo'), 'avatarFormAvatar', true) ?>
36 <?php echo file_field('new_logo', null, array('id' => 'avatarFormAvatar')) ?>
37 <?php if($company->hasLogo()) { ?>
38 <p class="desc"><?php echo lang('new logo notice') ?></p>
39 <?php } // if ?>
40 </div>
42 <?php echo submit_button(lang('edit company logo')) ?>
44 </form>