<commit_before>{% extends "badge/layout.html" %}

{% macro disabled() %}
  {{ 'disabled' if badge.status != "draft" and badge.status != "template" }}
{% endmacro %}

{% block content %}
  <div class="container">
    <form class="badge-form" name="input" action="{{ url('badge.save', { badgeId: badge.id }) }}" method="post">
      <h1>Edit Badge</h1>
      <input type="hidden" name="_csrf" value="{{ csrfToken }}"></input>
      <input type="hidden" name="badgeId" value="{{ badge.id }}"></input>

      <img class="badge-image right" src="{{ badge.image | default(url('badge.image', { badgeId: badge.id })) }}"/>

      <div class="form-field-wrapper">
        <label class="badge-label" for="name">Name:</label>
        <input class="badge-field" type="text" name="name" {{ disabled() }} value="{{ badge.name }}"/>
      </div>

      <div class="form-field-wrapper">
        <label class="badge-label" class="badge-label">Description:</label>
        <textarea class="badge-field" {{ disabled() }} type="text" name="description">{{ badge.description }}</textarea>
      </div>

      <div class="form-field-wrapper">
        <label class="badge-label">Criteria:</label>
        <textarea class="badge-field" type="text" {{ disabled() }} name="criteria">{{ badge.criteria }}</textarea>
      </div>

      <div class="form-field-wrapper">
        <label class="badge-label">Status:</label>
        {{ badge.status | default('active') | capitalize }}
      </div>

      <button class="gray-btn submit-btn" type="submit" {{ disabled() }}>Save Changes</button>
    </form>
  </div>
{% endblock %}<commit_msg>updates save changes button to match other buttons<commit_after>{% extends "badge/layout.html" %}

{% macro disabled() %}
  {{ 'disabled' if badge.status != "draft" and badge.status != "template" }}
{% endmacro %}

{% block content %}
  <div class="container">
    <form class="badge-form" name="input" action="{{ url('badge.save', { badgeId: badge.id }) }}" method="post">
      <h1>Edit Badge</h1>
      <input type="hidden" name="_csrf" value="{{ csrfToken }}"></input>
      <input type="hidden" name="badgeId" value="{{ badge.id }}"></input>

      <img class="badge-image right" src="{{ badge.image | default(url('badge.image', { badgeId: badge.id })) }}"/>

      <div class="form-field-wrapper">
        <label class="badge-label" for="name">Name:</label>
        <input class="badge-field" type="text" name="name" {{ disabled() }} value="{{ badge.name }}"/>
      </div>

      <div class="form-field-wrapper">
        <label class="badge-label" class="badge-label">Description:</label>
        <textarea class="badge-field" {{ disabled() }} type="text" name="description">{{ badge.description }}</textarea>
      </div>

      <div class="form-field-wrapper">
        <label class="badge-label">Criteria:</label>
        <textarea class="badge-field" type="text" {{ disabled() }} name="criteria">{{ badge.criteria }}</textarea>
      </div>

      <div class="form-field-wrapper">
        <label class="badge-label">Status:</label>
        {{ badge.status | default('active') | capitalize }}
      </div>

      <a class="gray-btn submit-btn" type="submit" {{ disabled() }}>Save Changes</a>
    </form>
  </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.21633281972265023, 'fraction_numerical': 0.0012326656394453005, 'mean_word_length': 3.5847457627118646, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '6317892', 'n_tokens_mistral': 1057, 'n_tokens_neox': 994, 'n_words': 213}