<commit_before>-load i18n

.split-header-inner
  %p
    Add text:

.split-margin
  %textarea{ng-model:"ruleset.config.ussdText",name:"ussd",auto-complete:"",flow:"[[flowId]]",class:"ussd-add-text"}

.split-header-inner
  %p
    Add menu:

%form{name:'menuForm'}
  %span
    %div{ui-sortable:"sortableOptions",ng-model:"ruleset.config.ussdMenu"}
      .rule{ng-repeat:"item in ruleset.config.ussdMenu"}
        .ng-form{name:"menuItem"}
          .icon.icon-menu
          .ordinals
            %input{ng-model:"item.number",type:"text",class:"number",placeholder:"#"}
          .operation.wide
            %input{ng-model:"item.label",name:"operand",flow:"[[flowId]]",ng-required:"rule.category._base",ng-change:"updateCategory(item)",type:"text",class:"operand",uuid:"[[ruleset.uuid]]"}

          .categorize
            -trans "categorize as"
            %input{ng-model:"item.category._base",name:"category",ng-required:"rule._config.operands==0 || (rule._config.operands==1 && rule.test._base) || (rule._config.operands==2 && (rule.test.test.min || rule.test.test.max))",ng-change:"item.category._autoName = false",type:"text",class:"category"}
          .icon.icon-close{ng-click:"remove(item)"}
#split-on
  -trans "If the message response..."<commit_msg>USSD directive template, fixes #18<commit_after>-load i18n

.split-header-inner
  %p
    Add text:

.split-margin
  %textarea{ng-model:"ruleset.config.ussd_text",name:"ussd",auto-complete:"",flow:"[[flowId]]",ng-change:"countCharacters()",class:"ussd-add-text"}

.split-header-inner{ng-if:'USSD_MENU'}
  %p
    Add menu:

%form{name:'menuForm', ng-if:'USSD_MENU'}
  %span
    %div{ui-sortable:"sortableOptions",ng-model:"ruleset.config.ussd_menu"}
      .rule{ng-repeat:"item in ruleset.config.ussd_menu"}
        .ng-form{name:"menuItem"}
          .icon.icon-menu
          .ordinals
            %input{ng-model:"item.option",type:"text",class:"number",placeholder:"#",number:"true",ng-change:"countCharacters()"}
          .operation.wide
            %input{ng-model:"item.label",name:"operand",flow:"[[flowId]]",ng-required:"",ng-change:"updateMenu(item, $index)",type:"text",class:"operand",uuid:"[[ruleset.uuid]]"}

          .categorize
            -trans "categorize as"
            %input{ng-model:"item.category._base",name:"category",ng-required:"item.label",ng-change:"item.category._autoName = false",type:"text",class:"category"}
          .icon.icon-close{ng-click:"remove(item, $index)"}
#split-on{ng-if:'USSD_RESPONSE'}
  -trans "If the message response..."
{'fraction_non_alphanumeric': 0.20355029585798817, 'fraction_numerical': 0.0035502958579881655, 'mean_word_length': 4.031746031746032, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7472359', 'n_tokens_mistral': 879, 'n_tokens_neox': 865, 'n_words': 85}