Exemple #1
0
    ?>
                    <div class="avatar">
                        <img class="js-avatar-img" src="<?php 
    $this->asset('img/avatar--agent.png');
    ?>
" />
            <?php 
}
?>
                <?php 
if (is_editable()) {
    ?>
                    <a class="botao editar js-open-editbox" data-target="#editbox-change-avatar" href="#">editar</a>
                    <div id="editbox-change-avatar" class="js-editbox mc-right" title="Editar avatar">
                        <?php 
    add_ajax_uploader($entity, 'avatar', 'image-src', 'div.avatar img.js-avatar-img', '', 'avatarBig');
    ?>
                    </div>
                <?php 
}
?>
            </div>
            <!--.avatar-->
            <div class="entity-type agent-type">
                <div class="icone icon_profile"></div>
                <a href="#" class='js-editable-type' data-original-title="Tipo" data-emptytext="Selecione um tipo" data-entity='agent' data-value='<?php 
echo $entity->type;
?>
'>
                    <?php 
echo $entity->type->name;
Exemple #2
0
                    <a data-href="<?php 
                echo $img->deleteUrl;
                ?>
" data-target="#file-<?php 
                echo $img->id;
                ?>
" class="icone icon_close_alt hltip js-remove-item" data-hltip-classes="hltip-ajuda" title="Excluir"></a>
                </div>
                <?php 
            }
            ?>
            </div>
        <?php 
        }
    }
    ?>
    </div>
    <?php 
    if (is_editable()) {
        ?>
        <p class="p-dos-botoes">
            <a class="botao adicionar js-open-editbox" data-target="#editbox-gallery-image" href="#">adicionar imagem</a>
            <div id="editbox-gallery-image" class="js-editbox mc-top" title="Adicionar Imagem na Galeria">
                <?php 
        add_ajax_uploader($entity, 'gallery', 'append', 'div.js-gallery', '<div id="file-{{id}}" class="item-da-galeria" ><a href="{{url}}"><img src="{{files.galleryThumb.url}}" /></a> <div class="botoes-de-edicao"><a data-href="{{deleteUrl}}" data-target="#file-{{id}}" class="icone icon_close_alt hltip js-remove-item" data-hltip-classes="hltip-ajuda" title="Excluir"></a></div></div>', 'galleryThumb');
        ?>
            </div>
        </p>
    <?php 
    }
}
if (is_editable() || $downloads) {
    ?>
    <div class="widget">
        <h3 class="<?php 
    if (is_editable()) {
        echo 'editando';
    }
    ?>
">Downloads</h3>
        <?php 
    if (is_editable()) {
        ?>
            <a class="adicionar js-open-editbox hltip" data-target="#editbox-download-file" href="#" title="Clique para adicionar arquivo para download"></a>
            <div id="editbox-download-file" class="js-editbox mc-left" title="Adicionar Arquivo" data-submit-label="Enviar">
                <?php 
        add_ajax_uploader($entity, 'downloads', 'append', 'ul.js-downloads', '<li id="file-{{id}}" class="widget-list-item"><a href="{{url}}">{{description}}</a> <div class="botoes"><a data-href="{{deleteUrl}}" data-target="#file-{{id}}" data-configm-message="Remover este vídeo?" class="icone icon_close hltip js-remove-item" data-hltip-classes="hltip-ajuda" title="Excluir arquivo"></a></div></li>', '', true, false);
        ?>
            </div>
        <?php 
    }
    ?>
        <ul class="widget-list js-downloads js-slimScroll">
            <?php 
    if (is_array($downloads)) {
        foreach ($downloads as $download) {
            ?>
                <li id="file-<?php 
            echo $download->id;
            ?>
" class="widget-list-item<?php 
            if (is_editable()) {
Exemple #4
0
        
        <?php 
if ($this->controller->action == 'edit') {
    ?>
            <p id="upload-registration-button" <?php 
    if ($registrationForm) {
        ?>
class="oculto"<?php 
    }
    ?>
>
                <a class="botao adicionar simples js-open-editbox" data-target="#editbox-upload-registration-form">Subir uma ficha de inscrição</a>
            </p>
            <div id="editbox-upload-registration-form" class="js-editbox mc-right" title="Subir ficha de inscrição" data-success-callback="$('#upload-registration-button').addClass('oculto');">
                <?php 
    add_ajax_uploader($entity, 'registrationForm', 'set-content', '.js-ficha-inscricao', '' . '<a href="{{url}}" class="botao principal"><span class="icone icon_download"></span>Baixar a ficha de inscrição</a> ' . '<a class="botao excluir simples js-remove-item" data-href="{{deleteUrl}}" data-target=".js-ficha-inscricao>*" data-remove-callback="$(\'#upload-registration-button\').removeClass(\'oculto\');" data-confirm-message="Excluir a ficha de inscrição?">Excluir a ficha de inscrição</a>', '', false, '.doc, .xls, .pdf');
    ?>
            </div>
        <?php 
}
?>
        <?php 
if ($app->auth->isUserAuthenticated() && $entity->isRegistrationOpen() && !is_editable()) {
    ?>
            <p><a class="botao principal js-open-dialog" data-dialog="#dialog-registration-form" href="#">Fazer inscrição</a></p>

            <div id="dialog-registration-form" class="js-dialog" title="Inscrição">
                <form class="js-ajax-upload" method="POST" data-action="project-registration" action="<?php 
    echo $app->createUrl('project', 'register', array($entity->id));
    ?>
" enctype="multipart/form-data">