<commit_before><!--
    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->

<!--
    Copyright (c) 2014, Joyent, Inc.
-->

<div class="modal-dialog">
    <form class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" aria-hidden="true">&times;</button>
            <h3 class="modal-title"><span class="action"></span>
                {{#if account}}
                    Account Sub-user
                {{else}}
                    User
                {{/if}}
            </h3>
        </div>

        <div class="modal-body">
            <div class="alert alert-danger"></div>
            <div class="form-horizontal">
                <div class="form-group">
                    <label class="control-label col-xs-3">Login Name</label>
                    <div class="col-xs-7">
                        <input type="text" name="login" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-3">Password</label>
                    <div class="col-xs-7">
                        <input type="password" placeholder="<PASSWORD> password" name="password" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-3">Email Address</label>
                    <div class="col-xs-7">
                        <input type="text" name="email" class="form-control col-xs-7" placeholder="<EMAIL>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-3">Name</label>
                    <div class="col-xs-3">
                        <input type="text" name="first_name" placeholder="given name" class="form-control">
                    </div>
                    <div class="col-xs-3">
                        <input type="text" name="last_name" placeholder="last name" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-3 control-label">Company</label>
                    <div class="col-xs-7">
                        <input type="text" class="form-control" name="company" placeholder="Company name">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-3 control-label">Tenant</label>
                    <div class="col-xs-7">
                        <input type="text" class="form-control" name="tenant" placeholder="Tenant (used for grouping accounts)">
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-3">Phone Number</label>
                    <div class="col-xs-7">
                        <input type="text" class="form-control" name="phone" placeholder="510-123-4567">
                    </div>
                </div>

                {{#unless account}}

                <div class="form-group">
                    <label class="control-label col-xs-3">Role</label>
                    <div class="controls col-xs-7">
                        <div class="radio">
                            <label><input type="radio" name="groups" value=""> None</label>
                        </div>
                        <div class="radio">
                            <label><input type="radio" name="groups" value="readers"> Read-only Operator</label>
                        </div>
                        <div class="radio">
                            <label><input type="radio" name="groups" value="operators"> Full Access Operator</label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-3">Permissions</label>
                    <div class="controls col-xs-7">
                        <div class="checkbox">
                            <label><input type="checkbox" name="approved_for_provisioning" value="true"> Approve For Provisioning</label>
                        </div>
                        <div class="checkbox">
                            <label><input type="checkbox" name="registered_developer" value="true"> User is a Registered Developer</label>
                        </div>
                    </div>
                </div>

                {{/unless}}

            </div>
            <input type="hidden" name="cn">
        </div> {{! .modal-body}}

        <div class="modal-footer">
            <button data-dismiss="modal" type="button" class="btn btn-default">Close</button>
            <button type="submit" class="save btn btn-primary">Save
                {{#if account}}
                    Sub-user
                {{else}}
                    User
                {{/if}}
             </button>
        </div>
    </form>
</div>
<commit_msg>ADMINUI-2119 'Modify User' popup 'x' doesn't work and should be 'Cancel' not 'Close'<commit_after><!--
    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->

<!--
    Copyright (c) 2014, Joyent, Inc.
-->

<div class="modal-dialog">
    <form class="modal-content">
        <div class="modal-header">
            <button type="button" data-dismiss="modal" class="close" aria-hidden="true">&times;</button>
            <h3 class="modal-title"><span class="action"></span>
                {{#if account}}
                    Account Sub-user
                {{else}}
                    User
                {{/if}}
            </h3>
        </div>

        <div class="modal-body">
            <div class="alert alert-danger"></div>
            <div class="form-horizontal">
                <div class="form-group">
                    <label class="control-label col-xs-3">Login Name</label>
                    <div class="col-xs-7">
                        <input type="text" name="login" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-3">Password</label>
                    <div class="col-xs-7">
                        <input type="password" placeholder="<PASSWORD>" name="password" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-3">Email Address</label>
                    <div class="col-xs-7">
                        <input type="text" name="email" class="form-control col-xs-7" placeholder="<EMAIL>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-3">Name</label>
                    <div class="col-xs-3">
                        <input type="text" name="first_name" placeholder="given name" class="form-control">
                    </div>
                    <div class="col-xs-3">
                        <input type="text" name="last_name" placeholder="last name" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-3 control-label">Company</label>
                    <div class="col-xs-7">
                        <input type="text" class="form-control" name="company" placeholder="Company name">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-xs-3 control-label">Tenant</label>
                    <div class="col-xs-7">
                        <input type="text" class="form-control" name="tenant" placeholder="Tenant (used for grouping accounts)">
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-3">Phone Number</label>
                    <div class="col-xs-7">
                        <input type="text" class="form-control" name="phone" placeholder="510-123-4567">
                    </div>
                </div>

                {{#unless account}}

                <div class="form-group">
                    <label class="control-label col-xs-3">Role</label>
                    <div class="controls col-xs-7">
                        <div class="radio">
                            <label><input type="radio" name="groups" value=""> None</label>
                        </div>
                        <div class="radio">
                            <label><input type="radio" name="groups" value="readers"> Read-only Operator</label>
                        </div>
                        <div class="radio">
                            <label><input type="radio" name="groups" value="operators"> Full Access Operator</label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-3">Permissions</label>
                    <div class="controls col-xs-7">
                        <div class="checkbox">
                            <label><input type="checkbox" name="approved_for_provisioning" value="true"> Approve For Provisioning</label>
                        </div>
                        <div class="checkbox">
                            <label><input type="checkbox" name="registered_developer" value="true"> User is a Registered Developer</label>
                        </div>
                    </div>
                </div>

                {{/unless}}

            </div>
            <input type="hidden" name="cn">
        </div> {{! .modal-body}}

        <div class="modal-footer">
            <button data-dismiss="modal" type="button" class="btn btn-default">Cancel</button>
            <button type="submit" class="save btn btn-primary">Save
                {{#if account}}
                    Sub-user
                {{else}}
                    User
                {{/if}}
             </button>
        </div>
    </form>
</div>

{'fraction_non_alphanumeric': 0.14310213414634146, 'fraction_numerical': 0.008003048780487805, 'mean_word_length': 1.2745395449620802, 'pattern_counts': {'":': 0, '<': 239, '<?xml version=': 0, '>': 239, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4978100', 'n_tokens_mistral': 2775, 'n_tokens_neox': 2545, 'n_words': 584}