Files @ 15e507047bae
Branch filter:

Location: kallithea/rhodecode/templates/admin/users/user_edit_emails.html - annotation

Bradley M. Kuhn
Incorporate CSS from select2-bootstrap-css & its license information.

RhodeCode 2.2.5 included a modified version of this upstream work. We
include herein the upstream version as downloaded and incorporated using the
following commands:

(cd /tmp; \
git clone https://github.com/t0m/select2-bootstrap-css
)
cp /tmp/select2-bootstrap-css/select2-bootstrap.css rhodecode/public/js/select2/

The content used to be appended to select2.css but we now keep it in a separate
file select2-bootstrap.css . This file could be included in root.html like
select2.css but we do currently not want to use bootstrap.

The license info was incorporated from /tmp/select2-bootstrap-css/LICENSE
into our LICENSE.md file.
<div class="emails_wrap">
  <table class="noborder">
    <tr>
    <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email,16)}"/> </div></td>
    <td><div class="email">${c.user.email}</div></td>
    <td>
        <span class="btn btn-mini btn-success disabled">${_('Primary')}</span>
    </td>
    </tr>
    %if c.user_email_map:
        %for em in c.user_email_map:
          <tr>
            <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(em.email,16)}"/> </div></td>
            <td><div class="email">${em.email}</div></td>
            <td>
                ${h.form(url('edit_user_emails', id=c.user.user_id),method='delete')}
                    ${h.hidden('del_email_id',em.email_id)}
                    <i class="icon-remove-sign" style="color:#FF4444"></i>
                    ${h.submit('remove_',_('delete'),id="remove_email_%s" % em.email_id,
                    class_="action_button", onclick="return  confirm('"+_('Confirm to delete this email: %s') % em.email+"');")}
                ${h.end_form()}
            </td>
          </tr>
        %endfor
    %else:
    <tr><td><div class="ip">${_('No additional emails specified')}</div></td></tr>
    %endif
  </table>
</div>

<div>
    ${h.form(url('edit_user_emails', id=c.user.user_id),method='put')}
    <div class="form">
        <!-- fields -->
        <div class="fields">
             <div class="field">
                <div class="label">
                    <label for="new_email">${_('New email address')}:</label>
                </div>
                <div class="input">
                    ${h.text('new_email', class_='medium')}
                </div>
             </div>
            <div class="buttons">
              ${h.submit('save',_('Add'),class_="btn")}
              ${h.reset('reset',_('Reset'),class_="btn")}
            </div>
        </div>
    </div>
    ${h.end_form()}
</div>