Jump to main content Jump to doc navigation

Description

Chunk for display and edit user profile.

<form action="[[~[[*id]]]]" method="post" class="form-horizontal">
    <div class="control-group[[+error.username:notempty=` error`]]">
        <label class="control-label">???</label>
        <div class="controls">
            <input type="text" name="username" value="[[+username]]" />
            <span class="help-inline">[[+error.username]]</span>
        </div>
    </div>

    <div class="control-group[[+error.fullname:notempty=` error`]]">
        <label class="control-label">?????? ???</label>
        <div class="controls">
            <input type="text" name="fullname" value="[[+fullname]]" />
            <span class="help-inline">[[+error.fullname]]</span>
        </div>
    </div>

    <div class="control-group[[+error.email:notempty=` error`]]">
        <label class="control-label">Email</label>
        <div class="controls">
            <input type="text" name="email" value="[[+email]]" />
            <span class="help-inline">[[+error.email]]</span>
        </div>
    </div>
    <input type="hidden" name="action" value="updateProfile" />
    <div class="form-actions">
        <button type="submit" class="btn btn-primary">Update profile</button>
    </div>
</form>
[[+success:is=`1`:then=`<div class="alert alert-block">Profile was successfully updated</div>`]]
[[+success:is=`0`:then=`<div class="alert alert-block alert-error">Error on profile update</div>`]]

Placeholders

Placeholders from modUser and modUserProfile.

See Also

  1. Loginza.Loginza
  2. tpl.Loginza.login
  3. tpl.Loginza.logout
  4. tpl.Loginza.profile

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • Jens Wittmann – Gestaltung & Entwicklung
  • Digital Penguin
  • eydolan
  • deJaya
  • Following Sea
  • Nick Clark
  • Lefthandmedia
  • YJ
  • Sepia River Studios
  • Murray Wood
  • Dannevang Digital
  • Richard

Budget

$217 per month—let's make that $500!

Learn more