Skip to content
Snippets Groups Projects
user-info.tmpl.php 1.4 KiB
Newer Older
<h3><?php echo $user->getFullName() ?></h3>
<a class="close" href=""><i class="icon-remove-circle"></i></a>
Peter Rotich's avatar
Peter Rotich committed
<br>
Peter Rotich's avatar
Peter Rotich committed
<div><p id="msg_info"><i class="icon-info-sign"></i>&nbsp; Please note that updates will be reflected system-wide.</p></div>
<hr/>
<form method="post" action="ajax.php/form/user-info/<?php
        echo $user->get('id'); ?>" onsubmit="javascript:
        var form = $(this);
        var dialog = form.closest('.dialog');
        $.post(this.action, form.serialize(), function(data, status, xhr) {
            if(xhr && xhr.status == 201) {
                var user = $.parseJSON(xhr.responseText);
                $('#user-'+user.id+'-name').html(user.name);
                $('div.body', dialog).empty();
                dialog.hide();
                $('#overlay').hide();
            } else {
                $('div.body', dialog).html(data);
            }
        });
        return false;
        ">
    <table width="100%">
    <?php
        echo csrf_token();
        foreach ($custom as $form)
            $form->render();
    ?>
    </table>
Peter Rotich's avatar
Peter Rotich committed
    <hr>
    <p class="full-width">
        <span class="buttons" style="float:left">
            <input type="reset" value="Reset">
            <input type="button" value="Cancel" class="close">
        </span>
        <span class="buttons" style="float:right">
            <input type="submit" value="Save">
        </span>
     </p>
</form>
<div class="clear"></div>