<commit_before><section class="heading b-b">
  <div class="row no-gutter">
    <div class="col-xs-2 col-sm-2 col-md-1">
      <section class="heading-btn">
        <a href="#" ng-click="backPrevLocation($event)"><i class="fa fa-long-arrow-left "></i></a>
      </section>
    </div>
    <div class="col-xs-10 col-sm-10 col-md-8 b-l">
      <section class="heading-title">
        <h1 ng-hide="training" translate>{{ 'trainings_planning' }}</h1>
        <h1 ng-show="training"><span translate>{{ 'planning_of' }}</span> {{training.name}}</h1>
      </section>

    </div>
  </div>
</section>


<div class="row no-gutter training-reserve">
  <div class="col-sm-12 col-md-12 col-lg-9">
    <div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div>
    <ng-include ng-if="!fablabWithoutPlans" src="'<%= asset_path 'plans/_plan.html' %>'"></ng-include>
  </div>


  <div class="col-sm-12 col-md-12 col-lg-3">

    <div class="text-center m-t">
      <a class="btn btn-warning-full width-70 rounded text-sm"
         ui-sref="app.logged.trainings_reserve({id:'all'})"
         ng-show="training"
         translate>
        {{ 'all_trainings' }}
      </a>
    </div>

    <div ng-if="currentUser.role === 'admin'">
      <select-member></select-member>
    </div>


    <div class="widget panel b-a m m-t-lg" ng-if="ctrl.member && !slotToModify && !modifiedSlots">
      <div class="panel-heading b-b small">
        <h3 translate>{{ 'summary' }}</h3>
      </div>
      <div class="widget-content no-bg auto wrapper" ng-show="!selectedTraining && !paidTraining">
        <p class="font-felt fleche-left text-lg"><%= image_tag("fleche-left.png", class: 'fleche-left visible-lg') %>
          {{ 'select_a_slot_in_the_calendar' | translate }}</p>
      </div>

      <div class="widget-content no-bg auto wrapper" ng-if="selectedTraining">
        <div class="font-sbold m-b-sm " translate>{{ 'you_ve_just_selected_the_slot' }}</div>


        <div class="panel panel-default bg-light m-n">
          <div class="panel-body">
            <div class="font-sbold text-u-c">{{ 'datetime_to_time' | translate:{START_DATETIME:(selectedTraining.start | amDateFormat:'LLLL'), END_TIME:(selectedTraining.end | amDateFormat:'LT')} }}</div>
            <div class="text-base">{{ 'training_cost_' | translate }} <span ng-class="{'text-blue': selectedTraining.training.amount == selectedTrainingAmount, 'red': selectedTraining.training.amount != selectedTrainingAmount}">{{selectedTrainingAmount | currency}}</span></div>
              <div ng-show="currentUser.role == 'admin'" class="m-t">
                  <label for="offerSlot" class="control-label m-r" translate>{{ 'offer_this_training' }}</label>
                  <input bs-switch
                         ng-model="selectedTraining.offered"
                         id="offerSlot"
                         type="checkbox"
                         class="form-control"<commit_msg>move 'all trainings' button to top bar<commit_after><section class="heading b-b">
  <div class="row no-gutter">
    <div class="col-xs-2 col-sm-2 col-md-1">
      <section class="heading-btn">
        <a href="#" ng-click="backPrevLocation($event)"><i class="fa fa-long-arrow-left "></i></a>
      </section>
    </div>
    <div class="col-xs-10 col-sm-10 col-md-8 b-l b-r-md">
      <section class="heading-title">
        <h1 ng-hide="training" translate>{{ 'trainings_planning' }}</h1>
        <h1 ng-show="training"><span translate>{{ 'planning_of' }}</span> {{training.name}}</h1>
      </section>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-3 b-t hide-b-md">
      <section class="heading-actions wrapper">
        <a class="btn btn-lg btn-warning bg-white b-2x rounded m-t-xs"
           ui-sref="app.logged.trainings_reserve({id:'all'})"
           ng-show="training"
           role="button"
           translate>{{ 'all_trainings' }}</a>
      </section>
    </div>
  </div>
</section>


<div class="row no-gutter training-reserve">
  <div class="col-sm-12 col-md-12 col-lg-9">
    <div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div>
    <ng-include ng-if="!fablabWithoutPlans" src="'<%= asset_path 'plans/_plan.html' %>'"></ng-include>
  </div>


  <div class="col-sm-12 col-md-12 col-lg-3">

    <div class="text-center m-t">

    </div>

    <div ng-if="currentUser.role === 'admin'">
      <select-member></select-member>
    </div>


    <div class="widget panel b-a m m-t-lg" ng-if="ctrl.member && !slotToModify && !modifiedSlots">
      <div class="panel-heading b-b small">
        <h3 translate>{{ 'summary' }}</h3>
      </div>
      <div class="widget-content no-bg auto wrapper" ng-show="!selectedTraining && !paidTraining">
        <p class="font-felt fleche-left text-lg"><%= image_tag("fleche-left.png", class: 'fleche-left visible-lg') %>
          {{ 'select_a_slot_in_the_calendar' | translate }}</p>
      </div>

      <div class="widget-content no-bg auto wrapper" ng-if="selectedTraining">
        <div class="font-sbold m-b-sm " translate>{{ 'you_ve_just_selected_the_slot' }}</div>


        <div class="panel panel-default bg-light m-n">
          <div class="panel-body">
            <div class="font-sbold text-u-c">{{ 'datetime_to_time' | translate:{START_DATETIME:(selectedTraining.start | amDateFormat:'LLLL'), END_TIME:(selectedTraining.end | amDateFormat:'LT')} }}</div>
            <div class="text-base">{{ 'training_cost_' | translate }} <span ng-class="{'text-blue': selectedTraining.training.amount == selectedTrainingAmount, 'red': selectedTraining.training.amount != selectedTrainingAmount}">{{selectedTrainingAmount | currency}}</span></div>
              <div ng-show="currentUser.role == 'admin'" class="m-t">
                  <label for="offerSlot" class="control-label m-r" translate>{{ 'offer_this_training' }}</label>
                  <input bs-switch
                         ng-model="selectedTraining.offered"
                         id="offerSlot"
                         type="checkbox"
                         class="form-control"
{'fraction_non_alphanumeric': 0.18604274611398963, 'fraction_numerical': 0.009067357512953367, 'mean_word_length': 2.9169308814204187, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 133, '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': '3009957', 'n_tokens_mistral': 2106, 'n_tokens_neox': 1991, 'n_words': 382}