<commit_before><section class="header">
  {{#if showEdit}}
    <h1>
      {{#if editing}}
        {{t 'viewEditProject.showEdit.edit'}} {{originalProject.displayName}}
      {{else}}
        {{t 'viewEditProject.showEdit.add'}}
      {{/if}}
    </h1>
  {{else}}
    <h1>{{#link-to "settings.projects"}}{{t 'viewEditProject.header'}}{{/link-to}}</h1>
      {{#power-select options=model.all selected=project onchange=(action "changeProject") searchField="displayName" as |obj|}}
          {{select-dot model=obj}}
      {{/power-select}}

    <div class="pull-right">
      {{header-state model=project}}
      {{action-menu model=project size="sm" classNames="r-ml10"}}
    </div>
  {{/if}}
</section>

<div class="clearfix"></div>

{{#if showEdit}}
  <section class="well">
    <label>{{t 'viewEditProject.showEdit.orchestration'}}</label>
    <div class="nav nav-boxes checked-active">
      {{#each orchestrationChoices as |driver|}}
        {{#if driver.disabled}}
          <a href="#" tabindex="1" alt={{driver.label}} class="nav-box-item driver orchestration-driver {{driver.css}}"></a>
        {{else}}
          <a href="#" tabindex="1" {{action "selectOrchestration" driver.name}} alt={{driver.label}} class="nav-box-item driver orchestration-driver {{if driver.active 'active'}} {{driver.css}}"></a>
        {{/if}}
      {{/each}}
    </div>
  </section>

<section class="well r-mb0">
  {{form-name-description
    model=project
    namePlaceholder="viewEditDescription.form.name.placeholder"
    descriptionPlaceholder="viewEditDescription.form.description.placeholder"
  }}
</section>
  {{else}}
   {{#if project.description}}
    
        <label>{{t 'viewEditProject.description'}}</label>
        <p>{{project.description}}</p>
    
    {{/if}}
  {{/if}}

<section class="well r-mt0">
  <div class="row form-group">
    {{#if showEdit}}
      <div class="form-label">
        <label class="form-control-static">{{t 'viewEditProject.showEdit.formControl'}}</label>
      </div>
    {{/if}}

    <div>
      <div>
        {{#if (and accessEnabled showEdit)}}
          <div class="row form-group">
            <div class="col-sm-12">
              {{input-identity action="checkMember" onError="error"}}
            </div>
          </div>
        {{/if}}

        {{#if accessEnabled}}
          <table class="grid fixed" style="margin-bottom: 0;">
            <thead>
              <tr>
                {{sortable-th sortable=this action="changeSort" name="name" label="generic.name"}}
                {{sortable-th sortable=this action="changeSort" name="type" label="generic.type"}}
                {{sortable-th sortable=this action="changeSort" name="role" label="generic.role"}}
                {{#if showEdit}}<th width="40">&nbsp;</th>{{/if}}
              </tr>
            </thead>
            <tbody>
              {{#each arranged as |member|}}
                <tr>
                  <td>
                    {{identity-block identity=member}}
                  </td>
                  <td>{{member.displayType}}</td>
                  <td>
                    {{#if showEdit}}
                      <select class="form-control input-sm" onchange={{action (mut member.role) value="target.value"}}>
                        {{#each roleOptions as |choice|}}
                          <option value={{choice.value}} selected={{eq member.role choice.value}}>{{t choice.label}}</option>
                        {{/each}}
                      </select>
                    {{else}}
                      {{uc-first member.role}}
                    {{/if}}
                  </td>
                  {{#if showEdit}}
                    <td>
                      {{#if accessEnabled}}
                        <button class="btn btn-primary btn-sm pull-right gh-action" {{action "removeMember" member}}><i class="icon icon-minus"/></button>
                      {{else}}
                        &nbsp;
                      {{/if}}
                    </td>
                  {{/if}}
                </tr>
              {{else}}
                <tr>
                  <td colspan="3" class="text-center text-muted">
                    {{if showEdit (t "viewEditProject.showEdit.noMembersYet") (t "viewEditProject.showEdit.noMembers")}}
                  </td>
                </tr>
              {{/each}}
            </tbody>
          </table>
        {{else}}
          <p class="help-block text-center">
            {{format-html-message 'viewEditProject.helpBlock'}}
          </p>
        {{/if}}
      </div>
    </div>
  </div>
<hr class="r-mt40 r-mb40" />
{{#if showEdit}}
    <div class="row form-group">
      <div class="col-md-2 form-label">
        {{t 'viewEditProject.virtualMachine.label'}}
      </div>

      <div class="col-md-10">
        <div>
          <label class="r-mr20 hand">
            {{radio-button selection=project.virtualMachine value=true}} {{t 'generic.enabled'}}
          </label>
          <label class="hand">
            {{radio-button selection=project.virtualMachine value=false}} {{t 'generic.disabled'}}
          </label>
        </div>
        <p class="help-block">{{format-html-message 'viewEditProject.virtualMachine.subtext'}}</p>
      </div>
    </div>

  {{top-errors errors=errors}}
  {{save-cancel editing=editing save="save" cancel="cancel"}}
{{/if}}
</section><commit_msg>rancher/rancher#5697 (#827)<commit_after><section class="header">
  {{#if showEdit}}
    <h1>
      {{#if editing}}
        {{t 'viewEditProject.showEdit.edit'}} {{originalProject.displayName}}
      {{else}}
        {{t 'viewEditProject.showEdit.add'}}
      {{/if}}
    </h1>
  {{else}}
    <h1>{{#link-to "settings.projects"}}{{t 'viewEditProject.header'}}{{/link-to}}</h1>
      {{#power-select options=model.all selected=project onchange=(action "changeProject") searchField="displayName" as |obj|}}
          {{select-dot model=obj}}
      {{/power-select}}

    <div class="pull-right">
      {{header-state model=project}}
      {{action-menu model=project size="sm" classNames="r-ml10"}}
    </div>
  {{/if}}
</section>

<div class="clearfix"></div>

{{#if showEdit}}
  <section class="well">
    <label>{{t 'viewEditProject.showEdit.orchestration'}}</label>
    <div class="nav nav-boxes checked-active">
      {{#each orchestrationChoices as |driver|}}
        {{#if driver.disabled}}
          <a href="#" tabindex="1" alt={{driver.label}} class="nav-box-item driver orchestration-driver {{driver.css}}"></a>
        {{else}}
          <a href="#" tabindex="1" {{action "selectOrchestration" driver.name}} alt={{driver.label}} class="nav-box-item driver orchestration-driver {{if driver.active 'active'}} {{driver.css}}"></a>
        {{/if}}
      {{/each}}
    </div>
  </section>

<section class="well r-mb0">
  {{form-name-description
    model=project
    namePlaceholder="viewEditDescription.form.name.placeholder"
    descriptionPlaceholder="viewEditDescription.form.description.placeholder"
  }}
</section>
  {{else}}
   {{#if project.description}}
        <section class="well r-mb0">
          <label class="inline-block r-m0">{{t 'viewEditProject.description'}}: </label>
          <p class="inline-block r-m0">{{project.description}}</p>
        </section>
    
    {{/if}}
  {{/if}}

<section class="well">
  <div class="row form-group r-p0">
    {{#if showEdit}}
      <div class="form-label">
        <label class="form-control-static">{{t 'viewEditProject.showEdit.formControl'}}</label>
      </div>
    {{/if}}

    <div>
      <div>
        {{#if (and accessEnabled showEdit)}}
          <div class="row form-group">
            <div class="col-sm-12">
              {{input-identity action="checkMember" onError="error"}}
            </div>
          </div>
        {{/if}}

        {{#if accessEnabled}}
          <table class="grid fixed" style="margin-bottom: 0;">
            <thead>
              <tr>
                {{sortable-th sortable=this action="changeSort" name="name" label="generic.name"}}
                {{sortable-th sortable=this action="changeSort" name="type" label="generic.type"}}
                {{sortable-th sortable=this action="changeSort" name="role" label="generic.role"}}
                {{#if showEdit}}<th width="40">&nbsp;</th>{{/if}}
              </tr>
            </thead>
            <tbody>
              {{#each arranged as |member|}}
                <tr>
                  <td>
                    {{identity-block identity=member}}
                  </td>
                  <td>{{member.displayType}}</td>
                  <td>
                    {{#if showEdit}}
                      <select class="form-control input-sm" onchange={{action (mut member.role) value="target.value"}}>
                        {{#each roleOptions as |choice|}}
                          <option value={{choice.value}} selected={{eq member.role choice.value}}>{{t choice.label}}</option>
                        {{/each}}
                      </select>
                    {{else}}
                      {{uc-first member.role}}
                    {{/if}}
                  </td>
                  {{#if showEdit}}
                    <td>
                      {{#if accessEnabled}}
                        <button class="btn btn-primary btn-sm pull-right gh-action" {{action "removeMember" member}}><i class="icon icon-minus"/></button>
                      {{else}}
                        &nbsp;
                      {{/if}}
                    </td>
                  {{/if}}
                </tr>
              {{else}}
                <tr>
                  <td colspan="3" class="text-center text-muted">
                    {{if showEdit (t "viewEditProject.showEdit.noMembersYet") (t "viewEditProject.showEdit.noMembers")}}
                  </td>
                </tr>
              {{/each}}
            </tbody>
          </table>
        {{else}}
          <p class="help-block text-center">
            {{format-html-message 'viewEditProject.helpBlock'}}
          </p>
        {{/if}}
      </div>
    </div>
  </div>
<hr class="r-m0" />
{{#if showEdit}}
    <div class="row form-group">
      <div class="col-md-2 form-label">
        {{t 'viewEditProject.virtualMachine.label'}}
      </div>

      <div class="col-md-10">
        <div>
          <label class="r-mr20 hand">
            {{radio-button selection=project.virtualMachine value=true}} {{t 'generic.enabled'}}
          </label>
          <label class="hand">
            {{radio-button selection=project.virtualMachine value=false}} {{t 'generic.disabled'}}
          </label>
        </div>
        <p class="help-block">{{format-html-message 'viewEditProject.virtualMachine.subtext'}}</p>
      </div>
    </div>

  {{top-errors errors=errors}}
  {{save-cancel editing=editing save="save" cancel="cancel"}}
{{/if}}
</section>
{'fraction_non_alphanumeric': 0.1796174812898457, 'fraction_numerical': 0.005266561951399797, 'mean_word_length': 1.9104598010217801, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 185, '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': '4431662', 'n_tokens_mistral': 3259, 'n_tokens_neox': 3128, 'n_words': 606}