<commit_before><p class="help-block" translate>
    The SMS Token sends an OTP value to the mobile phone of the user.
</p>

<h4 translate>Token data</h4>

<div ng-hide="loggedInUser.role==='user'" translate class="bg-info">
    For SMS tokens to work properly you need to set the
    <a ui-sref="config.tokens({tokentype:'sms'})">SMS Token Config</a>!
</div>

<div class="form-group">
    <input type="checkbox" ng-model="form.dynamic_phone"
           name="dynamic_phone" id="dynamic_phone">
    <label for="dynamic_phone" translate>Read number dynamically from user source on each request.</label>
</div>
<div ng-hide="form.dynamic_phone" class="form-group">
    <label for="phone" translate>Phone number</label>
    <input type="text" id="phone"
           autofocus
           ng-required="! form.dynamic_phone"
           class="form-control"
           placeholder="+1234567890"
           pattern="(\+[1-9])?\d{1,14}"
           ng-model="form.phone" name="phone" />
    <div>
        <button class="btn btn-default btn-xs" ng-repeat="phone in phone_list"
                ng-click="form.phone = phone;">
            <span class="glyphicon glyphicon-phone"></span>
            {{ phone }}
        </button>
    </div>
</div>

<div class="form-group" ng-show="getRightsValue('sms_gateways').split(' ')">
    <label for="identifier" translate>A token specific SMS gateway</label>
    <select class="form-control" id="identifier"
            ng-model="form['sms.identifier']"
            name="identifier"
            ng-options="identifier for identifier in getRightsValue('sms_gateways').split(' ')">
    </select>
    <p class="help" translate>If this token should not use the system wide SMS gateway but an individual SMS gateway,
        you can select the gateway here.</p>
</div>
<commit_msg>Add possibility to insert delimiter in phone input<commit_after><p class="help-block" translate>
    The SMS Token sends an OTP value to the mobile phone of the user.
</p>

<h4 translate>Token data</h4>

<div ng-hide="loggedInUser.role==='user'" translate class="bg-info">
    For SMS tokens to work properly you need to set the
    <a ui-sref="config.tokens({tokentype:'sms'})">SMS Token Config</a>!
</div>

<div class="form-group">
    <input type="checkbox" ng-model="form.dynamic_phone"
           name="dynamic_phone" id="dynamic_phone">
    <label for="dynamic_phone" translate>Read number dynamically from user source on each request.</label>
</div>
<div ng-hide="form.dynamic_phone" class="form-group">
    <label for="phone" translate>Phone number</label>
    <input type="tel" id="phone"
           autofocus
           ng-required="! form.dynamic_phone"
           class="form-control"
           placeholder="+1234567890"
           pattern="^(\+[1-9]+)?([0-9][, .-]?){1,14}$"
           ng-model="form.phone" name="phone" />
    <div>
        <button class="btn btn-default btn-xs" ng-repeat="phone in phone_list"
                ng-click="form.phone = phone;">
            <span class="glyphicon glyphicon-phone"></span>
            {{ phone }}
        </button>
    </div>
</div>

<div class="form-group" ng-show="getRightsValue('sms_gateways').split(' ')">
    <label for="identifier" translate>A token specific SMS gateway</label>
    <select class="form-control" id="identifier"
            ng-model="form['sms.identifier']"
            name="identifier"
            ng-options="identifier for identifier in getRightsValue('sms_gateways').split(' ')">
    </select>
    <p class="help" translate>If this token should not use the system wide SMS gateway but an individual SMS gateway,
        you can select the gateway here.</p>
</div>

{'fraction_non_alphanumeric': 0.15285753349740225, 'fraction_numerical': 0.009844134536505332, 'mean_word_length': 3.171037628278221, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4626343', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1094, 'n_words': 290}