$class, format_date($class->getStartDate(),'EEE d.M.').'-'.format_date($class->getEndDate(), 'd.M.yyy') ); */ $_title = 'Kurse / '.$class . ' / '. $title ; // $_title .= (isset($sub)) ? ' / '.$sub : ''; slot('title', $_title ); ?> <H3> <?php echo $class ?> <small> <?php echo format_date($class->getStartDate(),'EEE d.M.').'-'.format_date($class->getEndDate(), 'd.M.yyy') ?> <span class="publish"> <?php if ($class->isPublished()) : ?> <span class="label label-success">Publiziert</span> <?php echo bs_link_to('Verbergen', null, null, 'class_unpublish', $class ) #'icon-check-sign'?> <?php else: ?> <span class="label label-warning">Entwurf</span> <?php echo bs_link_to('Jetzt Publizieren', null, null, 'class_publish', $class ) # 'icon-check-sign'?> <?php endif; ?> </span> </small> </H3> <div class="clearfix"></div> <?php include_partial('class/show_nav', array('active' => $nav, 'class' => $class)) ?>
</td> <td class="city"> <?php echo $contact->getCity() ?> </td> <td class="email"> <?php echo $contact->getEmail() ?> </td> <td class="actions"> <?php if (!$enroled): echo bs_link_to('Übernehmen', 'icon-link', null, 'registration_2_contact_edit', $contact ); else: echo bs_link_to('bestehende Anmeldung ergänzen', 'icon-warning-sign', null, 'registration_2_contact_edit', $contact, array( 'class' => 'text-error' )) ; endif; ?> </td> </tr> <?php endforeach; ?> </tbody> </table> <hr> <div class="alert alert-warning"> Kein passender Adressbuch-Eintrag? </div>
function bs_button_submit($name, $icon, $css_class = '', $credentials = null) { if ( is_null($credentials) || sfContext::getInstance()->getUser()->hasCredential( $credentials )) { $content = bs_icon($icon).' '.$name; $html_options['class'] = 'btn '.$css_class; $html_options['type'] = 'submit'; return content_tag('button', $content, $html_options); } else { $options['class'] = 'btn '.$css_class; return bs_link_to($name, $icon, $credentials, null, null, $options); } }
</td> <td class="description"> <i><?php echo $ds_email_notification_template->getDescription() ?></i> </td> <!-- <td class="subject"> <?php #echo $ds_email_notification_template->getSubject() ?> </td> --> <td class="actions"> <?php #echo bs_link_to('Vorschau', 'icon-eye-open', 'email_template.edit', 'email_template_preview', $ds_email_notification_template, array( 'class' => '', 'data-toggle' => 'modal', 'data-target' => '#template'.$ds_email_notification_template['id'] ) ) ?> <?php echo bs_link_to('Bearbeiten', 'icon-pencil', 'email_template.edit', 'email_template_edit', $ds_email_notification_template, array( 'class' => 'rowclick' ) ) ?> <?php if ($sf_user->hasCredential('superuser')): ?> <?php echo link_to('Delete', 'email_template_delete', $ds_email_notification_template, array( 'class' => 'delete', 'method' => 'delete', 'confirm' => 'Are You Sure?')) ?> <?php endif; ?> </td> </tr> <!-- Modal --> <div id="template<?php echo $ds_email_notification_template['id'] ?>" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">Email Vorschau</h3> </div> <div class="modal-body"><p>Loading...</p></div>
<tr id="email_textblock_<?php echo $ds_email_textblock['id'] ?>"> <td class="name"> <?php echo $ds_email_textblock->getName() ?> </td> <td class="text-warning"> %<?php echo $ds_email_textblock->getSlug() ?>% </td> <td class="actions"> <?php echo bs_link_to('Bearbeiten', 'icon-pencil', 'textblock.edit', 'email_textblock_edit', $ds_email_textblock, array( 'class' => 'rowclick' ) ) ?> <?php if ($sf_user->hasCredential('superuser')): ?> <?php echo link_to('Delete', 'email_textblock_delete', $ds_email_textblock, array( 'class' => 'delete', 'method' => 'delete', 'confirm' => 'Are You Sure?')) ?> <?php endif; ?> </td> </tr>